ConfigWidget_TEST.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-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_CONFIGWIDGET_TEST_HH_
19 #define _GAZEBO_CONFIGWIDGET_TEST_HH_
20 
21 #include <string>
22 
24 
27 {
28  Q_OBJECT
29 
31  public: ConfigWidget_TEST() = default;
32 
34  private slots: void EmptyMsgWidget();
35 
37  private slots: void JointMsgWidget();
38 
40  private slots: void VisualMsgWidget();
41 
43  private slots: void PluginMsgWidget();
44 
46  private slots: void ConfigWidgetVisible();
47 
49  private slots: void CustomConfigWidgetReadOnly();
50 
52  private slots: void ConfigWidgetReadOnly();
53 
56  private slots: void CreatedExternally();
57 
59  private slots: void EnumConfigWidget();
60 
62  private slots: void GetChildWidgetByName();
63 
65  private slots: void ChildUIntSignal();
66 
68  private slots: void ChildIntSignal();
69 
71  private slots: void ChildDoubleSignal();
72 
74  private slots: void ChildBoolSignal();
75 
77  private slots: void ChildStringSignal();
78 
80  private slots: void ChildVector3dSignal();
81 
83  private slots: void ChildColorSignal();
84 
86  private slots: void ChildPoseSignal();
87 
89  private slots: void ChildGeometrySignal();
90 
92  private slots: void ChildEnumSignal();
93 
97  private slots: void OnUIntValueChanged(const QString &_name,
98  const unsigned int _value);
99 
103  private slots: void OnIntValueChanged(const QString &_name,
104  const int _value);
105 
109  private slots: void OnDoubleValueChanged(const QString &_name,
110  const double _value);
111 
115  private slots: void OnBoolValueChanged(const QString &_name,
116  const bool _value);
117 
121  private slots: void OnStringValueChanged(const QString &_name,
122  const std::string &_value);
123 
127  private slots: void OnVector3dValueChanged(const QString &_name,
128  const ignition::math::Vector3d &_value);
129 
133  private slots: void OnColorValueChanged(const QString &_name,
134  const gazebo::common::Color &_value);
135 
139  private slots: void OnPoseValueChanged(const QString &_name,
140  const ignition::math::Pose3d &_value);
141 
147  private slots: void OnGeometryValueChanged(const std::string &_name,
148  const std::string &_value, const ignition::math::Vector3d &_dimensions,
149  const std::string &_uri);
150 
154  private slots: void OnEnumValueChanged(const QString &_name,
155  const QString &_value);
156 
158  private: bool g_uIntSignalReceived = false;
159 
161  private: bool g_intSignalReceived = false;
162 
164  private: bool g_doubleSignalReceived = false;
165 
167  private: bool g_boolSignalReceived = false;
168 
170  private: bool g_stringSignalReceived = false;
171 
173  private: int g_vector3SignalCount = 0;
174 
176  private: bool g_colorSignalReceived = false;
177 
179  private: bool g_poseSignalReceived = false;
180 
182  private: bool g_geometrySignalReceived = false;
183 
185  private: bool g_enumSignalReceived = false;
186 };
187 
188 #endif
ConfigWidget_TEST()=default
Constructor.
Base class for all Gazebo GUI unit tests.
Definition: QTestFixture.hh:37
A test class for the config widget.
Definition: ConfigWidget_TEST.hh:26
Defines a color.
Definition: Color.hh:36