summaryrefslogtreecommitdiffstats
path: root/kjsembed/xmlactionclient.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/xmlactionclient.h
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/xmlactionclient.h')
-rw-r--r--kjsembed/xmlactionclient.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/kjsembed/xmlactionclient.h b/kjsembed/xmlactionclient.h
index 1af501ab..8b2a801b 100644
--- a/kjsembed/xmlactionclient.h
+++ b/kjsembed/xmlactionclient.h
@@ -22,9 +22,9 @@
#ifndef XMLACTIONCLIENT_H
#define XMLACTIONCLIENT_H
-#include <qobject.h>
-#include <qxml.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqxml.h>
+#include <tqmap.h>
class KActionCollection;
class KAction;
@@ -62,15 +62,15 @@ public:
* Clears this script object. After this method has been called,
* isValid() will return false.
*/
- void clear() { src = type = text = QString::null; }
+ void clear() { src = type = text = TQString::null; }
- QString src;
- QString type;
- QString text;
+ TQString src;
+ TQString type;
+ TQString text;
};
/** Creates an XMLActionClient. */
- XMLActionClient( QObject *parent=0, const char *name=0 );
+ XMLActionClient( TQObject *parent=0, const char *name=0 );
/**
* Cleans up. When the object is deleted, any actions it has created will
@@ -91,22 +91,22 @@ public:
void setRunner( XMLActionRunner *r ) { actrun = r; }
/** Loads actions from the named XML file. Returns true on success. */
- bool load( const QString &filename );
+ bool load( const TQString &filename );
/** Loads actions from the named XML file. Returns true on success. */
- bool load( XMLActionHandler *handler, const QString &filename );
+ bool load( XMLActionHandler *handler, const TQString &filename );
/** Runs the named script. */
- bool run( const QString &name );
+ bool run( const TQString &name );
/** Returns the named script. */
- XMLActionScript script( const QString &name ) const { return scripts[name]; }
+ XMLActionScript script( const TQString &name ) const { return scripts[name]; }
/** Calls XMLActionRunner::run(). */
bool run( const XMLActionScript &script );
/** Binds a name to a script. */
- virtual bool bind( const QString &name, const XMLActionScript &script );
+ virtual bool bind( const TQString &name, const XMLActionScript &script );
/** Binds an action to a script. */
virtual bool bind( KAction *act, const XMLActionScript &script );
@@ -121,7 +121,7 @@ protected slots:
private:
KActionCollection *ac;
XMLActionRunner *actrun;
- QMap<QString, XMLActionScript> scripts;
+ TQMap<TQString, XMLActionScript> scripts;
class XMLActionClientPrivate *d;
};
@@ -177,10 +177,10 @@ class XMLActionHandler : public QXmlDefaultHandler
public:
XMLActionHandler( XMLActionClient *actclient );
- virtual bool startElement( const QString &ns, const QString &ln, const QString &qn,
- const QXmlAttributes &attrs );
- virtual bool endElement( const QString &ns, const QString &ln, const QString &qn );
- virtual bool characters( const QString &chars );
+ virtual bool startElement( const TQString &ns, const TQString &ln, const TQString &qn,
+ const TQXmlAttributes &attrs );
+ virtual bool endElement( const TQString &ns, const TQString &ln, const TQString &qn );
+ virtual bool characters( const TQString &chars );
/** Called when an action tag is closed. */
void defineAction();
@@ -198,29 +198,29 @@ private:
XMLActionData() { clear(); }
void clear() {
- text = icons = keys = name = group = whatsthis = status = QString::null;
+ text = icons = keys = name = group = whatsthis = status = TQString::null;
exclusive = false;
script.clear();
}
- QString type;
- QString text;
- QString icons;
- QString keys;
- QString name;
- QString group;
+ TQString type;
+ TQString text;
+ TQString icons;
+ TQString keys;
+ TQString name;
+ TQString group;
bool exclusive;
- QString status;
- QString whatsthis;
+ TQString status;
+ TQString whatsthis;
XMLActionClient::XMLActionScript script;
- QStringList items;
+ TQStringList items;
};
XMLActionData *actionData() { return &ad; }
private:
XMLActionClient *actclient;
- QString cdata;
+ TQString cdata;
bool inAction;
XMLActionData ad;
class XMLActionHandlerPrivate *d;