ScannerPage Class Reference

#include <ScannerPage.h>

Collaboration diagram for ScannerPage:

Collaboration graph
[legend]

List of all members.

Public Types

enum  HotKey {
  NewScanner, OpenScanner, DeleteScanner, RenameScanner,
  RunScanner, Help
}

Public Slots

void openScanner ()
void openScanner (QString)
void renameScanner ()
void newScanner ()
void deleteScanner ()
void runScanner ()
void scannerSelected (const QString &)
void rightClick (QListBoxItem *)
void refreshList ()
void slotHelp ()
void doubleClick (QListBoxItem *)
void doKeyPress (QKeyEvent *)
void slotAccel (int)
void searchChanged (const QString &)

Signals

void message (QString)
void refreshGroup ()

Public Member Functions

 ScannerPage (QWidget *, DBIndex *)
 ~ScannerPage ()

Private Member Functions

virtual void keyPressEvent (QKeyEvent *)

Private Attributes

Config config
QPopupMenu * menu
QListBox * list
QLineEdit * search
QDir idir
DBIndexchartIndex


Detailed Description

Definition at line 35 of file ScannerPage.h.


Member Enumeration Documentation

enum ScannerPage::HotKey

Enumerator:
NewScanner 
OpenScanner 
DeleteScanner 
RenameScanner 
RunScanner 
Help 

Definition at line 45 of file ScannerPage.h.


Constructor & Destructor Documentation

ScannerPage::ScannerPage ( QWidget *  w,
DBIndex i 
)

Definition at line 40 of file ScannerPage.cpp.

References chartIndex, DeleteScanner, deleteScanner(), doubleClick(), Help, idir, list, menu, NewScanner, newScanner(), OpenScanner, openScanner(), refreshList(), RenameScanner, renameScanner(), rightClick(), RunScanner, runScanner(), scannerSelected(), search, searchChanged(), slotAccel(), and slotHelp().

ScannerPage::~ScannerPage (  ) 

Definition at line 84 of file ScannerPage.cpp.


Member Function Documentation

void ScannerPage::message ( QString   )  [signal]

Referenced by openScanner(), and runScanner().

void ScannerPage::refreshGroup (  )  [signal]

Referenced by openScanner().

void ScannerPage::openScanner (  )  [slot]

Definition at line 88 of file ScannerPage.cpp.

References chartIndex, list, message(), refreshGroup(), and refreshList().

Referenced by doKeyPress(), doubleClick(), newScanner(), ScannerPage(), and slotAccel().

void ScannerPage::openScanner ( QString  d  )  [slot]

Definition at line 97 of file ScannerPage.cpp.

References chartIndex, message(), refreshGroup(), and refreshList().

void ScannerPage::renameScanner (  )  [slot]

Definition at line 215 of file ScannerPage.cpp.

References config, Config::getData(), list, refreshList(), Config::ScannerPath, and scannerSelected().

Referenced by ScannerPage(), and slotAccel().

void ScannerPage::newScanner (  )  [slot]

Definition at line 140 of file ScannerPage.cpp.

References config, Config::getData(), openScanner(), and Config::ScannerPath.

Referenced by ScannerPage(), and slotAccel().

void ScannerPage::deleteScanner (  )  [slot]

Definition at line 173 of file ScannerPage.cpp.

References config, Config::getData(), refreshList(), Config::ScannerPath, and scannerSelected().

Referenced by doKeyPress(), ScannerPage(), and slotAccel().

void ScannerPage::runScanner (  )  [slot]

Definition at line 106 of file ScannerPage.cpp.

References chartIndex, config, Config::getData(), message(), refreshList(), Scanner::scan(), and Config::ScannerPath.

Referenced by ScannerPage(), and slotAccel().

void ScannerPage::scannerSelected ( const QString &  d  )  [slot]

Definition at line 255 of file ScannerPage.cpp.

References menu.

Referenced by deleteScanner(), renameScanner(), and ScannerPage().

void ScannerPage::rightClick ( QListBoxItem *   )  [slot]

Definition at line 271 of file ScannerPage.cpp.

References menu.

Referenced by ScannerPage().

void ScannerPage::refreshList (  )  [slot]

Definition at line 276 of file ScannerPage.cpp.

References config, Config::getData(), idir, list, and Config::ScannerPath.

Referenced by deleteScanner(), openScanner(), renameScanner(), runScanner(), ScannerPage(), and searchChanged().

void ScannerPage::slotHelp (  )  [slot]

Definition at line 296 of file ScannerPage.cpp.

Referenced by ScannerPage(), and slotAccel().

void ScannerPage::doubleClick ( QListBoxItem *  item  )  [slot]

Definition at line 288 of file ScannerPage.cpp.

References openScanner().

Referenced by ScannerPage().

void ScannerPage::doKeyPress ( QKeyEvent *  key  )  [slot]

Definition at line 308 of file ScannerPage.cpp.

References deleteScanner(), DeleteScanner, NewScanner, openScanner(), OpenScanner, RenameScanner, and slotAccel().

Referenced by keyPressEvent().

void ScannerPage::slotAccel ( int  id  )  [slot]

Definition at line 353 of file ScannerPage.cpp.

References deleteScanner(), DeleteScanner, Help, newScanner(), NewScanner, openScanner(), OpenScanner, renameScanner(), RenameScanner, runScanner(), RunScanner, and slotHelp().

Referenced by doKeyPress(), and ScannerPage().

void ScannerPage::searchChanged ( const QString &  d  )  [slot]

Definition at line 380 of file ScannerPage.cpp.

References idir, and refreshList().

Referenced by ScannerPage().

void ScannerPage::keyPressEvent ( QKeyEvent *  key  )  [private, virtual]

Definition at line 303 of file ScannerPage.cpp.

References doKeyPress().


Member Data Documentation

Config ScannerPage::config [private]

Definition at line 77 of file ScannerPage.h.

Referenced by deleteScanner(), newScanner(), refreshList(), renameScanner(), and runScanner().

QPopupMenu* ScannerPage::menu [private]

Definition at line 78 of file ScannerPage.h.

Referenced by rightClick(), ScannerPage(), and scannerSelected().

QListBox* ScannerPage::list [private]

Definition at line 79 of file ScannerPage.h.

Referenced by openScanner(), refreshList(), renameScanner(), and ScannerPage().

QLineEdit* ScannerPage::search [private]

Definition at line 80 of file ScannerPage.h.

Referenced by ScannerPage().

QDir ScannerPage::idir [private]

Definition at line 81 of file ScannerPage.h.

Referenced by refreshList(), ScannerPage(), and searchChanged().

DBIndex* ScannerPage::chartIndex [private]

Definition at line 82 of file ScannerPage.h.

Referenced by openScanner(), runScanner(), and ScannerPage().


The documentation for this class was generated from the following files: