kexi
keximacrodesignview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KEXIMACRODESIGNVIEW_H
00019 #define KEXIMACRODESIGNVIEW_H
00020
00021 #include "keximacroview.h"
00022
00023
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
|