diff options
Diffstat (limited to 'kexi/plugins/macros/lib/action.h')
-rw-r--r-- | kexi/plugins/macros/lib/action.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/kexi/plugins/macros/lib/action.h b/kexi/plugins/macros/lib/action.h index 5200c1a4..51e97869 100644 --- a/kexi/plugins/macros/lib/action.h +++ b/kexi/plugins/macros/lib/action.h @@ -25,9 +25,9 @@ #include "context.h" #include "variable.h" -#include <qobject.h> +#include <tqobject.h> #include <ksharedptr.h> -#include <qstringlist.h> +#include <tqstringlist.h> namespace KoMacro { @@ -36,26 +36,27 @@ namespace KoMacro { * functionality KAction doesn't provide. */ class KOMACRO_EXPORT Action - : public QObject // Qt functionality like signals and slots + : public TQObject // TQt functionality like signals and slots , public KShared // shared reference-counting { Q_OBJECT + TQ_OBJECT /// Property to get/set the name. - Q_PROPERTY(QString name READ name WRITE setName) + TQ_PROPERTY(TQString name READ name WRITE setName) /// Property to get/set the text. - Q_PROPERTY(QString text READ text WRITE setText) + TQ_PROPERTY(TQString text READ text WRITE setText) /// Property to get/set the comment. - Q_PROPERTY(QString comment READ comment WRITE setComment) + TQ_PROPERTY(TQString comment READ comment WRITE setComment) public: /** * Shared pointer to implement reference-counting. */ - typedef QMap<QString, KSharedPtr<Action> > Map; + typedef TQMap<TQString, KSharedPtr<Action> > Map; /** * Constructor. @@ -63,7 +64,7 @@ namespace KoMacro { * @param name The unique name this @a Action has. * @param text The i18n-caption text this @a Action has. */ - explicit Action(const QString& name, const QString& text = QString::null); + explicit Action(const TQString& name, const TQString& text = TQString()); /** * Destructor. @@ -74,50 +75,50 @@ namespace KoMacro { * @return a string representation of the functionality * this action provides. */ - virtual const QString toString() const; + virtual const TQString toString() const; /** * The name this @a Action has. */ - const QString name() const; + const TQString name() const; /** * Set the name of the @a Action to @p name . */ - void setName(const QString& name); + void setName(const TQString& name); /** * @return the i18n-caption text this @a Action has. */ - const QString text() const; + const TQString text() const; /** * Set the i18n-caption text this @a Action has. */ - void setText(const QString& text); + void setText(const TQString& text); /** * @return the comment associated with this action. */ - const QString comment() const; + const TQString comment() const; /** * Set the @p comment associated with this action. */ - void setComment(const QString& comment); + void setComment(const TQString& comment); /** * @return true if there exists a variable with the * name @p name else false is returned. */ - bool hasVariable(const QString& name) const; + bool hasVariable(const TQString& name) const; /** * @return the variable @a Variable defined for the * name @p name . If there exists no @a Variable with * such a name, NULL is returned. */ - KSharedPtr<Variable> variable(const QString& name) const; + KSharedPtr<Variable> variable(const TQString& name) const; /** * @return the map of variables this @a Action provides. @@ -127,7 +128,7 @@ namespace KoMacro { /** * @return a list of variablenames this @a Action provides.s */ - QStringList variableNames() const; + TQStringList variableNames() const; /** * Append the @a Variable @p variable to list of variables @@ -140,15 +141,15 @@ namespace KoMacro { * * @param name The name the variable should have. * @param text The i18n-caption used for display. - * @param variant The QVariant value. + * @param variant The TQVariant value. */ - void setVariable(const QString& name, const QString& text, const QVariant& variant); + void setVariable(const TQString& name, const TQString& text, const TQVariant& variant); /** * Remove the variable defined with @p name . If there exists * no such variable, nothing is done. */ - void removeVariable(const QString& name); + void removeVariable(const TQString& name); /** * This function is called, when the @a KoMacro::Variable @@ -161,7 +162,7 @@ namespace KoMacro { * @return true if the update was successfully else false * is returned. */ - virtual bool notifyUpdated(const KSharedPtr<MacroItem> ¯oitem, const QString& name) { + virtual bool notifyUpdated(const KSharedPtr<MacroItem> ¯oitem, const TQString& name) { Q_UNUSED(macroitem); Q_UNUSED(name); return true; // The default implementation does nothing. |