Public Slots | Signals | Public Member Functions | Public Attributes | Private Attributes | List of all members
stdr_gui::CGuiConnector Class Reference

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

#include <stdr_gui_connector.h>

Inheritance diagram for stdr_gui::CGuiConnector:
Inheritance graph
[legend]

Public Slots

void actionAboutTriggered (void)
 Qt slot that is called when the About tool button is pressed. More...
 
void actionAddRobotTriggered (void)
 Qt slot that is called when the AddRobot tool button is pressed. More...
 
void actionAdjustedTriggered (void)
 Qt slot that is called when the adjusted map visualization tool button is pressed. More...
 
void actionExitTriggered (void)
 Qt slot that is called when the Exit action is triggered. More...
 
void actionGridTriggered (void)
 Qt slot that is called when the grid status has changed. More...
 
void actionLoadMapTriggered (void)
 Qt slot that is called when the LoadMap tool button is pressed. More...
 
void actionNewCo2Triggered (void)
 Qt slot that is called when the NewCO2 tool button is pressed. More...
 
void actionNewRfidTriggered (void)
 Qt slot that is called when the NewRfid tool button is pressed. More...
 
void actionNewRobotTriggered (void)
 Qt slot that is called when the NewRobot tool button is pressed. More...
 
void actionNewSoundTriggered (void)
 Qt slot that is called when the NewSound tool button is pressed. More...
 
void actionNewThermalTriggered (void)
 Qt slot that is called when the NewThermal tool button is pressed. More...
 
void actionPropertiesTriggered (void)
 Qt slot that is called when the Properties tool button is pressed. More...
 
void actionZoomInTriggered (void)
 Qt slot that is called when the zoom in tool button is pressed. More...
 
void actionZoomOutTriggered (void)
 Qt slot that is called when the zoom out tool button is pressed. More...
 

Signals

void guiExitEvent (void)
 Signal emmited on exit pressed. More...
 
void loadCo2Pressed (void)
 Signal emmited on load CO2 source pressed. More...
 
void loadRfidPressed (void)
 Signal emmited on load RFID tag pressed. More...
 
void loadSoundPressed (void)
 Signal emmited on load sound source pressed. More...
 
void loadThermalPressed (void)
 Signal emmited on load thermal source pressed. More...
 
void robotFromFile (stdr_msgs::RobotMsg msg)
 Signal emmited on load robot from file pressed. More...
 
void setAdjustedCursor (bool state)
 Qt signal that is emmited when the Adjust map button is pressed. More...
 
void setZoomInCursor (bool state)
 Qt signal that is emmited in GuiConnector::actionZoomInTriggered and connects to MapLoader::setCursorZoomIn. More...
 
void setZoomOutCursor (bool state)
 Qt signal that is emmited in GuiConnector::actionZoomOutTriggered and connects to MapLoader::setCursorZoomOut. More...
 

Public Member Functions

void addToGrid (QWidget *w, int row, int column)
 Adds a widget to the main window Qt grid. More...
 
 CGuiConnector (int argc, char **argv)
 Default contructor. More...
 
bool closeTriggered (void)
 Returns the exit triggered status. More...
 
QEvent * getCloseEvent (void)
 Returns the exit event captured. More...
 
bool isGridEnabled (void)
 Returns the grid enabled state. More...
 
void raiseMessage (QString title, QString s)
 Raises a message box with a specific message. More...
 
void setGridColumnStretch (int cell, int stretch)
 Wraps the Qt gridColumnStretch function. More...
 
void setMapInitialized (bool mi)
 Sets the map_initialized_ private variable. More...
 
void setStatusBarMessage (QString s)
 Displays a message in the QMainWindow status bar. More...
 
void show (void)
 Shows the main window. More...
 
void shutdown (void)
 Shuts down the main window. More...
 
void uncheckZoomButtons (void)
 Unchecks the zoom in & out buttons when right click in map is pushed. More...
 

Public Attributes

CRobotCreatorConnector robotCreatorConn
 < Serves the Qt events of the RobotCreator Widget More...
 

Private Attributes

int argc_
 < Number of input arguments More...
 
char ** argv_
 True if any map is loaded from server. More...
 
bool grid_enabled_
 The loader of main GUI QWidget. More...
 
CGuiLoader loader_
 
bool map_initialized_
 True if grid is enabled. More...
 

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

void stdr_gui::CGuiConnector::actionAboutTriggered ( void  )
slot

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

Returns
void

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.

Returns
void

< 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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

Returns
void

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.

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.

bool stdr_gui::CGuiConnector::closeTriggered ( void  )

Returns the exit triggered status.

Returns
bool True if exit has been triggered

Definition at line 412 of file stdr_gui_connector.cpp.

QEvent * stdr_gui::CGuiConnector::getCloseEvent ( void  )

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
bool stdr_gui::CGuiConnector::isGridEnabled ( 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
void stdr_gui::CGuiConnector::loadSoundPressed ( void  )
signal

Signal emmited on load sound source pressed.

Returns
void
void stdr_gui::CGuiConnector::loadThermalPressed ( void  )
signal

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.

void stdr_gui::CGuiConnector::setMapInitialized ( bool  mi)

Sets the map_initialized_ private variable.

Parameters
mi[bool] The new value
Returns
void

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.

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
void stdr_gui::CGuiConnector::show ( void  )

Shows the main window.

Returns
void

Definition at line 383 of file stdr_gui_connector.cpp.

void stdr_gui::CGuiConnector::shutdown ( void  )

Shuts down the main window.

Returns
void

Definition at line 421 of file stdr_gui_connector.cpp.

void stdr_gui::CGuiConnector::uncheckZoomButtons ( void  )

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

int stdr_gui::CGuiConnector::argc_
private

< Number of input arguments

Input arguments

Definition at line 48 of file stdr_gui_connector.h.

char** stdr_gui::CGuiConnector::argv_
private

True if any map is loaded from server.

Definition at line 50 of file stdr_gui_connector.h.

bool stdr_gui::CGuiConnector::grid_enabled_
private

The loader of main GUI QWidget.

Definition at line 54 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 52 of file stdr_gui_connector.h.

CRobotCreatorConnector stdr_gui::CGuiConnector::robotCreatorConn

< 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 Mon Jun 10 2019 15:15:17