|
Aquila
2.0 prealpha
Cognitive Robotics Architecture
|
#include <gui.h>
Public Slots | |
| void | setGpu (int deviceID) |
| Sets GPU based on user selection. | |
| void | setGpuList (QStringList gpuList) |
| Sets GPU list and subsequently calls a function that constructs device sub-menu. | |
Signals | |
| void | tabSelected () |
| void | tabDeselected () |
| void | stateReceived (int newState) |
| void | abortRequested () |
Public Member Functions | |
| GUI (MainWindow *pMainWindow, QString binaryName, QString moduleTitle, QString serverName, int instanceID, int tabID=-1) | |
| Constructor. | |
| ~GUI () | |
| Destructor. | |
Public Attributes | |
| QString | binary |
| QString | title |
| QString | server |
| int | instance |
Protected Slots | |
| virtual void | about () |
| Shows message box with the information about module. | |
| virtual void | show () |
| Shows menu. | |
| virtual void | checkFocus (int tabID) |
| Checks if the module tab is currently selected. | |
| virtual void | statusChanged (int newStatus) |
| Updates module based on the new status. | |
| virtual void | createMenu () |
| Creates menu. | |
| virtual void | createFileMenu () |
| Creates file menu. | |
| virtual void | createEditMenu () |
| Creates edit menu. | |
| virtual void | createHelpMenu () |
| Creates help menu. | |
| virtual void | createModuleMenu () |
| Creates module menu. | |
| virtual void | createDeviceSubmenu () |
| Creates device sub-menu. | |
| virtual void | updateGUI () |
| Updates graphical user interface. | |
| virtual void | updateProgressBarClients () |
| Updates progress bar clients. | |
| virtual void | updateProgressBar (int currentProgress) |
| Updates progress bar with the new value. | |
Protected Member Functions | |
| void | createStartAction (QMenu *menu, QString actionName, QString statusTip, QString shortcut) |
| void | createStopAction (QMenu *menu, QString actionName, QString statusTip, QString shortcut) |
Protected Attributes | |
| MainWindow * | mainWindow |
| Settings * | settingsBase |
| Interface * | interfaceBase |
| QSignalMapper * | deviceSignalMapper |
| QMenu * | fileMenu |
| QMenu * | editMenu |
| QMenu * | helpMenu |
| QMenu * | deviceSubMenu |
| QMenu * | moduleMenu |
| QAction * | startAction |
| QAction * | stopAction |
| QAction * | settingsAct |
| QAction * | deviceAct [MAX_GPU_DEVICES] |
| QAction * | abortAct |
| QAction * | quitAct |
| QAction * | aboutAct [2] |
| QString | tag |
| int | progress |
| int | status |
| bool | selected |
| bool | running |
| bool | remoteMode |
| bool | useModuleMenu |
| bool | moduleConnected |
Base class for graphical user interfaces
| GUI::GUI | ( | MainWindow * | pMainWindow, |
| QString | binaryName, | ||
| QString | moduleTitle, | ||
| QString | serverName, | ||
| int | instanceID, | ||
| int | tabID = -1 |
||
| ) |
Constructor.
| [in] | pMainWindow | - pointer to MainWindow |
| [in] | binaryName | - name of module executable |
| [in] | moduleTitle | - title of this module |
| [in] | server | - server where the module runs |
| [in] | instanceID | - module identification number |
| [in] | tabID | - module tab index |
| GUI::~GUI | ( | ) |
Destructor.
|
signal |
|
protectedvirtualslot |
Shows message box with the information about module.
|
protectedvirtualslot |
Checks if the module tab is currently selected.
| [in] | tabID | - module tab identification number |
|
protectedvirtualslot |
Creates device sub-menu.
|
protectedvirtualslot |
Creates edit menu.
|
protectedvirtualslot |
|
protectedvirtualslot |
Creates help menu.
|
protectedvirtualslot |
Creates menu.
|
protectedvirtualslot |
Creates module menu.
|
protected |
|
protected |
|
slot |
Sets GPU based on user selection.
| [in] | deviceID | - GPU device identification number |
|
slot |
Sets GPU list and subsequently calls a function that constructs device sub-menu.
| [in] | list | - list of GPU devices present on server running module |
|
protectedvirtualslot |
Shows menu.
|
signal |
|
protectedvirtualslot |
Updates module based on the new status.
| [in] | newStatus | - new status received from module |
|
signal |
|
signal |
|
protectedvirtualslot |
Updates graphical user interface.
|
protectedvirtualslot |
Updates progress bar with the new value.
| [in] | currentProgress | - current progress |
|
protectedvirtualslot |
Updates progress bar clients.
|
protected |
|
protected |
| QString GUI::binary |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| int GUI::instance |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| QString GUI::server |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| QString GUI::title |
|
protected |
1.8.3