summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/propertyobject.h
blob: 2590399a1928b646bbaadee34b94876f7e37d8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef PROPERTYOBJECT_H
#define PROPERTYOBJECT_H

#include <tqobject.h>
#include <tqwidgetlist.h>
#include <tqcursor.h>

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 &macro );
    TQString mdExportMacro();
    TQWidgetList widgetList() const { return objects; }

private:
    TQWidgetList objects;
    const TQMetaObject *mobj;

};

#endif