ModelEditorPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 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 _GAZEBO_MODEL_EDITOR_PRIVATE_HH_
19 #define _GAZEBO_MODEL_EDITOR_PRIVATE_HH_
20 
21 #include <string>
22 
23 #include "gazebo/gui/qt.h"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
29  class SchematicViewWidget;
30  class ModelEditorPalette;
31 
36  {
38  public: QMenuBar *menuBar;
39 
42 
44  public: bool active;
45 
47  public: QAction *jointTypeAct;
48 
51  public: QAction *jointAct;
52 
54  public: QAction *jointSeparatorAct;
55 
57  public: QToolButton *jointButton;
58 
60  public: QSignalMapper *signalMapper;
61 
63  public: std::string selectedJointType;
64 
66  public: QAction *saveAct;
67 
69  public: QAction *saveAsAct;
70 
72  public: QAction *newAct;
73 
75  public: QAction *exitAct;
76 
78  public: QAction *showJointsAct;
79 
81  public: QAction *schematicViewAct;
82 
85 
87  public: QAction *showToolbarsAct;
88 
90  public: QAction *fullScreenAct;
91 
93  public: QAction *cameraOrthoAct;
94 
96  public: QAction *cameraPerspectiveAct;
97 
99  public: bool mainWindowPaused;
100  };
101  }
102 }
103 #endif
QAction * jointSeparatorAct
A separator for the joint icon.
Definition: ModelEditorPrivate.hh:54
bool active
True if model editor is active.
Definition: ModelEditorPrivate.hh:44
A palette of model items which can be added to the editor.
Definition: ModelEditorPalette.hh:48
bool mainWindowPaused
Save the main window paused state to use when returning.
Definition: ModelEditorPrivate.hh:99
std::string selectedJointType
Previously selected joint type.
Definition: ModelEditorPrivate.hh:63
QMenuBar * menuBar
Menubar containing actions related to the editor.
Definition: ModelEditorPrivate.hh:38
SchematicViewWidget * svWidget
Pointer to the schematic view widget.
Definition: ModelEditorPrivate.hh:84
QAction * showToolbarsAct
Show toolbars action cloned from main window.
Definition: ModelEditorPrivate.hh:87
QAction * fullScreenAct
Fullscreen action cloned from main window.
Definition: ModelEditorPrivate.hh:90
ModelEditorPalette * modelPalette
Contains all the model editor tools.
Definition: ModelEditorPrivate.hh:41
QAction * saveAct
Action to save model.
Definition: ModelEditorPrivate.hh:66
QToolButton * jointButton
Qt tool button associated with the joint action.
Definition: ModelEditorPrivate.hh:57
QAction * schematicViewAct
Action to show/hide the schematic view.
Definition: ModelEditorPrivate.hh:81
QAction * cameraPerspectiveAct
Camera perspective view action cloned from main window.
Definition: ModelEditorPrivate.hh:96
QAction * saveAsAct
Action to save model as.
Definition: ModelEditorPrivate.hh:69
QAction * jointAct
Qt action for adding a previously selected joint in the model editor.
Definition: ModelEditorPrivate.hh:51
Definition: ModelEditorPrivate.hh:35
QSignalMapper * signalMapper
Qt signal mapper for mapping add jointsignals.
Definition: ModelEditorPrivate.hh:60
QAction * newAct
Action to start a new model.
Definition: ModelEditorPrivate.hh:72
QAction * jointTypeAct
Qt action for selecting and adding a joint in the model editor.
Definition: ModelEditorPrivate.hh:47
QAction * exitAct
Action to exit the editor.
Definition: ModelEditorPrivate.hh:75
QAction * cameraOrthoAct
Camera orthographic view action cloned from main window.
Definition: ModelEditorPrivate.hh:93
The parent widget of the CML editor.
Definition: SchematicViewWidget.hh:38
QAction * showJointsAct
Action to show joints.
Definition: ModelEditorPrivate.hh:78