kexi
widgetwithsubpropertiesinterface.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef WIDGETWITHSUBPROPERTIESINTERFACE_H
00021 #define WIDGETWITHSUBPROPERTIESINTERFACE_H
00022
00023 #include <qcstring.h>
00024 #include <qvaluelist.h>
00025 #include <qwidget.h>
00026 #include <qguardedptr.h>
00027 #include <qvariant.h>
00028
00029 namespace KFormDesigner {
00030
00032
00036 class KFORMEDITOR_EXPORT WidgetWithSubpropertiesInterface
00037 {
00038 public:
00039 WidgetWithSubpropertiesInterface();
00040 virtual ~WidgetWithSubpropertiesInterface();
00041
00044 void setSubwidget(QWidget *widget);
00045
00047 QWidget* subwidget() const;
00048
00051 QValueList<QCString> subproperies() const;
00052
00055 const QMetaProperty *findMetaSubproperty(const char * name) const;
00056
00059 QVariant subproperty( const char * name, bool &ok ) const;
00060
00064 bool setSubproperty( const char * name, const QVariant & value );
00065
00066 protected:
00067 QGuardedPtr<QWidget> m_subwidget;
00068 QValueList<QCString> m_subproperies;
00069 };
00070 }
00071
00072 #endif
|