stdr_gui_loader.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_LOADER
23 #define STDR_GUI_LOADER
24 
25 #include "ui_simulator.h"
26 #include "stdr_gui/stdr_tools.h"
27 
32 namespace stdr_gui
33 {
38  class CGuiLoader : public Ui_MainWindow, public QMainWindow
39  {
40  //------------------------------------------------------------------------//
41  private:
43  int argc_;
45  char** argv_;
46 
50  QCloseEvent *event_;
51 
52  //------------------------------------------------------------------------//
53  public:
54 
56  QAction *actionProperties;
58  QAction *actionGrid;
60  QAction *actionNewRobot;
62  QAction *actionAddRobot;
64  QAction *actionNewRfid;
66  QAction *actionNewThermal;
68  QAction *actionNewCo2;
70  QAction *actionNewSound;
72  QAction *actionLoadMap;
74  QAction *actionZoomIn;
76  QAction *actionZoomOut;
78  QAction *actionAdjusted;
79 
86  CGuiLoader(int argc,char **argv);
87 
93  void closeEvent(QCloseEvent *event);
94 
99  void addToolbarIcons(void);
100 
105  QEvent* getCloseEvent(void);
106 
111  bool closeTriggered(void);
112 
117  void shutdown(void);
118 
119  };
120 
121 }
122 
123 #endif
QAction * actionZoomOut
The action of map adjusted button.
QAction * actionNewRobot
The action of adding a new robot button.
QEvent * getCloseEvent(void)
Returns the exit event.
void shutdown(void)
Shuts down the main window.
QAction * actionAddRobot
The action of new RFID tag button.
char ** argv_
True if the exit signal was emmited.
QAction * actionZoomIn
The action of zooming out button.
QAction * actionGrid
The action of creating new robot button.
CGuiLoader(int argc, char **argv)
Default contructor.
void closeEvent(QCloseEvent *event)
Overloading of closeEvent function from QMainWindow.
QAction * actionNewSound
The action of loading a map button.
QAction * actionLoadMap
The action of zooming in button.
The main namespace for STDR GUI.
int argc_
< The number of input arguments
QAction * actionProperties
< The action of properties button
QAction * actionNewRfid
The action of new thermal source button.
QAction * actionNewThermal
The action of new CO2 source button.
QCloseEvent * event_
void addToolbarIcons(void)
Adds the tool buttons in the main window toolbar.
QAction * actionNewCo2
The action of new sound source button.
bool closeTriggered(void)
Returns true if a close event was triggered.
bool close_signal_
The exit event (when occurs)


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