26 #ifndef OBJECTCONTROLLER_H
27 #define OBJECTCONTROLLER_H
33 #include <QtGui/QWidget>
34 #include <QtVariantProperty>
35 #include <QPushButton>
36 #include <QVBoxLayout>
37 #include <QScrollArea>
44 class ObjectControllerPrivate;
186 void setObject ( QObject *
object );
189 QObject *object()
const;
192 void setAutoUpdateProperty(
bool);
196 void setViewMode ( ViewMode viewMode );
200 ViewMode getViewMode()
const;
222 Q_PRIVATE_SLOT ( d_func(),
void saveChange (
QtProperty *, const QVariant & ) )
223 Q_PRIVATE_SLOT ( d_func(),
void valueChanged ( QtProperty *, const QVariant & ) )
246 void addClassProperties ( const QMetaObject *metaObject );
247 void addDynamicProperties ( QObject *edited );
248 void updateClassProperties ( const QMetaObject *metaObject,
bool recursive );
249 void updateDynamicProperties ( const QObject * edited);
250 void saveExpandedState();
251 void restoreExpandedState();
252 void valueChanged ( QtProperty *property, const QVariant value );
254 void saveChange ( QtProperty *property, const QVariant &value );
257 int enumToInt ( const QMetaEnum &metaEnum,
int enumValue ) const;
258 int intToEnum ( const QMetaEnum &metaEnum,
int intValue ) const;
259 int flagToInt ( const QMetaEnum &metaEnum,
int flagValue ) const;
260 int intToFlag ( const QMetaEnum &metaEnum,
int intValue ) const;
261 bool isSubValue (
int value,
int subValue ) const;
262 bool isPowerOf2 (
int value ) const;
272 QMap<QtProperty *,
int> m_classPropertyToIndex;
279 QMap<QtProperty *,
int> m_dynamicPropertyToIndex;
282 QMap<QtProperty *,
bool> m_propertyToExpanded;
285 QList<QtProperty *> m_topLevelProperties;
288 QMap<QtProperty *, QVariant> saveChangeValue;
301 QtVariantProperty * buildQtVariantProperty(QString name, QMetaType::Type type, QVariant value,
bool isReadable,
bool isWritable,
bool isEnumType,
bool isFlagType,
bool isDesignable, QMetaEnum * metaEnum = NULL);
304 QMap<QString, QtProperty*> groupProperties;
Definition: qtpropertybrowser.h:268
Definition: qtvariantproperty.h:84
Definition: ObjectController.h:241
#define CAMITK_API
Definition: CamiTKAPI.h:49
ObjectControllerPrivate * d_ptr
private object controller wich contains pointer about object, browser and more
Definition: ObjectController.h:217
It is like the TREE but with a delimitation to indicate the arborescence of the property type...
Definition: ObjectController.h:175
ViewMode
The property browser can be shown in different view mode.
Definition: ObjectController.h:173
The description of this class will come soon !
Definition: qtvariantproperty.h:64
The description of this class will come soon !
Definition: qtpropertybrowser.h:74
The property browser can be shown like a QListView.
Definition: ObjectController.h:174
The object controller class.
Definition: ObjectController.h:163
ObjectController * q_ptr
Definition: ObjectController.h:242