BaseInspectorDialog.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 _GAZEBO_BASE_INSPECTOR_DIALOG_HH_
19 #define _GAZEBO_BASE_INSPECTOR_DIALOG_HH_
20 
21 #include <string>
22 #include <vector>
23 #include "gazebo/gui/qt.h"
24 #include "gazebo/util/system.hh"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
32 
36  {
37  Q_OBJECT
38 
41  public: BaseInspectorDialog(QWidget *_parent);
42 
44  public: ~BaseInspectorDialog();
45 
47  public: void InitColorComboBox();
48 
50  public: void InitTextureComboBox();
51 
54  public: QColor GetColor() const;
55 
58  public: QString GetTexture() const;
59 
62  public: void SetColor(const QColor _color);
63 
66  public: void SetTexture(const QString _texture);
67 
69  public: QComboBox *colorComboBox;
70 
72  public: std::vector<QColor> colorList;
73 
75  public: QComboBox *textureComboBox;
76 
78  public: std::vector<QString> textureList;
79  };
81  }
82 }
83 
84 #endif
std::vector< QString > textureList
Vector of texture options.
Definition: BaseInspectorDialog.hh:78
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:35
QComboBox * colorComboBox
Combo box for selecting the color.
Definition: BaseInspectorDialog.hh:69
QComboBox * textureComboBox
Combo box for selecting the texture.
Definition: BaseInspectorDialog.hh:75
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393
std::vector< QColor > colorList
Vector of color options.
Definition: BaseInspectorDialog.hh:72