ModelEditorPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 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 <vector>
22 #include <string>
23 
25 #include "gazebo/gui/qt.h"
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
31  class SchematicViewWidget;
32  class ModelTreeWidget;
33  class ModelEditorPalette;
34 
39  {
41  public: QMenuBar *menuBar;
42 
45 
48 
50  public: bool active;
51 
54  public: QAction *jointAct;
55 
57  public: QSignalMapper *signalMapper;
58 
60  public: std::string selectedJointType;
61 
63  public: QAction *saveAct;
64 
66  public: QAction *saveAsAct;
67 
69  public: QAction *newAct;
70 
72  public: QAction *exitAct;
73 
75  public: QAction *showJointsAct;
76 
78  public: QAction *schematicViewAct;
79 
82 
84  public: QWidget *insertModel;
85 
87  public: QAction *showToolbarsAct;
88 
90  public: QAction *fullScreenAct;
91 
93  public: QAction *cameraOrthoAct;
94 
96  public: QAction *cameraPerspectiveAct;
97 
99  public: std::vector<event::ConnectionPtr> connections;
100 
104  };
105  }
106 }
107 #endif
EditorMaterialSwitcherPtr materialSwitcher
Model editor material switcher used to switch the non-editable models in the background to use a diff...
Definition: ModelEditorPrivate.hh:103
bool active
True if model editor is active.
Definition: ModelEditorPrivate.hh:50
A palette of model items which can be added to the editor.
Definition: ModelEditorPalette.hh:46
QWidget * insertModel
Pointer to the Insert model widget in main window.
Definition: ModelEditorPrivate.hh:84
A widget that displays model properties.
Definition: ModelTreeWidget.hh:41
std::string selectedJointType
Previously selected joint type.
Definition: ModelEditorPrivate.hh:60
QMenuBar * menuBar
Menubar containing actions related to the editor.
Definition: ModelEditorPrivate.hh:41
SchematicViewWidget * svWidget
Pointer to the schematic view widget.
Definition: ModelEditorPrivate.hh:81
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
std::shared_ptr< EditorMaterialSwitcher > EditorMaterialSwitcherPtr
Definition: ModelEditorTypes.hh:32
ModelEditorPalette * modelPalette
A palette of entities that can be inserted into the editor.
Definition: ModelEditorPrivate.hh:44
std::vector< event::ConnectionPtr > connections
A list of event connections.
Definition: ModelEditorPrivate.hh:99
QAction * saveAct
Action to save model.
Definition: ModelEditorPrivate.hh:63
QAction * schematicViewAct
Action to show/hide the schematic view.
Definition: ModelEditorPrivate.hh:78
QAction * cameraPerspectiveAct
Camera perspective view action cloned from main window.
Definition: ModelEditorPrivate.hh:96
QAction * saveAsAct
Action to save model as.
Definition: ModelEditorPrivate.hh:66
QAction * jointAct
Qt action for adding a previously selected joint in the model editor.
Definition: ModelEditorPrivate.hh:54
Definition: ModelEditorPrivate.hh:38
QSignalMapper * signalMapper
Qt signal mapper for mapping add jointsignals.
Definition: ModelEditorPrivate.hh:57
QAction * newAct
Action to start a new model.
Definition: ModelEditorPrivate.hh:69
ModelTreeWidget * modelTree
A display of model settings and its child entities.
Definition: ModelEditorPrivate.hh:47
QAction * exitAct
Action to exit the editor.
Definition: ModelEditorPrivate.hh:72
QAction * cameraOrthoAct
Camera orthographic view action cloned from main window.
Definition: ModelEditorPrivate.hh:93
The parent widget of the CML editor.
Definition: SchematicViewWidget.hh:41
QAction * showJointsAct
Action to show joints.
Definition: ModelEditorPrivate.hh:75