PhSearchImpl Class Reference

Class that sets up the GUI and is responible for opening a corpus. More...

#include <phsearchimpl.h>

Inherits QMainWindow, and Ui::phMainWindow.

Inheritance diagram for PhSearchImpl:

Inheritance graph
[legend]
Collaboration diagram for PhSearchImpl:

Collaboration graph
[legend]
List of all members.

Public Slots

void fileOpen ()
void fileExit ()
void helpAbout ()
void openDocument (PhraseHunter::DocID, PhraseHunter::IdxPos, size_t)
void openOptionsWidget ()
void newSearchTab ()
void closeTab ()
void hideStatistics ()

Public Member Functions

 PhSearchImpl ()
 ~PhSearchImpl ()

Private Member Functions

void deleteCorpus ()
void setupTabIcons ()
void setupConnections ()

Private Attributes

PhraseHunter::CorpusManagerm_corpus

Detailed Description

Class that sets up the GUI and is responible for opening a corpus.

Definition at line 33 of file phsearchimpl.h.


Constructor & Destructor Documentation

PhSearchImpl::PhSearchImpl (  ) 

Definition at line 38 of file phsearchimpl.cpp.

References hideStatistics(), newSearchTab(), Ui_phMainWindow::searchKindComboBox, setupConnections(), setupTabIcons(), Ui_phMainWindow::setupUi(), and Ui_phMainWindow::tabWidget.

PhSearchImpl::~PhSearchImpl (  ) 

Definition at line 62 of file phsearchimpl.cpp.

References deleteCorpus().


Member Function Documentation

void PhSearchImpl::fileOpen (  )  [slot]

Definition at line 73 of file phsearchimpl.cpp.

References deleteCorpus(), m_corpus, PhraseHunter::CorpusManager::statisticsEngine(), Ui_phMainWindow::tabWidget, and PhraseHunter::Exceptions::Exception::what().

Referenced by setupConnections().

void PhSearchImpl::fileExit (  )  [slot]

Definition at line 102 of file phsearchimpl.cpp.

Referenced by setupConnections().

void PhSearchImpl::helpAbout (  )  [slot]

Definition at line 174 of file phsearchimpl.cpp.

void PhSearchImpl::openDocument ( PhraseHunter::DocID  ,
PhraseHunter::IdxPos  ,
size_t   
) [slot]

Definition at line 179 of file phsearchimpl.cpp.

References PhraseHunter::CorpusManager::contextReader(), m_corpus, Ui_phMainWindow::sourceContextSpinBox, and Ui_phMainWindow::tabWidget.

Referenced by newSearchTab().

void PhSearchImpl::openOptionsWidget (  )  [slot]

Definition at line 107 of file phsearchimpl.cpp.

References Ui_phMainWindow::optionsDockWidget.

Referenced by setupConnections().

void PhSearchImpl::newSearchTab (  )  [slot]

Definition at line 112 of file phsearchimpl.cpp.

References Ui_phMainWindow::contextWidthSpinBox, SearchTab::enableSearch(), m_corpus, openDocument(), Ui_phMainWindow::searchKindComboBox, SearchTab::setContextWidth(), SearchTab::setQueryType(), and Ui_phMainWindow::tabWidget.

Referenced by PhSearchImpl(), setupConnections(), and setupTabIcons().

void PhSearchImpl::closeTab (  )  [slot]

Definition at line 168 of file phsearchimpl.cpp.

References Ui_phMainWindow::tabWidget.

Referenced by setupTabIcons().

void PhSearchImpl::hideStatistics (  )  [slot]

Definition at line 158 of file phsearchimpl.cpp.

References Ui_phMainWindow::sortByRankCheckBox.

Referenced by PhSearchImpl(), and setupConnections().

void PhSearchImpl::deleteCorpus (  )  [private]

Definition at line 67 of file phsearchimpl.cpp.

References m_corpus.

Referenced by fileOpen(), and ~PhSearchImpl().

void PhSearchImpl::setupTabIcons (  )  [private]

Definition at line 137 of file phsearchimpl.cpp.

References closeTab(), newSearchTab(), and Ui_phMainWindow::tabWidget.

Referenced by PhSearchImpl().

void PhSearchImpl::setupConnections (  )  [private]

Definition at line 53 of file phsearchimpl.cpp.

References Ui_phMainWindow::action_Exit, Ui_phMainWindow::action_Open, Ui_phMainWindow::actionNew_Search_Tab, Ui_phMainWindow::actionSearch_Options, fileExit(), fileOpen(), hideStatistics(), newSearchTab(), openOptionsWidget(), and Ui_phMainWindow::searchKindComboBox.

Referenced by PhSearchImpl().


Member Data Documentation

PhraseHunter::CorpusManager* PhSearchImpl::m_corpus [private]

Definition at line 56 of file phsearchimpl.h.

Referenced by deleteCorpus(), fileOpen(), newSearchTab(), and openDocument().


The documentation for this class was generated from the following files:
Generated on Thu Dec 21 16:14:42 2006 for The Phrasehunter by  doxygen 1.5.1