Serves the Qt events of the main GUI window. Inherits from QObject. More...
#include <stdr_gui_connector.h>
Public Slots | |
void | actionAboutTriggered (void) |
Qt slot that is called when the About tool button is pressed. | |
void | actionAddRobotTriggered (void) |
Qt slot that is called when the AddRobot tool button is pressed. | |
void | actionAdjustedTriggered (void) |
Qt slot that is called when the adjusted map visualization tool button is pressed. | |
void | actionExitTriggered (void) |
Qt slot that is called when the Exit action is triggered. | |
void | actionGridTriggered (void) |
Qt slot that is called when the grid status has changed. | |
void | actionLoadMapTriggered (void) |
Qt slot that is called when the LoadMap tool button is pressed. | |
void | actionNewCo2Triggered (void) |
Qt slot that is called when the NewCO2 tool button is pressed. | |
void | actionNewRfidTriggered (void) |
Qt slot that is called when the NewRfid tool button is pressed. | |
void | actionNewRobotTriggered (void) |
Qt slot that is called when the NewRobot tool button is pressed. | |
void | actionNewSoundTriggered (void) |
Qt slot that is called when the NewSound tool button is pressed. | |
void | actionNewThermalTriggered (void) |
Qt slot that is called when the NewThermal tool button is pressed. | |
void | actionPropertiesTriggered (void) |
Qt slot that is called when the Properties tool button is pressed. | |
void | actionZoomInTriggered (void) |
Qt slot that is called when the zoom in tool button is pressed. | |
void | actionZoomOutTriggered (void) |
Qt slot that is called when the zoom out tool button is pressed. | |
Signals | |
void | guiExitEvent (void) |
Signal emmited on exit pressed. | |
void | loadCo2Pressed (void) |
Signal emmited on load CO2 source pressed. | |
void | loadRfidPressed (void) |
Signal emmited on load RFID tag pressed. | |
void | loadSoundPressed (void) |
Signal emmited on load sound source pressed. | |
void | loadThermalPressed (void) |
Signal emmited on load thermal source pressed. | |
void | robotFromFile (stdr_msgs::RobotMsg msg) |
Signal emmited on load robot from file pressed. | |
void | setAdjustedCursor (bool state) |
Qt signal that is emmited when the Adjust map button is pressed. | |
void | setZoomInCursor (bool state) |
Qt signal that is emmited in GuiConnector::actionZoomInTriggered and connects to MapLoader::setCursorZoomIn. | |
void | setZoomOutCursor (bool state) |
Qt signal that is emmited in GuiConnector::actionZoomOutTriggered and connects to MapLoader::setCursorZoomOut. | |
Public Member Functions | |
void | addToGrid (QWidget *w, int row, int column) |
Adds a widget to the main window Qt grid. | |
CGuiConnector (int argc, char **argv) | |
Default contructor. | |
bool | closeTriggered (void) |
Returns the exit triggered status. | |
QEvent * | getCloseEvent (void) |
Returns the exit event captured. | |
bool | isGridEnabled (void) |
Returns the grid enabled state. | |
void | raiseMessage (QString title, QString s) |
Raises a message box with a specific message. | |
void | setGridColumnStretch (int cell, int stretch) |
Wraps the Qt gridColumnStretch function. | |
void | setMapInitialized (bool mi) |
Sets the map_initialized_ private variable. | |
void | setStatusBarMessage (QString s) |
Displays a message in the QMainWindow status bar. | |
void | show (void) |
Shows the main window. | |
void | shutdown (void) |
Shuts down the main window. | |
void | uncheckZoomButtons (void) |
Unchecks the zoom in & out buttons when right click in map is pushed. | |
Public Attributes | |
CRobotCreatorConnector | robotCreatorConn |
< Serves the Qt events of the RobotCreator Widget | |
Private Attributes | |
int | argc_ |
< Number of input arguments | |
char ** | argv_ |
True if any map is loaded from server. | |
bool | grid_enabled_ |
The loader of main GUI QWidget. | |
CGuiLoader | loader_ |
bool | map_initialized_ |
True if grid is enabled. |
Serves the Qt events of the main GUI window. Inherits from QObject.
Definition at line 39 of file stdr_gui_connector.h.
stdr_gui::CGuiConnector::CGuiConnector | ( | int | argc, |
char ** | argv | ||
) |
Default contructor.
argc | [int] Number of input arguments |
argv | [char **] Input arguments |
Definition at line 33 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionAboutTriggered | ( | void | ) | [slot] |
Qt slot that is called when the About tool button is pressed.
Definition at line 176 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionAddRobotTriggered | ( | void | ) | [slot] |
Qt slot that is called when the AddRobot tool button is pressed.
< Not a valid filename
Definition at line 202 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionAdjustedTriggered | ( | void | ) | [slot] |
Qt slot that is called when the adjusted map visualization tool button is pressed.
Definition at line 323 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionExitTriggered | ( | void | ) | [slot] |
Qt slot that is called when the Exit action is triggered.
Definition at line 106 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionGridTriggered | ( | void | ) | [slot] |
Qt slot that is called when the grid status has changed.
Definition at line 338 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionLoadMapTriggered | ( | void | ) | [slot] |
Qt slot that is called when the LoadMap tool button is pressed.
Definition at line 127 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionNewCo2Triggered | ( | void | ) | [slot] |
Qt slot that is called when the NewCO2 tool button is pressed.
Definition at line 267 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionNewRfidTriggered | ( | void | ) | [slot] |
Qt slot that is called when the NewRfid tool button is pressed.
Definition at line 241 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionNewRobotTriggered | ( | void | ) | [slot] |
Qt slot that is called when the NewRobot tool button is pressed.
Definition at line 193 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionNewSoundTriggered | ( | void | ) | [slot] |
Qt slot that is called when the NewSound tool button is pressed.
Definition at line 280 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionNewThermalTriggered | ( | void | ) | [slot] |
Qt slot that is called when the NewThermal tool button is pressed.
Definition at line 254 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionPropertiesTriggered | ( | void | ) | [slot] |
Qt slot that is called when the Properties tool button is pressed.
Definition at line 116 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionZoomInTriggered | ( | void | ) | [slot] |
Qt slot that is called when the zoom in tool button is pressed.
Definition at line 293 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::actionZoomOutTriggered | ( | void | ) | [slot] |
Qt slot that is called when the zoom out tool button is pressed.
Definition at line 308 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::addToGrid | ( | QWidget * | w, |
int | row, | ||
int | column | ||
) |
Adds a widget to the main window Qt grid.
w | [QWidget*] The widget to be placed |
row | [int] The row of the grid |
column | [int] The column of the grid |
Definition at line 363 of file stdr_gui_connector.cpp.
bool stdr_gui::CGuiConnector::closeTriggered | ( | void | ) |
Returns the exit triggered status.
Definition at line 412 of file stdr_gui_connector.cpp.
QEvent * stdr_gui::CGuiConnector::getCloseEvent | ( | void | ) |
Returns the exit event captured.
Definition at line 403 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::guiExitEvent | ( | void | ) | [signal] |
Signal emmited on exit pressed.
bool stdr_gui::CGuiConnector::isGridEnabled | ( | void | ) |
Returns the grid enabled state.
Definition at line 351 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::loadCo2Pressed | ( | void | ) | [signal] |
Signal emmited on load CO2 source pressed.
void stdr_gui::CGuiConnector::loadRfidPressed | ( | void | ) | [signal] |
Signal emmited on load RFID tag pressed.
void stdr_gui::CGuiConnector::loadSoundPressed | ( | void | ) | [signal] |
Signal emmited on load sound source pressed.
void stdr_gui::CGuiConnector::loadThermalPressed | ( | void | ) | [signal] |
Signal emmited on load thermal source pressed.
void stdr_gui::CGuiConnector::raiseMessage | ( | QString | title, |
QString | s | ||
) |
Raises a message box with a specific message.
title | [QString] The message box title |
s | [QString] The message |
Definition at line 452 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::robotFromFile | ( | stdr_msgs::RobotMsg | msg | ) | [signal] |
Signal emmited on load robot from file pressed.
msg | [stdr_msgs::RobotMsg] The robot to be placed in the map |
void stdr_gui::CGuiConnector::setAdjustedCursor | ( | bool | state | ) | [signal] |
Qt signal that is emmited when the Adjust map button is pressed.
state | [bool] Toggle flag |
void stdr_gui::CGuiConnector::setGridColumnStretch | ( | int | cell, |
int | stretch | ||
) |
Wraps the Qt gridColumnStretch function.
cell | [int] The specific column |
stretch | [int] The relative stretch coefficient |
Definition at line 374 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::setMapInitialized | ( | bool | mi | ) |
Sets the map_initialized_ private variable.
mi | [bool] The new value |
Definition at line 431 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::setStatusBarMessage | ( | QString | s | ) |
Displays a message in the QMainWindow status bar.
s | [QString] The message |
Definition at line 394 of file stdr_gui_connector.cpp.
void stdr_gui::CGuiConnector::setZoomInCursor | ( | bool | state | ) | [signal] |
Qt signal that is emmited in GuiConnector::actionZoomInTriggered and connects to MapLoader::setCursorZoomIn.
state | [bool] Toggle flag |
void stdr_gui::CGuiConnector::setZoomOutCursor | ( | bool | state | ) | [signal] |
Qt signal that is emmited in GuiConnector::actionZoomOutTriggered and connects to MapLoader::setCursorZoomOut.
state | [bool] Toggle flag |
void stdr_gui::CGuiConnector::show | ( | void | ) |
void stdr_gui::CGuiConnector::shutdown | ( | void | ) |
void stdr_gui::CGuiConnector::uncheckZoomButtons | ( | void | ) |
Unchecks the zoom in & out buttons when right click in map is pushed.
Definition at line 440 of file stdr_gui_connector.cpp.
int stdr_gui::CGuiConnector::argc_ [private] |
char** stdr_gui::CGuiConnector::argv_ [private] |
True if any map is loaded from server.
Definition at line 51 of file stdr_gui_connector.h.
bool stdr_gui::CGuiConnector::grid_enabled_ [private] |
The loader of main GUI QWidget.
Definition at line 56 of file stdr_gui_connector.h.
CGuiLoader stdr_gui::CGuiConnector::loader_ [private] |
Definition at line 57 of file stdr_gui_connector.h.
bool stdr_gui::CGuiConnector::map_initialized_ [private] |
True if grid is enabled.
Definition at line 53 of file stdr_gui_connector.h.
< Serves the Qt events of the RobotCreator Widget
Definition at line 63 of file stdr_gui_connector.h.