KDEUI
kxmlguibuilder.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2000 Simon Hausmann <hausmann@kde.org> 00003 David Faure <faure@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 #ifndef kxmlguibuilder_h 00021 #define kxmlguibuilder_h 00022 00023 #include <kdeui_export.h> 00024 00025 class KComponentData; 00026 class KXMLGUIBuilderPrivate; 00027 class KXMLGUIClient; 00028 00029 class QAction; 00030 class QDomElement; 00031 class QStringList; 00032 class QWidget; 00033 00041 class KDEUI_EXPORT KXMLGUIBuilder 00042 { 00043 public: 00044 00045 explicit KXMLGUIBuilder( QWidget *widget ); 00046 virtual ~KXMLGUIBuilder(); 00047 00048 /* @internal */ 00049 KXMLGUIClient *builderClient() const; 00050 /* @internal */ 00051 void setBuilderClient( KXMLGUIClient *client ); 00052 /* @internal */ 00053 KComponentData builderComponentData() const; 00054 /* @internal */ 00055 void setBuilderComponentData(const KComponentData &componentData); 00056 /* @internal */ 00057 QWidget *widget(); 00058 00059 virtual QStringList containerTags() const; 00060 00073 virtual QWidget *createContainer( QWidget *parent, int index, 00074 const QDomElement &element, QAction* &containerAction ); 00075 00081 virtual void removeContainer( QWidget *container, QWidget *parent, 00082 QDomElement &element, QAction* containerAction ); 00083 00084 virtual QStringList customTags() const; 00085 00086 virtual QAction* createCustomElement( QWidget *parent, int index, const QDomElement &element ); 00087 00088 virtual void removeCustomElement( QWidget *parent, QAction* action ); 00089 00090 virtual void finalizeGUI( KXMLGUIClient *client ); 00091 00092 protected: 00093 virtual void virtual_hook( int id, void* data ); 00094 private: 00095 KXMLGUIBuilderPrivate * const d; 00096 }; 00097 00098 #endif 00099
KDE 4.6 API Reference