31 #warning "DataWidget.h" 34 #include <mars/main_gui/PropertyDialog.h> 35 #include <configmaps/ConfigData.h> 41 #include <QCloseEvent> 50 namespace config_map_gui {
58 DataWidget(
void* backwardCFG = 0, QWidget *parent = 0,
bool onlyCompactView =
false,
bool allowAdd =
true);
61 virtual void valueChanged(QtProperty *property,
const QVariant &value);
64 void setConfigMap(
const std::string &name,
66 void setEditPattern(
const std::vector<std::string> &pattern);
67 void setColorPattern(
const std::vector<std::string> &pattern);
68 void setFilePattern(
const std::vector<std::string> &pattern);
69 void setCheckablePattern(
const std::vector<std::string> &pattern);
70 void setDropDownPattern(
const std::vector<std::string> &pattern,
71 const std::vector<std::vector<std::string> > &values);
72 void setFilterPattern(
const std::vector<std::string> &pattern);
73 void setBlackFilterPattern(
const std::vector<std::string> &pattern);
77 void updateConfigMap(
const std::string &name,
79 void updateConfigMapI(
const std::string &name,
81 void updateConfigAtomI(
const std::string &name,
83 void updateConfigVectorI(
const std::string &name,
87 void setGroupChecked(
const std::string &name,
bool value);
91 void valueChanged(std::string, std::string);
92 void checkChanged(std::string,
bool);
93 void colorChanged(std::string,
float r,
float g,
float b,
float a);
98 std::vector<std::string> editPattern, colorPattern, filePattern, dropDownPattern, checkablePattern,
filterPattern, blackFilterPattern;
100 map<QtVariantProperty*, configmaps::ConfigAtom*>
dataMap;
101 map<QtVariantProperty*, configmaps::ConfigMap*> addMap,
colorMap;
102 map<QtVariantProperty*, configmaps::ConfigVector*>
addVector;
112 int checkInPattern(
const std::string &v,
113 const std::vector<std::string> &pattern);
120 void timerEvent(QTimerEvent* event);
121 virtual void accept();
122 virtual void reject();
130 #endif // DATA_WIDGET_H
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Introduced for Windows compatibility.
The PropertyDialog provides the QtProperty functionality.