RTXI  3.0.0
The Real-Time eXperiment Interface Reference Manual
Public Member Functions | Static Public Member Functions
MainWindow Class Reference

#include <main_window.hpp>

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

Public Member Functions

 MainWindow (Event::Manager *ev_manager)
 
QAction * createFileMenuItem (const QString &label)
 
void clearFileMenu ()
 
QAction * insertWidgetMenuSeparator ()
 
QAction * createWidgetMenuItem (const QString &text)
 
QAction * createWidgetMenuItem (const QString &text, const QObject *receiver, const char *member)
 
void clearWidgetMenu ()
 
void removeWidgetMenuItem (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 loadWindow ()
 

Static Public Member Functions

static void setWidgetMenuItemParameter (QAction *action, int parameter)
 
static void changeWidgetMenuItem (QAction *action, const QString &text)
 

Detailed Description

The primary graphical object in the program.

Definition at line 47 of file main_window.hpp.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow(Event::Managerev_manager)
explicit

Definition at line 50 of file main_window.cpp.

Member Function Documentation

◆ changeWidgetMenuItem()

void MainWindow::changeWidgetMenuItem(QAction * action,
const QString & text 
)
static

Change the text associated with the Widgets menu item.

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

Definition at line 133 of file main_window.cpp.

◆ clearFileMenu()

void MainWindow::clearFileMenu()

Clears the File menu.

Definition at line 99 of file main_window.cpp.

◆ clearWidgetMenu()

void MainWindow::clearWidgetMenu()

Clears the Widgets menu.

Definition at line 128 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 94 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.

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

◆ createWidgetMenuItem() [1/2]

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

Add an item to the Widgets 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 111 of file main_window.cpp.

◆ createWidgetMenuItem() [2/2]

QAction * MainWindow::createWidgetMenuItem(const QString & text,
const QObject * receiver,
const char * member 
)

Definition at line 116 of file main_window.cpp.

◆ insertWidgetMenuSeparator()

QAction * MainWindow::insertWidgetMenuSeparator()

Insert separator

Definition at line 89 of file main_window.cpp.

◆ loadWindow()

void MainWindow::loadWindow()

Load window geometry based upon previously stored settings

Definition at line 353 of file main_window.cpp.

◆ removeWidgetMenuItem()

void MainWindow::removeWidgetMenuItem(QAction * action)

Remove an item from the Widgets menu.

Parameters
indexThe index of the item to be removed.

Definition at line 138 of file main_window.cpp.

◆ setWidgetMenuItemParameter()

void MainWindow::setWidgetMenuItemParameter(QAction * action,
int parameter 
)
static

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

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

Definition at line 123 of file main_window.cpp.


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