KDevelop API Documentation

editors/qeditor/qeditor_factory.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> 00003 Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de> 00004 00005 Based on KHTML Factory from Simon Hausmann <hausmann@kde.org> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License version 2 as published by the Free Software Foundation. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 00022 #ifndef __qeditor_factory_h__ 00023 #define __qeditor_factory_h__ 00024 00025 #include <kparts/factory.h> 00026 #include <ktrader.h> 00027 00028 class KInstance; 00029 class KAboutData; 00030 00031 class QEditorPartFactory : public KParts::Factory 00032 { 00033 Q_OBJECT 00034 public: 00035 QEditorPartFactory( bool clone = false ); 00036 virtual ~QEditorPartFactory(); 00037 00038 virtual KParts::Part *createPartObject( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const char *classname, const QStringList &args ); 00039 00040 static KInstance *instance(); 00041 00042 static const QPtrList<class QEditorPart>& documents(); 00043 static void registerDocument ( class QEditorPart *doc ); 00044 static void deregisterDocument ( class QEditorPart *doc ); 00045 00046 static const QPtrList<class QEditorView>& views(); 00047 static void registerView ( class QEditorView *view ); 00048 static void deregisterView ( class QEditorView *view ); 00049 00050 static KTrader::OfferList *plugins (); 00051 00052 private: 00053 static void ref(); 00054 static void deref(); 00055 00056 static unsigned long s_refcnt; 00057 static QEditorPartFactory *s_self; 00058 00059 static QPtrList<class QEditorPart> *s_documents; 00060 static QPtrList<class QEditorView> *s_views; 00061 00062 static KInstance *s_instance; 00063 static KAboutData *s_about; 00064 00065 static KTrader::OfferList *s_plugins; 00066 }; 00067 00068 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:38:56 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003