Public Slots | Signals | Public Member Functions | Public Attributes | Private Attributes
stdr_gui::CGuiConnector Class Reference

Serves the Qt events of the main GUI window. Inherits from QObject. More...

#include <stdr_gui_connector.h>

List of all members.

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.

Detailed Description

Serves the Qt events of the main GUI window. Inherits from QObject.

Definition at line 39 of file stdr_gui_connector.h.


Constructor & Destructor Documentation

stdr_gui::CGuiConnector::CGuiConnector ( int  argc,
char **  argv 
)

Default contructor.

Parameters:
argc[int] Number of input arguments
argv[char **] Input arguments
Returns:
void

Definition at line 33 of file stdr_gui_connector.cpp.


Member Function Documentation

Qt slot that is called when the About tool button is pressed.

Returns:
void

Definition at line 176 of file stdr_gui_connector.cpp.

Qt slot that is called when the AddRobot tool button is pressed.

Returns:
void

< Not a valid filename

Definition at line 202 of file stdr_gui_connector.cpp.

Qt slot that is called when the adjusted map visualization tool button is pressed.

Returns:
void

Definition at line 323 of file stdr_gui_connector.cpp.

Qt slot that is called when the Exit action is triggered.

Returns:
void

Definition at line 106 of file stdr_gui_connector.cpp.

Qt slot that is called when the grid status has changed.

Returns:
void

Definition at line 338 of file stdr_gui_connector.cpp.

Qt slot that is called when the LoadMap tool button is pressed.

Returns:
void

Definition at line 127 of file stdr_gui_connector.cpp.

Qt slot that is called when the NewCO2 tool button is pressed.

Returns:
void

Definition at line 267 of file stdr_gui_connector.cpp.

Qt slot that is called when the NewRfid tool button is pressed.

Returns:
void

Definition at line 241 of file stdr_gui_connector.cpp.

Qt slot that is called when the NewRobot tool button is pressed.

Returns:
void

Definition at line 193 of file stdr_gui_connector.cpp.

Qt slot that is called when the NewSound tool button is pressed.

Returns:
void

Definition at line 280 of file stdr_gui_connector.cpp.

Qt slot that is called when the NewThermal tool button is pressed.

Returns:
void

Definition at line 254 of file stdr_gui_connector.cpp.

Qt slot that is called when the Properties tool button is pressed.

Returns:
void

Definition at line 116 of file stdr_gui_connector.cpp.

Qt slot that is called when the zoom in tool button is pressed.

Returns:
void

Definition at line 293 of file stdr_gui_connector.cpp.

Qt slot that is called when the zoom out tool button is pressed.

Returns:
void

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.

Parameters:
w[QWidget*] The widget to be placed
row[int] The row of the grid
column[int] The column of the grid
Returns:
void

Definition at line 363 of file stdr_gui_connector.cpp.

Returns the exit triggered status.

Returns:
bool True if exit has been triggered

Definition at line 412 of file stdr_gui_connector.cpp.

Returns the exit event captured.

Returns:
QEvent* The captured event

Definition at line 403 of file stdr_gui_connector.cpp.

void stdr_gui::CGuiConnector::guiExitEvent ( void  ) [signal]

Signal emmited on exit pressed.

Returns:
void

Returns the grid enabled state.

Returns:
bool : True if grid is enabled

Definition at line 351 of file stdr_gui_connector.cpp.

void stdr_gui::CGuiConnector::loadCo2Pressed ( void  ) [signal]

Signal emmited on load CO2 source pressed.

Returns:
void
void stdr_gui::CGuiConnector::loadRfidPressed ( void  ) [signal]

Signal emmited on load RFID tag pressed.

Returns:
void

Signal emmited on load sound source pressed.

Returns:
void

Signal emmited on load thermal source pressed.

Returns:
void
void stdr_gui::CGuiConnector::raiseMessage ( QString  title,
QString  s 
)

Raises a message box with a specific message.

Parameters:
title[QString] The message box title
s[QString] The message
Returns:
void

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.

Parameters:
msg[stdr_msgs::RobotMsg] The robot to be placed in the map
Returns:
void
void stdr_gui::CGuiConnector::setAdjustedCursor ( bool  state) [signal]

Qt signal that is emmited when the Adjust map button is pressed.

Parameters:
state[bool] Toggle flag
Returns:
void
void stdr_gui::CGuiConnector::setGridColumnStretch ( int  cell,
int  stretch 
)

Wraps the Qt gridColumnStretch function.

Parameters:
cell[int] The specific column
stretch[int] The relative stretch coefficient
Returns:
void

Definition at line 374 of file stdr_gui_connector.cpp.

Sets the map_initialized_ private variable.

Parameters:
mi[bool] The new value
Returns:
void

Definition at line 431 of file stdr_gui_connector.cpp.

Displays a message in the QMainWindow status bar.

Parameters:
s[QString] The message
Returns:
void

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.

Parameters:
state[bool] Toggle flag
Returns:
void
void stdr_gui::CGuiConnector::setZoomOutCursor ( bool  state) [signal]

Qt signal that is emmited in GuiConnector::actionZoomOutTriggered and connects to MapLoader::setCursorZoomOut.

Parameters:
state[bool] Toggle flag
Returns:
void

Shows the main window.

Returns:
void

Definition at line 383 of file stdr_gui_connector.cpp.

Shuts down the main window.

Returns:
void

Definition at line 421 of file stdr_gui_connector.cpp.

Unchecks the zoom in & out buttons when right click in map is pushed.

Returns:
void

Definition at line 440 of file stdr_gui_connector.cpp.


Member Data Documentation

< Number of input arguments

Input arguments

Definition at line 49 of file stdr_gui_connector.h.

True if any map is loaded from server.

Definition at line 51 of file stdr_gui_connector.h.

The loader of main GUI QWidget.

Definition at line 56 of file stdr_gui_connector.h.

Definition at line 57 of file stdr_gui_connector.h.

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.


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


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Tue Feb 7 2017 03:46:43