From 722ce1efbac31c61b1d4b13f7e075c9f311e3e73 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sun, 2 Mar 2014 20:05:33 +0100 Subject: Finish renaming tdevelop components --- tdevdesigner/designer/propertyobject.h | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 tdevdesigner/designer/propertyobject.h (limited to 'tdevdesigner/designer/propertyobject.h') diff --git a/tdevdesigner/designer/propertyobject.h b/tdevdesigner/designer/propertyobject.h new file mode 100644 index 00000000..2590399a --- /dev/null +++ b/tdevdesigner/designer/propertyobject.h @@ -0,0 +1,43 @@ +#ifndef PROPERTYOBJECT_H +#define PROPERTYOBJECT_H + +#include +#include +#include + +class PropertyObject : public TQObject +{ +public: + TQMetaObject *metaObject() const { return (TQMetaObject*)mobj; } + const char *className() const { return "PropertyObject"; } + TQObject* qObject() { return (TQObject*)this; } +private: + static TQMetaObject *metaObj; + +public: + PropertyObject( const TQWidgetList &objs ); + + bool setProperty( const char *name, const TQVariant& value ); + TQVariant property( const char *name ) const; + + void mdPropertyChanged( const TQString &property, bool changed ); + bool mdIsPropertyChanged( const TQString &property ); + void mdSetPropertyComment( const TQString &property, const TQString &comment ); + TQString mdPropertyComment( const TQString &property ); + void mdSetFakeProperty( const TQString &property, const TQVariant &value ); + TQVariant mdFakeProperty( const TQString &property ); + void mdSetCursor( const TQCursor &c ); + TQCursor mdCursor(); + void mdSetPixmapKey( int pixmap, const TQString &arg ); + TQString mdPixmapKey( int pixmap ); + void mdSetExportMacro( const TQString ¯o ); + TQString mdExportMacro(); + TQWidgetList widgetList() const { return objects; } + +private: + TQWidgetList objects; + const TQMetaObject *mobj; + +}; + +#endif -- cgit v1.2.1