diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kross/main/scriptaction.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kross/main/scriptaction.h')
-rw-r--r-- | lib/kross/main/scriptaction.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/lib/kross/main/scriptaction.h b/lib/kross/main/scriptaction.h index 22bb37ec..27f910d0 100644 --- a/lib/kross/main/scriptaction.h +++ b/lib/kross/main/scriptaction.h @@ -20,7 +20,7 @@ #ifndef KROSS_API_SCRIPTACTION_H #define KROSS_API_SCRIPTACTION_H -#include <qdom.h> +#include <tqdom.h> #include <kaction.h> #include "scriptcontainer.h" @@ -41,18 +41,19 @@ namespace Kross { namespace Api { , public Kross::Api::ScriptContainer { Q_OBJECT + TQ_OBJECT /// The name of the interpreter used to execute the scripting code. - //Q_PROPERTY(QString interpretername READ getInterpreterName WRITE setInterpreterName) + //TQ_PROPERTY(TQString interpretername READ getInterpreterName WRITE setInterpreterName) /// The scripting code which should be executed. - //Q_PROPERTY(QString code READ getCode WRITE setCode) + //TQ_PROPERTY(TQString code READ getCode WRITE setCode) /// The scriptfile which should be executed. - //Q_PROPERTY(QString file READ getFile WRITE setFile) + //TQ_PROPERTY(TQString file READ getFile WRITE setFile) /// The description for this \a ScriptAction . - Q_PROPERTY(QString description READ getDescription WRITE setDescription) + TQ_PROPERTY(TQString description READ getDescription WRITE setDescription) public: @@ -60,7 +61,7 @@ namespace Kross { namespace Api { typedef KSharedPtr<ScriptAction> Ptr; /// A list of \a ScriptAction instances. - //typedef QValueList<ScriptAction::Ptr> List; + //typedef TQValueList<ScriptAction::Ptr> List; /** * Constructor. @@ -68,17 +69,17 @@ namespace Kross { namespace Api { * \param file The KURL scriptfile this \a ScriptAction * points to. */ - explicit ScriptAction(const QString& file); + explicit ScriptAction(const TQString& file); /** * Constructor. * * \param scriptconfigfile The XML-configurationfile * the DOM-element was readed from. - * \param element The QDomElement which will be used + * \param element The TQDomElement which will be used * to setup the \a ScriptAction attributes. */ - explicit ScriptAction(const QString& scriptconfigfile, const QDomElement& element); + explicit ScriptAction(const TQString& scriptconfigfile, const TQDomElement& element); /** * Destructor. @@ -96,12 +97,12 @@ namespace Kross { namespace Api { /** * \return the description for this \a ScriptAction has. */ - const QString getDescription() const; + const TQString getDescription() const; /** * Set the description \p description for this \a ScriptAction . */ - void setDescription(const QString& description); + void setDescription(const TQString& description); /** * Set the name of the interpreter which will be used @@ -110,20 +111,20 @@ namespace Kross { namespace Api { * \param name The name of the \a Interpreter . This * could be e.g. "python". */ - void setInterpreterName(const QString& name); + void setInterpreterName(const TQString& name); /** * \return the path of the package this \a ScriptAction - * belongs to or QString::null if it doesn't belong to + * belongs to or TQString() if it doesn't belong to * any package. */ - const QString getPackagePath() const; + const TQString getPackagePath() const; /** * \return a list of all kind of logs this \a ScriptAction * does remember. */ - const QStringList& getLogs() const; + const TQStringList& getLogs() const; /** * Attach this \a ScriptAction to the \a ScriptActionCollection @@ -173,10 +174,10 @@ namespace Kross { namespace Api { /** * This signal got emitted after the try to execute this - * \a ScriptAction failed. The \p errormessage contains + * \a ScriptAction failed. The \p errormessage tqcontains * the error message. */ - void failed(const QString& errormessage, const QString& tracedetails); + void failed(const TQString& errormessage, const TQString& tracedetails); private: /// Internaly used private d-pointer. @@ -196,13 +197,13 @@ namespace Kross { namespace Api { /** * The list of \a ScriptAction shared pointers. */ - QValueList<ScriptAction::Ptr> m_list; + TQValueList<ScriptAction::Ptr> m_list; /** * A map of \a ScriptAction shared pointers used to access * the actions with there name. */ - QMap<QCString, ScriptAction::Ptr> m_actions; + TQMap<TQCString, ScriptAction::Ptr> m_actions; /** * A KActionMenu which could be used to display the @@ -237,7 +238,7 @@ namespace Kross { namespace Api { * initial content for the KActionMenu \a m_actionmenu . * \param name The internal name. */ - ScriptActionCollection(const QString& text, KActionCollection* ac, const char* name) + ScriptActionCollection(const TQString& text, KActionCollection* ac, const char* name) : m_actionmenu( new KActionMenu(text, ac, name) ) , m_dirty(true) {} @@ -246,7 +247,7 @@ namespace Kross { namespace Api { * Destructor. */ ~ScriptActionCollection() { - for(QValueList<ScriptAction::Ptr>::Iterator it = m_list.begin(); it != m_list.end(); ++it) + for(TQValueList<ScriptAction::Ptr>::Iterator it = m_list.begin(); it != m_list.end(); ++it) (*it)->detach(this); } @@ -254,12 +255,12 @@ namespace Kross { namespace Api { * \return the \a ScriptAction instance which has the name \p name * or NULL if there exists no such action. */ - ScriptAction::Ptr action(const QCString& name) { return m_actions[name]; } + ScriptAction::Ptr action(const TQCString& name) { return m_actions[name]; } /** * \return a list of actions. */ - QValueList<ScriptAction::Ptr> actions() { return m_list; } + TQValueList<ScriptAction::Ptr> actions() { return m_list; } /** * \return the KActionMenu \a m_actionmenu . @@ -293,7 +294,7 @@ namespace Kross { namespace Api { * will be empty and there are no actions attach any longer. */ void clear() { - for(QValueList<ScriptAction::Ptr>::Iterator it = m_list.begin(); it != m_list.end(); ++it) { + for(TQValueList<ScriptAction::Ptr>::Iterator it = m_list.begin(); it != m_list.end(); ++it) { m_actionmenu->remove(*it); (*it)->detach(this); } |