kexi

kexiscriptdesignview.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Lucijan Busch <lucijan@gmx.at>
00003    Copyright (C) 2004-2005 Jaroslaw Staniek <js@iidea.pl>
00004    Copyright (C) 2005 Cedric Pasteur <cedric.pasteur@free.fr>
00005    Copyright (C) 2005 Sebastian Sauer <mail@dipe.org>
00006 
00007    This program is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this program; see the file COPYING.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef KEXISCRIPTDESIGNVIEW_H
00024 #define KEXISCRIPTDESIGNVIEW_H
00025 
00026 #include <kexiviewbase.h>
00027 
00028 #include <koproperty/set.h>
00029 #include <koproperty/property.h>
00030 
00031 // Forward declarations.
00032 class KexiScriptContainer;
00033 class KexiScriptEditor;
00034 class KexiScriptDesignViewPrivate;
00035 
00036 namespace Kross { namespace Api {
00037   class ScriptAction;
00038 }}
00039 
00046 class KexiScriptDesignView : public KexiViewBase
00047 {
00048         Q_OBJECT
00049 
00050     public:
00051 
00055         KexiScriptDesignView(KexiMainWindow *mainWin, QWidget *parent, Kross::Api::ScriptAction* scriptaction);
00056 
00060         virtual ~KexiScriptDesignView();
00061 
00066         Kross::Api::ScriptAction* scriptAction() const;
00067 
00071         virtual KoProperty::Set* propertySet();
00072 
00083         virtual KexiDB::SchemaData* storeNewData(const KexiDB::SchemaData& sdata, bool &cancel);
00084 
00089         virtual tristate storeData(bool dontAsk = false);
00090 
00091     private slots:
00092 
00096         void slotPropertyChanged(KoProperty::Set& set, KoProperty::Property& property);
00097 
00102         void updateProperties();
00103 
00107         void execute();
00108 
00109     private:
00110         KexiScriptDesignViewPrivate* d;
00111 
00116         bool loadData();
00117 };
00118 
00119 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys