RTXI  2.4
The Real-Time eXperiment Interface Documentation
Public Member Functions | Static Public Member Functions | Friends
MainWindow Class Reference

#include <main_window.h>

Inheritance diagram for MainWindow:
Inheritance graph
Collaboration diagram for MainWindow:
Collaboration graph

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)
 

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::~MainWindow(void )
virtual

Definition at line 66 of file main_window.cpp.

Member Function Documentation

◆ changeModuleMenuItem()

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 112 of file main_window.cpp.

◆ clearFileMenu()

void MainWindow::clearFileMenu(void )

Clears the File menu.

Definition at line 80 of file main_window.cpp.

◆ clearModuleMenu()

void MainWindow::clearModuleMenu(void )

Clears the Modules menu.

Definition at line 107 of file main_window.cpp.

◆ createFileMenuItem()

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 75 of file main_window.cpp.

◆ createMdi()

void MainWindow::createMdi(QMdiSubWindow * subWindow)

Definition at line 230 of file main_window.cpp.

◆ createModuleMenuItem() [1/2]

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 92 of file main_window.cpp.

◆ createModuleMenuItem() [2/2]

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

Definition at line 97 of file main_window.cpp.

◆ createSystemMenuItem()

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 253 of file main_window.cpp.

◆ createUtilMenuItem()

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 124 of file main_window.cpp.

◆ getInstance()

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 454 of file main_window.cpp.

◆ insertModuleMenuSeparator()

QAction * MainWindow::insertModuleMenuSeparator(void )

Insert separator

Definition at line 70 of file main_window.cpp.

◆ loadWindow()

void MainWindow::loadWindow(void )

Load window geometry based upon previously stored settings

Definition at line 296 of file main_window.cpp.

◆ removeModuleMenuItem()

void MainWindow::removeModuleMenuItem(QAction * action)

Remove an item from the Modules menu.

Parameters
indexThe index of the item to be removed.

Definition at line 117 of file main_window.cpp.

◆ setModuleMenuItemParameter()

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 102 of file main_window.cpp.

Friends And Related Function Documentation

◆ QApplication

friend class QApplication
friend

Definition at line 40 of file main_window.h.


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