kdeui
kxmlguibuilder.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __kxmlguibuilder_h__
00021 #define __kxmlguibuilder_h__
00022
00023 #include <qdom.h>
00024 #include <qstringlist.h>
00025
00026 #include <kdelibs_export.h>
00027
00028 class KXMLGUIBuilderPrivate;
00029 class QWidget;
00030 class KInstance;
00031 class KXMLGUIClient;
00032
00039 class KDEUI_EXPORT KXMLGUIBuilder
00040 {
00041 public:
00042
00043 KXMLGUIBuilder( QWidget *widget );
00044 virtual ~KXMLGUIBuilder();
00045
00046
00047 KXMLGUIClient *builderClient() const;
00048
00049 void setBuilderClient( KXMLGUIClient *client );
00050
00051 KInstance *builderInstance() const;
00052
00053 void setBuilderInstance( KInstance *instance );
00054
00055 QWidget *widget();
00056
00057 virtual QStringList containerTags() const;
00058
00071 virtual QWidget *createContainer( QWidget *parent, int index,
00072 const QDomElement &element, int &id );
00073
00079 virtual void removeContainer( QWidget *container, QWidget *parent,
00080 QDomElement &element, int id );
00081
00082 virtual QStringList customTags() const;
00083
00084 virtual int createCustomElement( QWidget *parent, int index, const QDomElement &element );
00085
00086 virtual void removeCustomElement( QWidget *parent, int id );
00087
00088 virtual void finalizeGUI( KXMLGUIClient *client );
00089
00090 protected:
00091 virtual void virtual_hook( int id, void* data );
00092 private:
00093 KXMLGUIBuilderPrivate *d;
00094 };
00095
00096 #endif