RTXI 2.4 The Real-Time eXperiment Interface Documentation |
#include <main_window.h>
Public Member Functions | |
virtual | ~MainWindow (void) |
QAction * | createFileMenuItem (const QString &label) |
void | clearFileMenu (void) |
QAction * | insertModuleMenuSeparator (void) |
QAction * | createModuleMenuItem (const QString &text) |
QAction * | createModuleMenuItem (const QString &text, const QObject *handler, const char *slot) |
void | setModuleMenuItemParameter (QAction *action, int parameter) |
void | clearModuleMenu (void) |
void | changeModuleMenuItem (QAction *action, QString text) |
void | removeModuleMenuItem (QAction *action) |
QAction * | createUtilMenuItem (const QString &label, const QObject *handler, const char *slot) |
QAction * | createSystemMenuItem (const QString &label, const QObject *handler, const char *slot) |
void | createMdi (QMdiSubWindow *) |
void | loadWindow (void) |
Static Public Member Functions | |
static MainWindow * | getInstance (void) |
Friends | |
class | QApplication |
The primary graphical object in the program.
Definition at line 35 of file main_window.h.
| virtual |
Definition at line 66 of file main_window.cpp.
void MainWindow::changeModuleMenuItem | ( | QAction * | action, |
QString | text | ||
) |
Change the text associated with the Modules menu item.
id | The index of the item to change. |
text | The next text to assign to that menu item. |
Definition at line 112 of file main_window.cpp.
void MainWindow::clearFileMenu | ( | void | ) |
Clears the File menu.
Definition at line 80 of file main_window.cpp.
void MainWindow::clearModuleMenu | ( | void | ) |
Clears the Modules menu.
Definition at line 107 of file main_window.cpp.
QAction * MainWindow::createFileMenuItem | ( | const QString & | label | ) |
Add an item to the File menu.
label | The text that will appear in the menu. |
handler | The object that will handle signals from the menu. |
slot | The slot in the handler that the signal will activate. |
Definition at line 75 of file main_window.cpp.
void MainWindow::createMdi | ( | QMdiSubWindow * | subWindow | ) |
Definition at line 230 of file main_window.cpp.
QAction * MainWindow::createModuleMenuItem | ( | const QString & | text | ) |
Add an item to the Modules menu.
label | The text that will appear in the menu. |
handler | The object that will handle signals from the menu. |
slot | The slot in the handler that the signal will activate. |
Definition at line 92 of file main_window.cpp.
QAction * MainWindow::createModuleMenuItem | ( | const QString & | text, |
const QObject * | handler, | ||
const char * | slot | ||
) |
Definition at line 97 of file main_window.cpp.
QAction * MainWindow::createSystemMenuItem | ( | const QString & | label, |
const QObject * | handler, | ||
const char * | slot | ||
) |
Add an item to the System menu.
label | The text that will appear in the menu. |
handler | The object that will handle signals from the menu. |
slot | The slot in the handler that the signal will activate. |
Definition at line 253 of file main_window.cpp.
QAction * MainWindow::createUtilMenuItem | ( | const QString & | label, |
const QObject * | handler, | ||
const char * | slot | ||
) |
Add an item to the Utilities menu.
label | The text that will appear in the menu. |
handler | The object that will handle signals from the menu. |
slot | The slot in the handler that the signal will activate. |
Definition at line 124 of file main_window.cpp.
| static |
MainWindow is a Singleton, which means that there can only be one instance. This function returns a pointer to that single instance.
Definition at line 454 of file main_window.cpp.
QAction * MainWindow::insertModuleMenuSeparator | ( | void | ) |
Insert separator
Definition at line 70 of file main_window.cpp.
void MainWindow::loadWindow | ( | void | ) |
Load window geometry based upon previously stored settings
Definition at line 296 of file main_window.cpp.
void MainWindow::removeModuleMenuItem | ( | QAction * | action | ) |
Remove an item from the Modules menu.
index | The index of the item to be removed. |
Definition at line 117 of file main_window.cpp.
void MainWindow::setModuleMenuItemParameter | ( | QAction * | action, |
int | parameter | ||
) |
Sets the parameter value of a menu item in the Modules menu.
menuid | The index of the item to be removed. |
parameter | The parameter value to set. |
Definition at line 102 of file main_window.cpp.
| friend |
Definition at line 40 of file main_window.h.