56 Q_PROPERTY(QPointer<ito::AddInBase> plugin READ plugin WRITE setPlugin)
57 Q_PROPERTY(
int indentation READ indentation WRITE setIndentation)
58 Q_PROPERTY(
bool rootIsDecorated READ rootIsDecorated WRITE setRootIsDecorated)
59 Q_PROPERTY(
bool alternatingRowColors READ alternatingRowColors WRITE setAlternatingRowColors)
60 Q_PROPERTY(
bool headerVisible READ isHeaderVisible WRITE setHeaderVisible)
61 Q_PROPERTY(ResizeMode resizeMode READ resizeMode WRITE setResizeMode)
62 Q_PROPERTY(
int splitterPosition READ splitterPosition WRITE setSplitterPosition)
63 Q_PROPERTY(
bool propertiesWithoutValueMarked READ propertiesWithoutValueMarked WRITE setPropertiesWithoutValueMarked)
64 Q_PROPERTY(
bool readonly READ readonly WRITE setReadonly)
65 Q_PROPERTY(
bool showDescriptions READ showDescriptions WRITE setShowDescriptions)
66 Q_PROPERTY(QStringList filteredCategories READ filteredCategories WRITE setFilteredCategories)
67 Q_PROPERTY(
bool immediatelyModifyPluginParamsAfterChange READ immediatelyModifyPluginParamsAfterChange WRITE setImmediatelyModifyPluginParamsAfterChange)
68 Q_PROPERTY(
int numChangedParameters READ numberOfChangedParameters)
69 Q_PROPERTY(
bool collapsed READ collapsed WRITE setCollapsed)
70 Q_PROPERTY(
bool popupSlider READ popupSlider WRITE setPopupSlider);
72 Q_CLASSINFO(
"prop://plugin",
"Actuator or dataIO instance whose parameters are observed and set by this widget.")
73 Q_CLASSINFO(
"prop://indentation",
"Indentation level of child items in the tree.")
74 Q_CLASSINFO(
"prop://rootIsDecorated",
"Slightly changes the visualization of root and child elements.")
75 Q_CLASSINFO(
"prop://alternatingRowColors",
"En- or disables alternating row colors.")
76 Q_CLASSINFO(
"prop://headerVisible",
"Indicates if the header line (property, value) is visible.")
77 Q_CLASSINFO(
"prop://resizeMode",
"Sets the mode how the columns can be resized.")
78 Q_CLASSINFO(
"prop://splitterPosition",
"Width of the first column (not possible if resizeMode is set to Stretch).")
79 Q_CLASSINFO(
"prop://propertiesWithoutValueMarked",
"If True, category values are marked with a dark gray background.")
80 Q_CLASSINFO(
"prop://readonly",
"Indicates if widget is readonly or if values can be changed.")
81 Q_CLASSINFO(
"prop://showDescriptions",
"If True, a text box is visible below the properties to show an information text about the currently set entry.")
82 Q_CLASSINFO(
"prop://filteredCategories",
"If empty, all categories are shown. Else pass a list of category names to only show these categories.")
83 Q_CLASSINFO(
"prop://immediatelyModifyPluginParamsAfterChange",
"If true (default), changed values in the widget will be immediately sent to the connected plugin, calling its 'setParam' method. Else, changed values will be stored in a temporary list and can be sent later (using applyChangedParameters).")
84 Q_CLASSINFO(
"prop://numChangedParameters",
"Number of changed parameters, that have not been applied to the plugin yet.")
85 Q_CLASSINFO(
"prop://collapsed",
"If true, collapse all items in the tree or load new items collapsed, else expand the full tree. (default: false)")
86 Q_CLASSINFO(
"prop://popupSlider",
"If a slider widget (slider + spinbox) is used for corresponding floating point number parameters, the slider is displayed as popup window when hovering the spinbox. If false, the slider is always displayed left to the spinbox.")
112 QPointer<ito::AddInBase> plugin()
const;
113 void setPlugin(QPointer<ito::AddInBase> plugin);
117 int indentation()
const;
118 void setIndentation(
int i);
120 bool collapsed()
const;
121 void setCollapsed(
bool c);
123 bool popupSlider()
const;
124 void setPopupSlider(
bool popup);
126 bool rootIsDecorated()
const;
127 void setRootIsDecorated(
bool show);
129 bool alternatingRowColors()
const;
130 void setAlternatingRowColors(
bool enable);
132 bool readonly()
const;
133 void setReadonly(
bool enable);
135 bool isHeaderVisible()
const;
136 void setHeaderVisible(
bool visible);
138 ResizeMode resizeMode()
const;
139 void setResizeMode(ResizeMode mode);
141 int splitterPosition()
const;
142 void setSplitterPosition(
int position);
144 void setPropertiesWithoutValueMarked(
bool mark);
145 bool propertiesWithoutValueMarked()
const;
147 void setShowDescriptions(
bool show);
148 bool showDescriptions()
const;
150 void setFilteredCategories(
const QStringList &filteredCategories);
151 QStringList filteredCategories()
const;
153 void setImmediatelyModifyPluginParamsAfterChange(
bool immediateChange);
154 bool immediatelyModifyPluginParamsAfterChange()
const;
156 int numberOfChangedParameters()
const;
158 QVector<QSharedPointer<ito::ParamBase> > getAndResetChangedParameters();
168 msgLevelErrorOnly = 1,
169 msgLevelWarningOnly = 2,
170 msgLevelWarningAndError = msgLevelErrorOnly | msgLevelWarningOnly
173 ito::RetVal setPluginParameter(QSharedPointer<ito::ParamBase> param, MessageLevel msgLevel = msgLevelWarningAndError)
const;
174 ito::RetVal setPluginParameters(
const QVector<QSharedPointer<ito::ParamBase> > params, MessageLevel msgLevel = msgLevelWarningAndError)
const;
190 ito::RetVal loadPlugin(QPointer<ito::AddInBase> plugin);
193 void timerEvent(QTimerEvent *event);
196 QScopedPointer<ParamEditorWidgetPrivate> d_ptr;
202 void valueChanged(
QtProperty* prop,
int value);
203 void valueChanged(
QtProperty* prop,
char value);
204 void valueChanged(
QtProperty* prop,
double value);
205 void valueChanged(
QtProperty* prop,
int num,
const char* values);
206 void valueChanged(
QtProperty* prop,
int num,
const int* values);
207 void valueChanged(
QtProperty* prop,
int num,
const double* values);
209 void valueChanged(
QtProperty* prop,
const QByteArray &value);
210 void valueChanged(
QtProperty* prop,
int min,
int max);
211 void valueChanged(
QtProperty* prop,
int left,
int top,
int width,
int height);
215 void parametersChanged(QMap<QString, ito::Param> parameters);