F:/KPlato/koffice/libs/kross/core/guiclient.h

Aller à la documentation de ce fichier.
00001 /***************************************************************************
00002  * guiclient.h
00003  * This file is part of the KDE project
00004  * copyright (C) 2005-2006 by Sebastian Sauer (mail@dipe.org)
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  * This program 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  * You should have received a copy of the GNU Library General Public License
00015  * along with this program; see the file COPYING.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef KROSS_GUICLIENT_H
00021 #define KROSS_GUICLIENT_H
00022 
00023 #include "../core/krossconfig.h"
00024 #include "../core/action.h"
00025 
00026 #include <QObject>
00027 
00028 #include <kurl.h>
00029 #include <kxmlguiclient.h>
00030 
00031 namespace Kross {
00032 
00038     class KROSSCORE_EXPORT GUIClient
00039         : public QObject
00040         , public KXMLGUIClient
00041     {
00042             Q_OBJECT
00043 
00044         public:
00045 
00056             explicit GUIClient(KXMLGUIClient* guiclient, QObject* parent = 0);
00057 
00061             virtual ~GUIClient();
00062 
00066             virtual void setXMLFile(const QString& file, bool merge = false, bool setXMLDoc = true);
00067 
00071             virtual void setDOMDocument(const QDomDocument &document, bool merge = false);
00072 
00073 #if 0
00074 
00077             KActionCollection* scriptsActionCollection() const;
00078 
00083             bool writeConfigFromPackages();
00084 #endif
00085 
00086         public slots:
00087 
00092             bool executeFile();
00093 
00099             bool executeFile(const KUrl& file);
00100 
00105             void showManager();
00106 
00107         private slots:
00108 
00112             void slotMenuAboutToShow();
00113 
00117             void started(Kross::Action*);
00118 
00122             void finished(Kross::Action*);
00123 
00124         private:
00126             class Private;
00128             Private* const d;
00129     };
00130 
00131 }
00132 
00133 #endif
00134 

Généré le Wed Nov 22 23:41:11 2006 pour KPlato par  doxygen 1.5.1-p1