Eneboo - Documentación para desarrolladores
|
00001 #ifndef PROPERTYOBJECT_H 00002 #define PROPERTYOBJECT_H 00003 00004 #include <qobject.h> 00005 #include <qwidgetlist.h> 00006 #include <qcursor.h> 00007 00008 class PropertyObject : public QObject 00009 { 00010 public: 00011 QMetaObject *metaObject() const { return (QMetaObject*)mobj; } 00012 const char *className() const { return "PropertyObject"; } 00013 QObject* qObject() { return (QObject*)this; } 00014 private: 00015 static QMetaObject *metaObj; 00016 00017 public: 00018 PropertyObject( const QWidgetList &objs ); 00019 00020 bool setProperty( const char *name, const QVariant& value ); 00021 QVariant property( const char *name ) const; 00022 00023 void mdPropertyChanged( const QString &property, bool changed ); 00024 bool mdIsPropertyChanged( const QString &property ); 00025 void mdSetPropertyComment( const QString &property, const QString &comment ); 00026 QString mdPropertyComment( const QString &property ); 00027 void mdSetFakeProperty( const QString &property, const QVariant &value ); 00028 QVariant mdFakeProperty( const QString &property ); 00029 void mdSetCursor( const QCursor &c ); 00030 QCursor mdCursor(); 00031 void mdSetPixmapKey( int pixmap, const QString &arg ); 00032 QString mdPixmapKey( int pixmap ); 00033 void mdSetExportMacro( const QString ¯o ); 00034 QString mdExportMacro(); 00035 QWidgetList widgetList() const { return objects; } 00036 00037 private: 00038 QWidgetList objects; 00039 const QMetaObject *mobj; 00040 00041 }; 00042 00043 #endif