summaryrefslogtreecommitdiffstats
path: root/kjsembed/xmlactionclient.h
diff options
context:
space:
mode:
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;