All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Actions.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2014 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_aboutAct;
36  extern QAction *g_quitAct;
37 
38  extern QAction *g_dataLoggerAct;
39 
40  extern QAction *g_newModelAct;
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 
91  class GAZEBO_VISIBLE DeleteAction : public QAction
92  {
93  Q_OBJECT
97  public: DeleteAction(const QString &_text, QObject *_parent)
98  : QAction(_text, _parent) {}
99 
102  public: void Signal(const std::string &_modelName)
103  { emit DeleteSignal(_modelName); }
104 
107  Q_SIGNALS: void DeleteSignal(const std::string &_modelName);
108  };
109 
111  extern DeleteAction *g_deleteAct;
112  }
113 }
114 #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:102
QAction * g_viewOculusAct
QAction * g_meshCreateAct
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_newModelAct
QAction * g_importAct
Custom delete action.
Definition: Actions.hh:91
QAction * g_quitAct
QAction * g_editBuildingAct
QAction * g_screenshotAct
QAction * g_openAct
QAction * g_newAct
QAction * g_fullScreenAct
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
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:97
QAction * g_stepAct
QAction * g_spotLghtCreateAct
QAction * g_saveAsAct