Actions.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #ifndef _GUI_ACTIONS_HH_
19 #define _GUI_ACTIONS_HH_
20 
21 #include <string>
22 #include "gazebo/gui/qt.h"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
29  extern QAction *g_newAct;
30  extern QAction *g_openAct;
31  extern QAction *g_importAct;
32  extern QAction *g_saveAct;
33  extern QAction *g_saveAsAct;
34  extern QAction *g_saveCfgAct;
35  extern QAction *g_cloneAct;
36  extern QAction *g_aboutAct;
37  extern QAction *g_quitAct;
38 
39  extern QAction *g_dataLoggerAct;
40 
41  extern QAction *g_resetModelsAct;
42  extern QAction *g_resetWorldAct;
43  extern QAction *g_editBuildingAct;
44  extern QAction *g_editTerrainAct;
45  extern QAction *g_editModelAct;
46 
47  extern QAction *g_playAct;
48  extern QAction *g_pauseAct;
49  extern QAction *g_stepAct;
50 
51  extern QAction *g_boxCreateAct;
52  extern QAction *g_sphereCreateAct;
53  extern QAction *g_cylinderCreateAct;
54  extern QAction *g_meshCreateAct;
55  extern QAction *g_pointLghtCreateAct;
56  extern QAction *g_spotLghtCreateAct;
57  extern QAction *g_dirLghtCreateAct;
58 
59  extern QAction *g_screenshotAct;
60 
61  extern QAction *g_showCollisionsAct;
62  extern QAction *g_showGridAct;
63  extern QAction *g_showContactsAct;
64  extern QAction *g_showJointsAct;
65  extern QAction *g_showCOMAct;
66  extern QAction *g_transparentAct;
67 
68  extern QAction *g_resetAct;
69  extern QAction *g_fullScreenAct;
70  extern QAction *g_fpsAct;
71  extern QAction *g_orbitAct;
72 
73  extern QAction *g_arrowAct;
74  extern QAction *g_translateAct;
75  extern QAction *g_rotateAct;
76  extern QAction *g_scaleAct;
77 
78  extern QAction *g_topicVisAct;
79 
80  extern QAction *g_diagnosticsAct;
81 
82  extern QAction *g_viewWireframeAct;
83 
84  extern QAction *g_viewOculusAct;
85 
86  extern QAction *g_copyAct;
87  extern QAction *g_pasteAct;
88 
89  extern QWidgetAction *g_alignAct;
90  extern QAction *g_alignButtonAct;
91  extern QAction *g_snapAct;
92 
95  class GAZEBO_VISIBLE DeleteAction : public QAction
96  {
97  Q_OBJECT
101  public: DeleteAction(const QString &_text, QObject *_parent)
102  : QAction(_text, _parent) {}
103 
106  public: void Signal(const std::string &_modelName)
107  { emit DeleteSignal(_modelName); }
108 
111  Q_SIGNALS: void DeleteSignal(const std::string &_modelName);
112  };
113 
115  extern DeleteAction *g_deleteAct;
116  }
117 }
118 #endif
QAction * g_showCOMAct
QAction * g_pauseAct
QAction * g_showContactsAct
QAction * g_sphereCreateAct
void Signal(const std::string &_modelName)
Emit the delete signal.
Definition: Actions.hh:106
QAction * g_viewOculusAct
QAction * g_meshCreateAct
QAction * g_cloneAct
QAction * g_orbitAct
QAction * g_resetAct
QAction * g_saveAct
QAction * g_saveCfgAct
QAction * g_showCollisionsAct
QAction * g_copyAct
QAction * g_showJointsAct
QAction * g_arrowAct
QAction * g_editModelAct
QAction * g_editTerrainAct
QAction * g_viewWireframeAct
QAction * g_alignButtonAct
QAction * g_importAct
Custom delete action.
Definition: Actions.hh:95
QAction * g_quitAct
QAction * g_editBuildingAct
QAction * g_screenshotAct
QAction * g_openAct
QAction * g_newAct
QAction * g_fullScreenAct
QAction * g_snapAct
QAction * g_playAct
QAction * g_pointLghtCreateAct
QAction * g_scaleAct
QAction * g_pasteAct
QAction * g_cylinderCreateAct
QAction * g_topicVisAct
QAction * g_dataLoggerAct
QAction * g_diagnosticsAct
QAction * g_rotateAct
QAction * g_dirLghtCreateAct
QAction * g_fpsAct
QAction * g_resetModelsAct
QAction * g_transparentAct
DeleteAction * g_deleteAct
Action used to delete a model.
QAction * g_aboutAct
QWidgetAction * g_alignAct
QAction * g_showGridAct
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
QAction * g_resetWorldAct
QAction * g_boxCreateAct
QAction * g_translateAct
DeleteAction(const QString &_text, QObject *_parent)
Constructor.
Definition: Actions.hh:101
QAction * g_stepAct
QAction * g_spotLghtCreateAct
QAction * g_saveAsAct