From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- kjsembed/xmlactionclient.h | 56 +++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'kjsembed/xmlactionclient.h') diff --git a/kjsembed/xmlactionclient.h b/kjsembed/xmlactionclient.h index 8b2a801b..3f78fa3f 100644 --- a/kjsembed/xmlactionclient.h +++ b/kjsembed/xmlactionclient.h @@ -40,7 +40,7 @@ class XMLActionScript; * * @author Richard Moore, rich@kde.org */ -class XMLActionClient : public QObject +class XMLActionClient : public TQObject { Q_OBJECT @@ -62,15 +62,15 @@ public: * Clears this script object. After this method has been called, * isValid() will return false. */ - void clear() { src = type = text = TQString::null; } + void clear() { src = type = text = TTQString::null; } - TQString src; - TQString type; - TQString text; + TTQString src; + TTQString type; + TTQString text; }; /** Creates an XMLActionClient. */ - XMLActionClient( TQObject *parent=0, const char *name=0 ); + XMLActionClient( TTQObject *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 TQString &filename ); + bool load( const TTQString &filename ); /** Loads actions from the named XML file. Returns true on success. */ - bool load( XMLActionHandler *handler, const TQString &filename ); + bool load( XMLActionHandler *handler, const TTQString &filename ); /** Runs the named script. */ - bool run( const TQString &name ); + bool run( const TTQString &name ); /** Returns the named script. */ - XMLActionScript script( const TQString &name ) const { return scripts[name]; } + XMLActionScript script( const TTQString &name ) const { return scripts[name]; } /** Calls XMLActionRunner::run(). */ bool run( const XMLActionScript &script ); /** Binds a name to a script. */ - virtual bool bind( const TQString &name, const XMLActionScript &script ); + virtual bool bind( const TTQString &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; - TQMap scripts; + TTQMap scripts; class XMLActionClientPrivate *d; }; @@ -172,15 +172,15 @@ public: * * @author Richard Moore, rich@kde.org */ -class XMLActionHandler : public QXmlDefaultHandler +class XMLActionHandler : public TQXmlDefaultHandler { public: XMLActionHandler( XMLActionClient *actclient ); - 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 ); + virtual bool startElement( const TTQString &ns, const TTQString &ln, const TTQString &qn, + const TTQXmlAttributes &attrs ); + virtual bool endElement( const TTQString &ns, const TTQString &ln, const TTQString &qn ); + virtual bool characters( const TTQString &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 = TQString::null; + text = icons = keys = name = group = whatsthis = status = TTQString::null; exclusive = false; script.clear(); } - TQString type; - TQString text; - TQString icons; - TQString keys; - TQString name; - TQString group; + TTQString type; + TTQString text; + TTQString icons; + TTQString keys; + TTQString name; + TTQString group; bool exclusive; - TQString status; - TQString whatsthis; + TTQString status; + TTQString whatsthis; XMLActionClient::XMLActionScript script; - TQStringList items; + TTQStringList items; }; XMLActionData *actionData() { return &ad; } private: XMLActionClient *actclient; - TQString cdata; + TTQString cdata; bool inAction; XMLActionData ad; class XMLActionHandlerPrivate *d; -- cgit v1.2.1