00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GLUON_CREATOR_PROPERTYWIDGET_H
00021 #define GLUON_CREATOR_PROPERTYWIDGET_H
00022
00023 #include <QtGui/QWidget>
00024 #include <QtGui/QGridLayout>
00025 #include <QtGui/QScrollArea>
00026
00027 #include "gluoncreator_macros.h"
00028
00029 namespace GluonCore
00030 {
00031 class GluonObject;
00032 }
00033
00034 namespace GluonEngine
00035 {
00036 class Component;
00037 }
00038
00039 namespace GluonCreator
00040 {
00041 class GLUONCREATOR_EXPORT PropertyWidget : public QScrollArea
00042 {
00043 Q_OBJECT;
00044
00045 public:
00046 PropertyWidget( QWidget* parent = 0 );
00047 ~PropertyWidget();
00048
00049 GluonCore::GluonObject* object() const;
00050 void clear();
00051
00052 void setObject( GluonCore::GluonObject* object );
00053 void appendObject( GluonCore::GluonObject* obj, bool useColor = false );
00054
00055 Q_SIGNALS:
00056 void propertyChanged( QObject* object, const QString& property, const QVariant& oldValue, const QVariant& newValue );
00057
00058 private:
00059 class PropertyWidgetPrivate;
00060 PropertyWidgetPrivate* const d;
00061 };
00062 }
00063
00064 #endif // GLUON_CREATOR_PROPERTYWIDGET_H