TestPage Class Reference

#include <TestPage.h>

Collaboration diagram for TestPage:

Collaboration graph
[legend]

List of all members.

Public Types

enum  HotKey {
  NewTest, OpenTest, DeleteTest, RenameTest,
  CopyTest, Help
}

Public Slots

void openTest ()
void renameTest ()
void newTest ()
void deleteTest ()
void testSelected (const QString &)
void testNoSelection ()
void rightClick (QListBoxItem *)
void updateList ()
void copyTest ()
void slotMessage (QString)
void slotHelp ()
void doubleClick (QListBoxItem *)
void doKeyPress (QKeyEvent *)
void slotAccel (int)
void searchChanged (const QString &)

Signals

void message (QString)

Public Member Functions

 TestPage (QWidget *, MainMenubar *, DBIndex *)
 ~TestPage ()

Private Member Functions

virtual void keyPressEvent (QKeyEvent *)

Private Attributes

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


Detailed Description

Definition at line 37 of file TestPage.h.


Member Enumeration Documentation

enum TestPage::HotKey

Enumerator:
NewTest 
OpenTest 
DeleteTest 
RenameTest 
CopyTest 
Help 

Definition at line 46 of file TestPage.h.


Constructor & Destructor Documentation

TestPage::TestPage ( QWidget *  w,
MainMenubar mb,
DBIndex i 
)

Definition at line 39 of file TestPage.cpp.

References chartIndex, CopyTest, copyTest(), DeleteTest, deleteTest(), doubleClick(), Help, idir, list, menu, menubar, NewTest, newTest(), OpenTest, openTest(), RenameTest, renameTest(), rightClick(), search, searchChanged(), slotAccel(), slotHelp(), testNoSelection(), testSelected(), and updateList().

TestPage::~TestPage (  ) 

Definition at line 84 of file TestPage.cpp.


Member Function Documentation

void TestPage::message ( QString   )  [signal]

Referenced by slotMessage().

void TestPage::openTest (  )  [slot]

Definition at line 88 of file TestPage.cpp.

References chartIndex, and list.

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

void TestPage::renameTest (  )  [slot]

Definition at line 153 of file TestPage.cpp.

References config, Config::getData(), list, and Config::TestPath.

Referenced by slotAccel(), and TestPage().

void TestPage::newTest (  )  [slot]

Definition at line 95 of file TestPage.cpp.

References chartIndex, Tester::newTest(), and updateList().

Referenced by slotAccel(), and TestPage().

void TestPage::deleteTest (  )  [slot]

Definition at line 111 of file TestPage.cpp.

References config, Config::getData(), testNoSelection(), Config::TestPath, and updateList().

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

void TestPage::testSelected ( const QString &   )  [slot]

Definition at line 240 of file TestPage.cpp.

References menu.

Referenced by TestPage().

void TestPage::testNoSelection (  )  [slot]

Definition at line 248 of file TestPage.cpp.

References menu.

Referenced by copyTest(), deleteTest(), and TestPage().

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

Definition at line 256 of file TestPage.cpp.

References menu.

Referenced by TestPage().

void TestPage::updateList (  )  [slot]

Definition at line 261 of file TestPage.cpp.

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

Referenced by copyTest(), deleteTest(), newTest(), searchChanged(), and TestPage().

void TestPage::copyTest (  )  [slot]

Definition at line 195 of file TestPage.cpp.

References config, Config::getData(), list, testNoSelection(), Config::TestPath, and updateList().

Referenced by slotAccel(), and TestPage().

void TestPage::slotMessage ( QString  d  )  [slot]

Definition at line 278 of file TestPage.cpp.

References message().

void TestPage::slotHelp (  )  [slot]

Definition at line 292 of file TestPage.cpp.

Referenced by slotAccel(), and TestPage().

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

Definition at line 283 of file TestPage.cpp.

References chartIndex.

Referenced by TestPage().

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

Definition at line 304 of file TestPage.cpp.

References CopyTest, deleteTest(), DeleteTest, NewTest, openTest(), OpenTest, RenameTest, and slotAccel().

Referenced by keyPressEvent().

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

Definition at line 352 of file TestPage.cpp.

References copyTest(), CopyTest, deleteTest(), DeleteTest, Help, newTest(), NewTest, openTest(), OpenTest, renameTest(), RenameTest, and slotHelp().

Referenced by doKeyPress(), and TestPage().

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

Definition at line 379 of file TestPage.cpp.

References idir, and updateList().

Referenced by TestPage().

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

Definition at line 299 of file TestPage.cpp.

References doKeyPress().


Member Data Documentation

Config TestPage::config [private]

Definition at line 79 of file TestPage.h.

Referenced by copyTest(), deleteTest(), renameTest(), and updateList().

QPopupMenu* TestPage::menu [private]

Definition at line 80 of file TestPage.h.

Referenced by rightClick(), testNoSelection(), TestPage(), and testSelected().

MainMenubar* TestPage::menubar [private]

Definition at line 81 of file TestPage.h.

Referenced by TestPage().

QListBox* TestPage::list [private]

Definition at line 82 of file TestPage.h.

Referenced by copyTest(), openTest(), renameTest(), TestPage(), and updateList().

QLineEdit* TestPage::search [private]

Definition at line 83 of file TestPage.h.

Referenced by TestPage().

QDir TestPage::idir [private]

Definition at line 84 of file TestPage.h.

Referenced by searchChanged(), TestPage(), and updateList().

DBIndex* TestPage::chartIndex [private]

Definition at line 85 of file TestPage.h.

Referenced by doubleClick(), newTest(), openTest(), and TestPage().


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