kexi

keximacrodesignview.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2006 Sebastian Sauer <mail@dipe.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012    You should have received a copy of the GNU Library General Public License
00013    along with this library; see the file COPYING.LIB.  If not, write to
00014    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00015    Boston, MA 02110-1301, USA.
00016 */
00017 
00018 #ifndef KEXIMACRODESIGNVIEW_H
00019 #define KEXIMACRODESIGNVIEW_H
00020 
00021 #include "keximacroview.h"
00022 
00023 // Forward declarations.
00024 namespace KoMacro {
00025     class Action;
00026     class Macro;
00027     class MacroItem;
00028 }
00029 namespace KoProperty {
00030     class Property;
00031 }
00032 namespace KexiDB {
00033     class ResultInfo;
00034 }
00035 class KexiTableItem;
00036 
00041 class KexiMacroDesignView : public KexiMacroView
00042 {
00043         Q_OBJECT
00044     public:
00045 
00054         KexiMacroDesignView(KexiMainWindow *mainwin, QWidget *parent, ::KoMacro::Macro* const macro);
00055 
00059         virtual ~KexiMacroDesignView();
00060 
00065         virtual bool loadData();
00066 
00070         virtual KoProperty::Set* propertySet();
00071 
00072     private slots:
00073 
00078         void beforeCellChanged(KexiTableItem*, int, QVariant&, KexiDB::ResultInfo*);
00079 
00083         void rowUpdated(KexiTableItem* item);
00084 
00088         void rowDeleted();
00089 
00093         void rowInserted(KexiTableItem* item, uint row, bool repaint);
00094 
00098         void propertyChanged(KoProperty::Set&, KoProperty::Property&);
00099 
00103         void reloadPropertyLater();
00104 
00105     private:
00107         class Private;
00109         Private* const d;
00110 
00114         void updateData();
00115 
00120         bool updateSet(KoProperty::Set* set, KSharedPtr<KoMacro::MacroItem> item, const QString& variablename);
00121 
00126         void updateProperties(int row, KoProperty::Set* set, KSharedPtr<KoMacro::MacroItem> macroitem);
00127 };
00128 
00129 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys