49 QIcon applicationIcon;
50 applicationIcon.addFile(QString::fromUtf8((
52 std::string(
"/resources/images/favicon.ico")).c_str()),
56 setWindowIcon (applicationIcon);
59 actionLoadMap->setObjectName(QString::fromUtf8(
"actionLoadMap"));
65 iconLoadMap.addFile(QString::fromUtf8((
67 std::string(
"/resources/images/load_map.png")).c_str()),
74 toolBar->addSeparator();
77 actionAddRobot->setObjectName(QString::fromUtf8(
"actionNewRobot"));
81 iconAddRobot.addFile(QString::fromUtf8((
83 std::string(
"/resources/images/add_robot.png")).c_str()),
91 actionNewRobot->setObjectName(QString::fromUtf8(
"actionNewRobot"));
95 iconNewRobot.addFile(QString::fromUtf8((
97 std::string(
"/resources/images/new_robot.png")).c_str()),
104 toolBar->addSeparator();
107 actionNewRfid->setObjectName(QString::fromUtf8(
"actionNewRfid"));
111 iconNewRfid.addFile(QString::fromUtf8((
113 std::string(
"/resources/images/rfid.png")).c_str()),
124 QIcon iconNewThermal;
125 iconNewThermal.addFile(QString::fromUtf8((
127 std::string(
"/resources/images/thermal.png")).c_str()),
136 actionNewCo2->setObjectName(QString::fromUtf8(
"actionNewCo2"));
140 iconNewCo2.addFile(QString::fromUtf8((
142 std::string(
"/resources/images/co2.png")).c_str()),
150 actionNewSound->setObjectName(QString::fromUtf8(
"actionNewSound"));
154 iconNewSound.addFile(QString::fromUtf8((
156 std::string(
"/resources/images/sound.png")).c_str()),
163 toolBar->addSeparator();
169 QIcon iconProperties;
170 iconProperties.addFile(QString::fromUtf8((
172 std::string(
"/resources/images/properties.png")).c_str()),
179 toolBar->addSeparator();
182 actionGrid->setObjectName(QString::fromUtf8(
"actionGrid"));
185 actionGrid->setIconText(QString(
"Enable grid"));
187 iconGrid.addFile(QString::fromUtf8((
189 std::string(
"/resources/images/grid.png")).c_str()),
197 actionZoomIn->setObjectName(QString::fromUtf8(
"actionZoomIn"));
201 iconZoomIn.addFile(QString::fromUtf8((
203 std::string(
"/resources/images/zoom_in_b.png")).c_str()),
211 actionZoomOut->setObjectName(QString::fromUtf8(
"actionZoomOut"));
215 iconZoomOut.addFile(QString::fromUtf8((
217 std::string(
"/resources/images/zoom_out_b.png")).c_str()),
225 actionAdjusted->setObjectName(QString::fromUtf8(
"actionAdjusted"));
230 iconAdjust.addFile(QString::fromUtf8((
232 std::string(
"/resources/images/adjusted.png")).c_str()),
239 toolBar->setIconSize(QSize(30,30));
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.
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.
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.
ROSCPP_DECL void shutdown()
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)