All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ModelEditWidget.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 #ifndef _EDIT_MODEL_WIDGET_HH_
18 #define _EDIT_MODEL_WIDGET_HH_
19 
20 #include "gazebo/gui/qt.h"
22 #include "gazebo/msgs/msgs.hh"
23 #include "gazebo/util/system.hh"
24 
25 class QTreeWidget;
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
31  class GAZEBO_VISIBLE ModelEditWidget : public QWidget
32  {
33  Q_OBJECT
34  public: ModelEditWidget(QWidget *_parent = 0);
35  public: virtual ~ModelEditWidget();
36 
37  protected: void closeEvent(QCloseEvent *_event);
38  protected: void showEvent(QShowEvent *_event);
39  private: QTreeWidget *treeWidget;
40  };
41 
42  class GAZEBO_VISIBLE ModelPropertyWidget : public QWidget
43  {
44  Q_OBJECT
45  public: ModelPropertyWidget(QWidget *_parent = 0);
46  public: virtual ~ModelPropertyWidget();
47 
48  private: QLineEdit *nameEdit;
49  private: QLineEdit *xEdit, *yEdit, *zEdit;
50  private: QLineEdit *rollEdit, *pitchEdit, *yawEdit;
51  private: QGroupBox *originBox;
52  private: QCheckBox *staticCheck;
53  };
54  }
55 }
56 #endif
57 
Forward declarations for transport.
Definition: ModelEditWidget.hh:31
Definition: ModelEditWidget.hh:42
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48