You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
15 years ago
|
#ifndef PROPERTYOBJECT_H
|
||
|
#define PROPERTYOBJECT_H
|
||
|
|
||
15 years ago
|
#include <tqobject.h>
|
||
|
#include <tqwidgetlist.h>
|
||
|
#include <tqcursor.h>
|
||
15 years ago
|
|
||
14 years ago
|
class PropertyObject : public TQObject
|
||
15 years ago
|
{
|
||
|
public:
|
||
13 years ago
|
TQMetaObject *metaObject() const { return (TQMetaObject*)mobj; }
|
||
15 years ago
|
const char *className() const { return "PropertyObject"; }
|
||
15 years ago
|
TQObject* qObject() { return (TQObject*)this; }
|
||
15 years ago
|
private:
|
||
15 years ago
|
static TQMetaObject *metaObj;
|
||
15 years ago
|
|
||
|
public:
|
||
15 years ago
|
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; }
|
||
15 years ago
|
|
||
|
private:
|
||
15 years ago
|
TQWidgetList objects;
|
||
|
const TQMetaObject *mobj;
|
||
15 years ago
|
|
||
|
};
|
||
|
|
||
|
#endif
|