ModelPluginInspector.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 #ifndef GAZEBO_GUI_MODEL_MODELPLUGININSPECTOR_HH_
18 #define GAZEBO_GUI_MODEL_MODELPLUGININSPECTOR_HH_
19 
20 #include "gazebo/msgs/msgs.hh"
21 
22 #include "gazebo/gui/qt.h"
23 
24 namespace gazebo
25 {
26  namespace gui
27  {
28  class ModelPluginInspectorPrivate;
29 
32 
34  class GZ_GUI_VISIBLE ModelPluginInspector : public QDialog
35  {
36  Q_OBJECT
37 
40  public: explicit ModelPluginInspector(QWidget *_parent = 0);
41 
43  public: ~ModelPluginInspector();
44 
47  public: void Update(ConstPluginPtr _pluginMsg);
48 
51  public: void SetReadOnly(const bool _readOnly);
52 
54  public: void Clear();
55 
58  msgs::Plugin *Data() const;
59 
62  protected: virtual void enterEvent(QEvent *_event);
63 
65  Q_SIGNALS: void Applied();
66 
68  private slots: void OnRemove();
69 
71  private slots: void OnCancel();
72 
74  private slots: void OnOK();
75 
78  private: ModelPluginInspectorPrivate *dataPtr;
79  };
81  }
82 }
83 
84 #endif
Forward declarations for the common classes.
Definition: Animation.hh:26
Inspector for model plugin properties.
Definition: ModelPluginInspector.hh:34
gui
Definition: KeyEventHandler.hh:29