kexi
macroitem.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KOMACRO_MACROITEM_H
00021 #define KOMACRO_MACROITEM_H
00022
00023 #include <qobject.h>
00024
00025 #include <ksharedptr.h>
00026
00027
00028 class QDomElement;
00029
00030 #include "action.h"
00031 #include "context.h"
00032
00033 namespace KoMacro {
00034
00035
00036
00037
00046 class KOMACRO_EXPORT MacroItem : public KShared
00047 {
00048
00049 public:
00050
00054 typedef QValueList<KSharedPtr<MacroItem > > List;
00055
00059 explicit MacroItem();
00060
00064 ~MacroItem();
00065
00070 QString comment() const;
00071
00076 void setComment(const QString& comment);
00077
00084 KSharedPtr<Action> action() const;
00085
00089 void setAction(KSharedPtr<Action> action);
00090
00101 QVariant variant(const QString& name, bool checkaction = false) const;
00102
00113 KSharedPtr<Variable> variable(const QString& name, bool checkaction = false) const;
00114
00118 QMap<QString, KSharedPtr<Variable> > variables() const;
00119
00125 bool setVariant(const QString& name, const QVariant& variant);
00126
00131 KSharedPtr<Variable> addVariable(const QString& name, const QVariant& variant);
00132
00133 private:
00135 class Private;
00137 Private* const d;
00138 };
00139
00140 }
00141
00142 #endif
|