RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MainWindow Class Reference

#include <main_window.h>

Inheritance diagram for MainWindow:

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 MainWindowgetInstance (void)
 

Private Slots

void about (void)
 
void aboutXeno (void)
 
void aboutQt (void)
 
void openDocs (void)
 
void openSubIssue (void)
 
void loadSettings (void)
 
void saveSettings (void)
 
void resetSettings (void)
 
void windowsMenuAboutToShow (void)
 
void windowsMenuActivated (QAction *)
 
void modulesMenuActivated (QAction *)
 
void fileMenuActivated (QAction *)
 
void utilitiesMenuActivated (QAction *)
 

Private Member Functions

 MainWindow (void)
 
 MainWindow (const MainWindow &)
 
MainWindowoperator= (const MainWindow &)
 
void updateCheck (void)
 
void createFileMenu ()
 
void createModuleMenu ()
 
void createUtilMenu ()
 
void createSystemMenu ()
 
void createWindowsMenu ()
 
void createHelpMenu ()
 
void createFileActions ()
 
void createHelpActions ()
 
void closeEvent (QCloseEvent *)
 

Private Attributes

QMdiArea * mdiArea
 
QList< QMdiSubWindow * > subWindows
 
QMenu * fileMenu
 
QMenu * moduleMenu
 
QMenu * utilMenu
 
QMenu * filtersSubMenu
 
QMenu * signalsSubMenu
 
QMenu * utilitiesSubMenu
 
QMenu * systemMenu
 
QMenu * windowsMenu
 
QMenu * helpMenu
 
QAction * load
 
QAction * save
 
QAction * reset
 
QAction * quit
 
QAction * artxi
 
QAction * axeno
 
QAction * aqt
 
QAction * adocs
 
QAction * sub_issue
 
QAction * utilItem
 

Static Private Attributes

static MainWindowinstance = 0
 

Friends

class QApplication
 

Detailed Description

The primary graphical object in the program.

Definition at line 35 of file main_window.h.

Constructor & Destructor Documentation

MainWindow::~MainWindow(void )
virtual

Definition at line 70 of file main_window.cpp.

MainWindow::MainWindow(void )
private

Definition at line 30 of file main_window.cpp.

MainWindow::MainWindow(const MainWindow)
inlineprivate

Definition at line 181 of file main_window.h.

Member Function Documentation

void MainWindow::about(void )
privateslot

Definition at line 262 of file main_window.cpp.

void MainWindow::aboutQt(void )
privateslot

Definition at line 268 of file main_window.cpp.

void MainWindow::aboutXeno(void )
privateslot

Definition at line 273 of file main_window.cpp.

void MainWindow::changeModuleMenuItem(QAction * action,
QString text 
)

Change the text associated with the Modules menu item.

Parameters
idThe index of the item to change.
textThe next text to assign to that menu item.

Definition at line 116 of file main_window.cpp.

void MainWindow::clearFileMenu(void )

Clears the File menu.

Definition at line 84 of file main_window.cpp.

void MainWindow::clearModuleMenu(void )

Clears the Modules menu.

Definition at line 111 of file main_window.cpp.

void MainWindow::closeEvent(QCloseEvent * event)
private

Definition at line 454 of file main_window.cpp.

void MainWindow::createFileActions()
private

Definition at line 211 of file main_window.cpp.

void MainWindow::createFileMenu()
private

Definition at line 133 of file main_window.cpp.

QAction * MainWindow::createFileMenuItem(const QString & label)

Add an item to the File menu.

Parameters
labelThe text that will appear in the menu.
handlerThe object that will handle signals from the menu.
slotThe slot in the handler that the signal will activate.
Returns
The index of the new menu item.

Definition at line 79 of file main_window.cpp.

void MainWindow::createHelpActions()
private

Definition at line 239 of file main_window.cpp.

void MainWindow::createHelpMenu()
private

Definition at line 199 of file main_window.cpp.

void MainWindow::createMdi(QMdiSubWindow * subWindow)

Definition at line 234 of file main_window.cpp.

void MainWindow::createModuleMenu()
private

Definition at line 145 of file main_window.cpp.

QAction * MainWindow::createModuleMenuItem(const QString & text)

Add an item to the Modules menu.

Parameters
labelThe text that will appear in the menu.
handlerThe object that will handle signals from the menu.
slotThe slot in the handler that the signal will activate.
Returns
The index of the new menu item.

Definition at line 96 of file main_window.cpp.

QAction * MainWindow::createModuleMenuItem(const QString & text,
const QObject * handler,
const char * slot 
)

Definition at line 101 of file main_window.cpp.

void MainWindow::createSystemMenu()
private

Definition at line 188 of file main_window.cpp.

QAction * MainWindow::createSystemMenuItem(const QString & label,
const QObject * handler,
const char * slot 
)

Add an item to the System menu.

Parameters
labelThe text that will appear in the menu.
handlerThe object that will handle signals from the menu.
slotThe slot in the handler that the signal will activate.
Returns
The index of the new menu item.

