ModelPluginInspector.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_PLUGIN_INSPECTOR_HH_
19 #define _GAZEBO_MODEL_PLUGIN_INSPECTOR_HH_
20 
21 #include "gazebo/msgs/msgs.hh"
22 
23 #include "gazebo/gui/qt.h"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
29  class ModelPluginInspectorPrivate;
30 
33 
35  class GZ_GUI_VISIBLE ModelPluginInspector : public QDialog
36  {
37  Q_OBJECT
38 
41  public: ModelPluginInspector(QWidget *_parent = 0);
42 
44  public: ~ModelPluginInspector();
45 
48  public: void Update(ConstPluginPtr _pluginMsg);
49 
52  public: void SetReadOnly(const bool _readOnly);
53 
55  public: void Clear();
56 
59  msgs::Plugin *Data() const;
60 
63  protected: virtual void enterEvent(QEvent *_event);
64 
66  Q_SIGNALS: void Applied();
67 
69  private slots: void OnRemove();
70 
72  private slots: void OnCancel();
73 
75  private slots: void OnOK();
76 
79  private: ModelPluginInspectorPrivate *dataPtr;
80  };
82  }
83 }
84 
85 #endif
Inspector for model plugin properties.
Definition: ModelPluginInspector.hh:35