LinkInspector.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 _LINK_INSPECTOR_HH_
19 #define _LINK_INSPECTOR_HH_
20 
21 #include <string>
22 
23 #include "gazebo/gui/qt.h"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
29  class LinkConfig;
30  class VisualConfig;
31  class CollisionConfig;
32 
33  class LinkInspector : public QDialog
34  {
35  Q_OBJECT
36 
39  public: LinkInspector(QWidget *_parent = 0);
40 
42  public: ~LinkInspector();
43 
46  public: void SetName(const std::string &_name);
47 
50  public: std::string GetName() const;
51 
54  public: LinkConfig *GetLinkConfig() const;
55 
58  public: VisualConfig *GetVisualConfig() const;
59 
62  public: CollisionConfig *GetCollisionConfig() const;
63 
66  protected: virtual void enterEvent(QEvent *_event);
67 
70  // public: void SetName(const std::string &_name);
71 
73  Q_SIGNALS: void Applied();
74 
77  Q_SIGNALS: void Accepted();
78 
80  private slots: void OnCancel();
81 
83  private slots: void OnApply();
84 
86  private slots: void OnOK();
87 
89  private: QTabWidget *tabWidget;
90 
92  private: QLabel* linkNameLabel;
93 
95  private: LinkConfig *linkConfig;
96 
98  private: VisualConfig *visualConfig;
99 
101  private: CollisionConfig *collisionConfig;
102  };
104  }
105 }
106 
107 #endif
Definition: LinkInspector.hh:33
VisualConfig * GetVisualConfig() const
Get visual configurations of the link.
LinkConfig * GetLinkConfig() const
Get configurations of the link.
void Applied()
Set the item name.
LinkInspector(QWidget *_parent=0)
Constructor.
virtual void enterEvent(QEvent *_event)
Qt event emiited when the mouse enters this widget.
void SetName(const std::string &_name)
Set the name of the link.
A tab for configuring visual properties of a link.
Definition: VisualConfig.hh:63
std::string GetName() const
Get the name of the link.
void Accepted()
Qt signal emitted to indicate that changes should be applied and the inspector closed.
CollisionConfig * GetCollisionConfig() const
Get collision configurations of the link.
A tab for configuring properties of a link.
Definition: LinkConfig.hh:39
~LinkInspector()
Destructor.
A tab for configuring collision properties of a link.
Definition: CollisionConfig.hh:63