Definition at line 257 of file main_window.cpp.

void MainWindow::createUtilMenu()
private

Definition at line 151 of file main_window.cpp.

QAction * MainWindow::createUtilMenuItem(const QString & label,
const QObject * handler,
const char * slot 
)

Add an item to the Utilities menu.

Parameters
labelThe text that will appear in the menu.
handlerThe object that will handle signals from the menu.
slotThe slot in the handler that the signal will activate.
Returns
The index of the new menu item.

Definition at line 128 of file main_window.cpp.

void MainWindow::createWindowsMenu()
private

Definition at line 193 of file main_window.cpp.

void MainWindow::fileMenuActivated(QAction * id)
privateslot

Definition at line 437 of file main_window.cpp.

MainWindow * MainWindow::getInstance(void )
static

MainWindow is a Singleton, which means that there can only be one instance. This function returns a pointer to that single instance.

Returns
The instance of MainWindow.

Definition at line 475 of file main_window.cpp.

QAction * MainWindow::insertModuleMenuSeparator(void )

Insert separator

Definition at line 74 of file main_window.cpp.

void MainWindow::loadSettings(void )
privateslot

Definition at line 331 of file main_window.cpp.

void MainWindow::loadWindow(void )

Load window geometry based upon previously stored settings

Definition at line 317 of file main_window.cpp.

void MainWindow::modulesMenuActivated(QAction * id)
privateslot

Definition at line 425 of file main_window.cpp.

void MainWindow::openDocs(void )
privateslot

Definition at line 287 of file main_window.cpp.

void MainWindow::openSubIssue(void )
privateslot

Definition at line 292 of file main_window.cpp.

MainWindow& MainWindow::operator=(const MainWindow)
inlineprivate

Definition at line 182 of file main_window.h.

void MainWindow::removeModuleMenuItem(QAction * action)

Remove an item from the Modules menu.

Parameters
indexThe index of the item to be removed.

Definition at line 121 of file main_window.cpp.

void MainWindow::resetSettings(void )
privateslot

Definition at line 371 of file main_window.cpp.

void MainWindow::saveSettings(void )
privateslot

Definition at line 347 of file main_window.cpp.

void MainWindow::setModuleMenuItemParameter(QAction * action,
int parameter 
)

Sets the parameter value of a menu item in the Modules menu.

Parameters
menuidThe index of the item to be removed.
parameterThe parameter value to set.

Definition at line 106 of file main_window.cpp.

void MainWindow::updateCheck(void )
private

Definition at line 297 of file main_window.cpp.

void MainWindow::utilitiesMenuActivated(QAction * id)
privateslot

Definition at line 378 of file main_window.cpp.

void MainWindow::windowsMenuAboutToShow(void )
privateslot

Definition at line 383 of file main_window.cpp.

void MainWindow::windowsMenuActivated(QAction * id)
privateslot

Definition at line 410 of file main_window.cpp.

Friends And Related Function Documentation

friend class QApplication
friend

Definition at line 40 of file main_window.h.

Member Data Documentation

QAction* MainWindow::adocs
private

Definition at line 208 of file main_window.h.

QAction* MainWindow::aqt
private

Definition at line 207 of file main_window.h.

QAction* MainWindow::artxi
private

Definition at line 205 of file main_window.h.

QAction* MainWindow::axeno
private

Definition at line 206 of file main_window.h.

QMenu* MainWindow::fileMenu
private

Definition at line 191 of file main_window.h.

QMenu* MainWindow::filtersSubMenu
private

Definition at line 194 of file main_window.h.

QMenu* MainWindow::helpMenu
private

Definition at line 199 of file main_window.h.

MainWindow * MainWindow::instance = 0
staticprivate

Definition at line 185 of file main_window.h.

QAction* MainWindow::load
private

Definition at line 201 of file main_window.h.

QMdiArea* MainWindow::mdiArea
private

Definition at line 188 of file main_window.h.

QMenu* MainWindow::moduleMenu
private

Definition at line 192 of file main_window.h.

QAction* MainWindow::quit
private

Definition at line 204 of file main_window.h.

QAction* MainWindow::reset
private

Definition at line 203 of file main_window.h.

QAction* MainWindow::save
private

Definition at line 202 of file main_window.h.

QMenu* MainWindow::signalsSubMenu
private

Definition at line 195 of file main_window.h.

QAction* MainWindow::sub_issue
private

Definition at line 209 of file main_window.h.

QList<QMdiSubWindow *> MainWindow::subWindows
private

Definition at line 189 of file main_window.h.

QMenu* MainWindow::systemMenu
private

Definition at line 197 of file main_window.h.

QAction* MainWindow::utilItem
private

Definition at line 210 of file main_window.h.

QMenu* MainWindow::utilitiesSubMenu
private

Definition at line 196 of file main_window.h.

QMenu* MainWindow::utilMenu
private

Definition at line 193 of file main_window.h.

QMenu* MainWindow::windowsMenu
private

Definition at line 198 of file main_window.h.


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