#include <TestPage.h>
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 |
MainMenubar * | menubar |
QListBox * | list |
QLineEdit * | search |
QDir | idir |
DBIndex * | chartIndex |
Definition at line 37 of file TestPage.h.
enum TestPage::HotKey |
Definition at line 46 of file TestPage.h.
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.
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] |
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] |
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] |
void TestPage::slotHelp | ( | ) | [slot] |
void TestPage::doubleClick | ( | QListBoxItem * | item | ) | [slot] |
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] |
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] |
QListBox* TestPage::list [private] |
Definition at line 82 of file TestPage.h.
Referenced by copyTest(), openTest(), renameTest(), TestPage(), and updateList().
QLineEdit* TestPage::search [private] |
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().