26 #ifndef OBJECTCONTROLLER_H 27 #define OBJECTCONTROLLER_H 31 #include <QtVariantProperty> 35 #include <QPushButton> 36 #include <QVBoxLayout> 37 #include <QScrollArea> 185 void setObject ( QObject *
object );
188 QObject *object()
const;
191 void setAutoUpdateProperty(
bool);
195 void setViewMode (
ViewMode viewMode );
221 Q_PRIVATE_SLOT ( d_func(),
void saveChange (
QtProperty *, const QVariant & ) )
222 Q_PRIVATE_SLOT ( d_func(),
void valueChanged ( QtProperty *, const QVariant & ) )
245 void addClassProperties ( const QMetaObject *metaObject );
246 void addDynamicProperties ( QObject *edited );
247 void updateClassProperties ( const QMetaObject *metaObject,
bool recursive );
248 void updateDynamicProperties ( const QObject * edited);
249 void saveExpandedState();
250 void restoreExpandedState();
251 void valueChanged ( QtProperty *property, const QVariant value );
253 void saveChange ( QtProperty *property, const QVariant &value );
256 int enumToInt ( const QMetaEnum &metaEnum,
int enumValue ) const;
257 int intToEnum ( const QMetaEnum &metaEnum,
int intValue ) const;
258 int flagToInt ( const QMetaEnum &metaEnum,
int flagValue ) const;
259 int intToFlag ( const QMetaEnum &metaEnum,
int intValue ) const;
260 bool isSubValue (
int value,
int subValue ) const;
261 bool isPowerOf2 (
int value ) const;
271 QMap<QtProperty *,
int> m_classPropertyToIndex;
278 QMap<QtProperty *,
int> m_dynamicPropertyToIndex;
281 QMap<QtProperty *,
bool> m_propertyToExpanded;
284 QList<QtProperty *> m_topLevelProperties;
287 QMap<QtProperty *, QVariant> saveChangeValue;
300 QtVariantProperty * buildQtVariantProperty(QString name, QMetaType::Type type, QVariant value,
bool isReadable,
bool isWritable,
bool isEnumType,
bool isFlagType,
bool isDesignable, QMetaEnum * metaEnum = NULL);
303 QMap<QString, QtProperty*> groupProperties;
QtAbstractPropertyBrowser provides a base class for implementing property browsers.
Definition: qtpropertybrowser.h:256
The QtVariantPropertyManager class provides and manages QVariant based properties.
Definition: qtvariantproperty.h:83
Definition: ObjectController.h:240
Definition: Action.cpp:40
Definition: objectcontroller.cpp:50
The property browser can be shown like a QListView.
Definition: ObjectController.h:173
#define CAMITK_API
Definition: CamiTKAPI.h:49
It is like the TREE but with a delimitation to indicate the arborescence of the property type...
Definition: ObjectController.h:174
ObjectControllerPrivate * d_ptr
private object controller wich contains pointer about object, browser and more
Definition: ObjectController.h:216
The description of this class will come soon !
Definition: qtvariantproperty.h:64
The description of this class will come soon !
Definition: qtpropertybrowser.h:74
ViewMode
The property browser can be shown in different view mode.
Definition: ObjectController.h:172
The object controller class.
Definition: ObjectController.h:162
ObjectController * q_ptr
Definition: ObjectController.h:241