kdeui Library API Documentation

kxmlguibuilder.h

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., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 #ifndef __kxmlguibuilder_h__ 00021 #define __kxmlguibuilder_h__ 00022 00023 #include <qdom.h> 00024 #include <qstringlist.h> 00025 00026 class KXMLGUIBuilderPrivate; 00027 class QWidget; 00028 class KInstance; 00029 class KXMLGUIClient; 00030 00037 class KXMLGUIBuilder 00038 { 00039 public: 00040 00041 KXMLGUIBuilder( QWidget *widget ); 00042 virtual ~KXMLGUIBuilder(); 00043 00044 /* @internal */ 00045 KXMLGUIClient *builderClient() const; 00046 /* @internal */ 00047 void setBuilderClient( KXMLGUIClient *client ); 00048 /* @internal */ 00049 KInstance *builderInstance() const; 00050 /* @internal */ 00051 void setBuilderInstance( KInstance *instance ); 00052 /* @internal */ 00053 QWidget *widget(); 00054 00055 virtual QStringList containerTags() const; 00056 00069 virtual QWidget *createContainer( QWidget *parent, int index, 00070 const QDomElement &element, int &id ); 00071 00077 virtual void removeContainer( QWidget *container, QWidget *parent, 00078 QDomElement &element, int id ); 00079 00080 virtual QStringList customTags() const; 00081 00082 virtual int createCustomElement( QWidget *parent, int index, const QDomElement &element ); 00083 00084 virtual void removeCustomElement( QWidget *parent, int id ); 00085 00086 virtual void finalizeGUI( KXMLGUIClient *client ); 00087 00088 protected: 00089 virtual void virtual_hook( int id, void* data ); 00090 private: 00091 KXMLGUIBuilderPrivate *d; 00092 }; 00093 00094 #endif
KDE Logo
This file is part of the documentation for kdeui Library Version 3.3.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 17 11:27:33 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003