stdr_gui_connector.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 
22 #ifndef STDR_GUI_CONNECTOR
23 #define STDR_GUI_CONNECTOR
24 
27 
32 namespace stdr_gui
33 {
34 
40  public QObject
41  {
42  Q_OBJECT
43 
44  //------------------------------------------------------------------------//
45  private:
46 
48  int argc_;
50  char** argv_;
55 
58 
59  //------------------------------------------------------------------------//
60  public:
61 
64 
71  CGuiConnector(int argc, char **argv);
72 
77  bool isGridEnabled(void);
78 
85  void raiseMessage(QString title, QString s);
86 
94  void addToGrid(QWidget *w,int row,int column);
95 
102  void setGridColumnStretch(int cell,int stretch);
103 
108  void show(void);
109 
115  void setStatusBarMessage(QString s);
116 
121  QEvent* getCloseEvent(void);
122 
127  bool closeTriggered(void);
128 
133  void shutdown(void);
134 
140  void setMapInitialized(bool mi);
141 
146  void uncheckZoomButtons(void);
147 
148  //------------------------------------------------------------------------//
149  public Q_SLOTS:
150 
155  void actionPropertiesTriggered(void);
156 
161  void actionAboutTriggered(void);
162 
167  void actionExitTriggered(void);
168 
173  void actionLoadMapTriggered(void);
174 
179  void actionNewRobotTriggered(void);
180 
185  void actionNewRfidTriggered(void);
186 
191  void actionNewCo2Triggered(void);
192 
197  void actionNewSoundTriggered(void);
198 
203  void actionNewThermalTriggered(void);
204 
209  void actionAddRobotTriggered(void);
210 
215  void actionZoomInTriggered(void);
216 
221  void actionZoomOutTriggered(void);
222 
227  void actionAdjustedTriggered(void);
228 
233  void actionGridTriggered(void);
234 
235  //------------------------------------------------------------------------//
236  Q_SIGNALS:
237 
243  void setZoomInCursor(bool state);
244 
250  void setZoomOutCursor(bool state);
251 
257  void setAdjustedCursor(bool state);
258 
263  void guiExitEvent(void);
264 
269  void loadRfidPressed(void);
270 
275  void loadThermalPressed(void);
276 
281  void loadCo2Pressed(void);
282 
287  void loadSoundPressed(void);
288 
294  void robotFromFile(stdr_msgs::RobotMsg msg);
295  };
296 }
297 
298 #endif
void loadCo2Pressed(void)
Signal emmited on load CO2 source pressed.
CRobotCreatorConnector robotCreatorConn
< Serves the Qt events of the RobotCreator Widget
void setGridColumnStretch(int cell, int stretch)
Wraps the Qt gridColumnStretch function.
void setMapInitialized(bool mi)
Sets the map_initialized_ private variable.
void actionZoomOutTriggered(void)
Qt slot that is called when the zoom out tool button is pressed.
void robotFromFile(stdr_msgs::RobotMsg msg)
Signal emmited on load robot from file pressed.
void show(void)
Shows the main window.
void setAdjustedCursor(bool state)
Qt signal that is emmited when the Adjust map button is pressed.
bool map_initialized_
True if grid is enabled.
void shutdown(void)
Shuts down the main window.
void actionNewRobotTriggered(void)
Qt slot that is called when the NewRobot tool button is pressed.
void setZoomInCursor(bool state)
Qt signal that is emmited in GuiConnector::actionZoomInTriggered and connects to MapLoader::setCursor...
void raiseMessage(QString title, QString s)
Raises a message box with a specific message.
void addToGrid(QWidget *w, int row, int column)
Adds a widget to the main window Qt grid.
void loadSoundPressed(void)
Signal emmited on load sound source pressed.
bool closeTriggered(void)
Returns the exit triggered status.
void actionAddRobotTriggered(void)
Qt slot that is called when the AddRobot tool button is pressed.
Serves the Qt events of the main GUI window. Inherits from QObject.
QEvent * getCloseEvent(void)
Returns the exit event captured.
void setZoomOutCursor(bool state)
Qt signal that is emmited in GuiConnector::actionZoomOutTriggered and connects to MapLoader::setCurso...
int argc_
< Number of input arguments
void actionGridTriggered(void)
Qt slot that is called when the grid status has changed.
void actionAdjustedTriggered(void)
Qt slot that is called when the adjusted map visualization tool button is pressed.
void loadRfidPressed(void)
Signal emmited on load RFID tag pressed.
void setStatusBarMessage(QString s)
Displays a message in the QMainWindow status bar.
void actionNewSoundTriggered(void)
Qt slot that is called when the NewSound tool button is pressed.
CGuiConnector(int argc, char **argv)
Default contructor.
The main namespace for STDR GUI.
void actionNewCo2Triggered(void)
Qt slot that is called when the NewCO2 tool button is pressed.
void loadThermalPressed(void)
Signal emmited on load thermal source pressed.
bool grid_enabled_
The loader of main GUI QWidget.
void actionLoadMapTriggered(void)
Qt slot that is called when the LoadMap tool button is pressed.
void actionExitTriggered(void)
Qt slot that is called when the Exit action is triggered.
void guiExitEvent(void)
Signal emmited on exit pressed.
Implements the high level functionalities of the robot creator widget. Inherits form QObject...
void actionAboutTriggered(void)
Qt slot that is called when the About tool button is pressed.
void actionNewThermalTriggered(void)
Qt slot that is called when the NewThermal tool button is pressed.
char ** argv_
True if any map is loaded from server.
void actionPropertiesTriggered(void)
Qt slot that is called when the Properties tool button is pressed.
void uncheckZoomButtons(void)
Unchecks the zoom in & out buttons when right click in map is pushed.
void actionZoomInTriggered(void)
Qt slot that is called when the zoom in tool button is pressed.
bool isGridEnabled(void)
Returns the grid enabled state.
void actionNewRfidTriggered(void)
Qt slot that is called when the NewRfid tool button is pressed.


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Mon Jun 10 2019 15:15:16