18 #ifndef _CONFIG_WIDGET_HH_
19 #define _CONFIG_WIDGET_HH_
35 class FieldDescriptor;
84 private slots:
void GeometryChanged(
const QString _text);
97 private slots:
void Toggle();
114 public:
void Load(
const google::protobuf::Message *_msg);
118 public: google::protobuf::Message *GetMsg();
123 public:
void SetWidgetVisible(
const std::string &_name,
bool _visible);
128 public:
bool GetWidgetVisible(
const std::string &_name)
const;
133 public:
void SetWidgetReadOnly(
const std::string &_name,
bool _readOnly);
138 public:
bool GetWidgetReadOnly(
const std::string &_name)
const;
142 public:
void UpdateFromMsg(
const google::protobuf::Message *_msg);
147 public:
void SetIntWidgetValue(
const std::string &_name,
int _value);
152 public:
void SetUIntWidgetValue(
const std::string &_name,
unsigned int
158 public:
void SetDoubleWidgetValue(
const std::string &_name,
164 public:
void SetBoolWidgetValue(
const std::string &_name,
bool _value);
169 public:
void SetStringWidgetValue(
const std::string &_name,
170 const std::string &_value);
175 public:
void SetVector3WidgetValue(
const std::string &_name,
181 public:
void SetColorWidgetValue(
const std::string &_name,
187 public:
void SetPoseWidgetValue(
const std::string &_name,
194 public:
void SetGeometryWidgetValue(
const std::string &_name,
195 const std::string &_value,
const math::Vector3 &_dimensions);
200 public:
int GetIntWidgetValue(
const std::string &_name)
const;
205 public:
unsigned int GetUIntWidgetValue(
const std::string &_name)
const;
210 public:
double GetDoubleWidgetValue(
const std::string &_name)
const;
215 public:
bool GetBoolWidgetValue(
const std::string &_name)
const;
220 public: std::string GetStringWidgetValue(
const std::string &_name)
const;
225 public:
math::Vector3 GetVector3WidgetValue(
const std::string &_name)
231 public:
common::Color GetColorWidgetValue(
const std::string &_name)
const;
236 public:
math::Pose GetPoseWidgetValue(
const std::string &_name)
const;
242 public: std::string GetGeometryWidgetValue(
const std::string &_name,
251 private: QWidget *Parse(google::protobuf::Message *_msg,
252 const std::string &_name =
"");
258 const google::protobuf::Message *_msg);
263 private:
void UpdateMsg(google::protobuf::Message *_msg,
264 const std::string &_name =
"");
269 private:
void UpdateVector3Msg(google::protobuf::Message *_msg,
321 unsigned int _value);
338 const std::string &_value);
368 const std::string &_value,
const math::Vector3 &_dimensions);
424 private slots:
void OnItemSelection(QTreeWidgetItem *_item,
int _column);
427 private: std::map <std::string, ConfigChildWidget *> configWidgets;
430 private: google::protobuf::Message *configMsg;
QWidget * geomLengthLabel
A label for the length widget.
Definition: ConfigWidget.hh:80
GroupWidget * groupWidget
Pointer to group widget.
Definition: ConfigWidget.hh:63
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
QWidget * childWidget
Child widget that can be collapsed or expanded.
Definition: ConfigWidget.hh:94
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
ConfigChildWidget()
Constructor;.
Definition: ConfigWidget.hh:56
QWidget * geomLengthSpinBox
A spin box for configuring the length of the geometry.
Definition: ConfigWidget.hh:77
std::vector< QWidget * > widgets
List of child widgets.
Definition: ConfigWidget.hh:59
#define NULL
Definition: CommonTypes.hh:30
Defines a color.
Definition: Color.hh:39
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
QStackedWidget * geomDimensionWidget
A stacked widget containing widgets for configuring geometry dimensions.
Definition: ConfigWidget.hh:74