summaryrefslogtreecommitdiffstats
path: root/xparts
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 /xparts
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 'xparts')
-rw-r--r--xparts/mozilla/kmozillapart.cpp6
-rw-r--r--xparts/mozilla/kmozillapart.h6
-rw-r--r--xparts/mozilla/kshell.cpp8
-rw-r--r--xparts/src/gtk/gtkbrowserextension.c6
-rw-r--r--xparts/src/gtk/gtkpart.c12
-rw-r--r--xparts/src/interfaces/xbrowserextension.h4
-rw-r--r--xparts/src/interfaces/xbrowsersignals.h4
-rw-r--r--xparts/src/interfaces/xpart.h8
-rw-r--r--xparts/src/interfaces/xparthost.h10
-rw-r--r--xparts/src/interfaces/xpartmanager.h4
-rw-r--r--xparts/src/kde/kbrowsersignals.cpp6
-rw-r--r--xparts/src/kde/kbrowsersignals.h4
-rw-r--r--xparts/src/kde/xparthost_kpart.cpp36
-rw-r--r--xparts/src/kde/xparthost_kpart.h12
-rw-r--r--xparts/xpart_notepad/shell_xparthost.cpp10
-rw-r--r--xparts/xpart_notepad/shell_xparthost.h2
-rw-r--r--xparts/xpart_notepad/xp_notepad.cpp34
-rw-r--r--xparts/xpart_notepad/xp_notepad_factory.cpp8
-rw-r--r--xparts/xpart_notepad/xp_notepad_factory.h10
19 files changed, 95 insertions, 95 deletions
diff --git a/xparts/mozilla/kmozillapart.cpp b/xparts/mozilla/kmozillapart.cpp
index d5f73050..8eba1441 100644
--- a/xparts/mozilla/kmozillapart.cpp
+++ b/xparts/mozilla/kmozillapart.cpp
@@ -15,8 +15,8 @@
typedef KParts::GenericFactory<KMozillaPart> KMozillaPartFactory;
K_EXPORT_COMPONENT_FACTORY( libkmozillapart, KMozillaPartFactory );
-KMozillaPart::KMozillaPart(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name, const QStringList &)
+KMozillaPart::KMozillaPart(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name, const TQStringList &)
: XPartHost_KPart(parentWidget, widgetName, parent, name)
{
setInstance( KMozillaPartFactory::instance() );
@@ -36,7 +36,7 @@ KMozillaPart::~KMozillaPart()
delete m_partProcess;
}
-void KMozillaPart::createActions( const QCString &xmlActions )
+void KMozillaPart::createActions( const TQCString &xmlActions )
{
XPartHost_KPart::createActions( xmlActions );
qDebug("----<<<<<< exit loop");
diff --git a/xparts/mozilla/kmozillapart.h b/xparts/mozilla/kmozillapart.h
index d7cef4b9..a312d894 100644
--- a/xparts/mozilla/kmozillapart.h
+++ b/xparts/mozilla/kmozillapart.h
@@ -11,11 +11,11 @@ class KMozillaPart : public XPartHost_KPart
Q_OBJECT
public:
- KMozillaPart(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name, const QStringList &);
+ KMozillaPart(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name, const TQStringList &);
virtual ~KMozillaPart();
- virtual void createActions( const QCString &xmlActions );
+ virtual void createActions( const TQCString &xmlActions );
static KAboutData *createAboutData();
diff --git a/xparts/mozilla/kshell.cpp b/xparts/mozilla/kshell.cpp
index 4f012dbb..e3f87279 100644
--- a/xparts/mozilla/kshell.cpp
+++ b/xparts/mozilla/kshell.cpp
@@ -22,7 +22,7 @@ public:
setCentralWidget( m_host->widget() );
- connect(m_host, SIGNAL( actionsInitialized() ), this, SLOT( mergeGUI() ) );
+ connect(m_host, TQT_SIGNAL( actionsInitialized() ), this, TQT_SLOT( mergeGUI() ) );
#if 1
m_partProcess = new KProcess;
@@ -31,10 +31,10 @@ public:
m_partProcess->start();
#endif
- KStdAction::quit( this, SLOT( close() ), actionCollection() );
+ KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
KSelectAction *s = new KSelectAction( "http://www.kde.org" , 0,
actionCollection(), "location" );
- connect( s, SIGNAL(activated( const QString& ) ), this, SLOT( slotOpenUrl( const QString & ) ) );
+ connect( s, TQT_SIGNAL(activated( const TQString& ) ), this, TQT_SLOT( slotOpenUrl( const TQString & ) ) );
s->setEditable(true);
}
virtual ~ShellWindow()
@@ -42,7 +42,7 @@ public:
delete m_partProcess;
}
public slots:
- void slotOpenUrl( const QString &url )
+ void slotOpenUrl( const TQString &url )
{
kdDebug() << "this=" << this;
kdDebug() << "url=" << url << endl;
diff --git a/xparts/src/gtk/gtkbrowserextension.c b/xparts/src/gtk/gtkbrowserextension.c
index 165320a8..420bb3d5 100644
--- a/xparts/src/gtk/gtkbrowserextension.c
+++ b/xparts/src/gtk/gtkbrowserextension.c
@@ -133,7 +133,7 @@ gboolean gtk_xbrowserextension_dcop_process( DcopObject *obj, const char *fun, d
}
return True;
}
- else if ( strcmp( fun, "restoreState(QByteArray)" ) == 0 )
+ else if ( strcmp( fun, "restoreState(TQByteArray)" ) == 0 )
{
if( klass->restore_state ) {
size_t len;
@@ -157,7 +157,7 @@ GList *gtk_xbrowserextension_dcop_functions( DcopObject *obj )
{
GList *res = parent_class->functions( obj );
res = g_list_append( res, g_strdup( "saveState()" ) );
- res = g_list_append( res, g_strdup( "restoreState(QByteArray)" ) );
+ res = g_list_append( res, g_strdup( "restoreState(TQByteArray)" ) );
return res;
}
@@ -235,7 +235,7 @@ gboolean gtk_browserextension_open_url_request( GtkXBrowserExtension *part, cons
dcop_marshal_string( data, url );
- if ( !dcop_client_call( P->client, P->host_app_id, P->host_obj_id, "openURLRequest(QCString)", data,
+ if ( !dcop_client_call( P->client, P->host_app_id, P->host_obj_id, "openURLRequest(TQCString)", data,
&reply_type, &reply_data ) ) {
g_warning(" openURLRequest failed");
return FALSE;
diff --git a/xparts/src/gtk/gtkpart.c b/xparts/src/gtk/gtkpart.c
index 740910fb..655b7aa5 100644
--- a/xparts/src/gtk/gtkpart.c
+++ b/xparts/src/gtk/gtkpart.c
@@ -150,7 +150,7 @@ gboolean gtk_xpart_dcop_process( DcopObject *obj, const char *fun, dcop_data *da
gtk_widget_show_all( d->widget );
return True;
}
- else if ( strcmp( fun, "openURL(QCString)" ) == 0 )
+ else if ( strcmp( fun, "openURL(TQCString)" ) == 0 )
{
char *url;
fprintf( stderr, "openURL!\n" );
@@ -174,7 +174,7 @@ gboolean gtk_xpart_dcop_process( DcopObject *obj, const char *fun, dcop_data *da
dcop_marshal_boolean( *reply_data, b );
return True;
}
- else if ( strcmp( fun, "activateAction(QCString,int)" ) == 0 )
+ else if ( strcmp( fun, "activateAction(TQCString,int)" ) == 0 )
{
char *name;
uint state;
@@ -184,7 +184,7 @@ gboolean gtk_xpart_dcop_process( DcopObject *obj, const char *fun, dcop_data *da
gtk_signal_emit_by_name( GTK_OBJECT(part), name, state);
return True;
}
- else if ( strcmp( fun, "queryExtension(QCString)" ) == 0 ) {
+ else if ( strcmp( fun, "queryExtension(TQCString)" ) == 0 ) {
char *name;
char *extension = NULL;
dcop_demarshal_string( data, &name );
@@ -205,9 +205,9 @@ GList *gtk_xpart_dcop_functions( DcopObject *obj )
GList *res = parent_class->functions( obj );
res = g_list_append( res, g_strdup( "windowId()" ) );
res = g_list_append( res, g_strdup( "show()" ) );
- res = g_list_append( res, g_strdup( "bool openURL(QString url)" ) );
+ res = g_list_append( res, g_strdup( "bool openURL(TQString url)" ) );
res = g_list_append( res, g_strdup( "bool closeURL()" ) );
- res = g_list_append( res, g_strdup( "queryExtension(QCString)" ) );
+ res = g_list_append( res, g_strdup( "queryExtension(TQCString)" ) );
return res;
}
@@ -289,7 +289,7 @@ gboolean gtk_xpart_initialize_actions( GtkXPart *part, const char * actions )
data = dcop_data_ref( dcop_data_new() );
dcop_marshal_string( data, actions );
- if( !dcop_client_send( d->client, d->host_app_id, d->host_obj_id, "createActions(QCString)", data ) ) {
+ if( !dcop_client_send( d->client, d->host_app_id, d->host_obj_id, "createActions(TQCString)", data ) ) {
fprintf( stderr, "could not create actions\n" );
dcop_data_deref( data );
return FALSE;
diff --git a/xparts/src/interfaces/xbrowserextension.h b/xparts/src/interfaces/xbrowserextension.h
index 57297441..b097ab65 100644
--- a/xparts/src/interfaces/xbrowserextension.h
+++ b/xparts/src/interfaces/xbrowserextension.h
@@ -10,8 +10,8 @@ class XBrowserExtension : public DCOPObject
k_dcop:
virtual void setBrowserSignals( const DCOPRef &ref) = 0;
- virtual QByteArray saveState() = 0;
- virtual void restoreState( QByteArray state ) = 0;
+ virtual TQByteArray saveState() = 0;
+ virtual void restoreState( TQByteArray state ) = 0;
};
#endif
diff --git a/xparts/src/interfaces/xbrowsersignals.h b/xparts/src/interfaces/xbrowsersignals.h
index 6d41d28b..a4869e02 100644
--- a/xparts/src/interfaces/xbrowsersignals.h
+++ b/xparts/src/interfaces/xbrowsersignals.h
@@ -8,8 +8,8 @@ class XBrowserSignals : public DCOPObject
K_DCOP
k_dcop:
- virtual ASYNC openURLRequest( const QCString &url) = 0;
- virtual ASYNC createNewWindow( const QCString &url ) = 0;
+ virtual ASYNC openURLRequest( const TQCString &url) = 0;
+ virtual ASYNC createNewWindow( const TQCString &url ) = 0;
};
#endif
diff --git a/xparts/src/interfaces/xpart.h b/xparts/src/interfaces/xpart.h
index 7722f5fb..1d323a5d 100644
--- a/xparts/src/interfaces/xpart.h
+++ b/xparts/src/interfaces/xpart.h
@@ -3,7 +3,7 @@
#include <dcopobject.h>
#include <dcopref.h>
-#include <qglobal.h>
+#include <tqglobal.h>
class XPart : public DCOPObject
{
@@ -17,7 +17,7 @@ k_dcop:
virtual void show() = 0;
/** sent by the XPartHost to request url opening */
- virtual bool openURL( const QCString& url ) = 0;
+ virtual bool openURL( const TQCString& url ) = 0;
/** sent by the XPartHost to close the url */
virtual bool closeURL() = 0;
@@ -26,10 +26,10 @@ k_dcop:
* XPartHost::createActions()) has been activated. Name is the name of the
* action, state is used with Toggle actions to precise the current state.
*/
- virtual ASYNC activateAction( const QString &name, int state ) = 0;
+ virtual ASYNC activateAction( const TQString &name, int state ) = 0;
/** Are extentions available -> browser extension / TextEditor ? */
- virtual DCOPRef queryExtension( const QCString& extension ) = 0;
+ virtual DCOPRef queryExtension( const TQCString& extension ) = 0;
};
diff --git a/xparts/src/interfaces/xparthost.h b/xparts/src/interfaces/xparthost.h
index 3d1d95f4..75c6f4e0 100644
--- a/xparts/src/interfaces/xparthost.h
+++ b/xparts/src/interfaces/xparthost.h
@@ -8,7 +8,7 @@ class XPartHost : public DCOPObject
{
K_DCOP
public:
- XPartHost(QCString name) : DCOPObject(name) {}
+ XPartHost(TQCString name) : DCOPObject(name) {}
k_dcop:
@@ -20,17 +20,17 @@ k_dcop:
/** The XPart informs its host about its available actions.
* the actions are sent to the XPart using XPart::activateAction */
- virtual ASYNC createActions( const QCString &xmlActions ) = 0;
+ virtual ASYNC createActions( const TQCString &xmlActions ) = 0;
/** DCOP signal emitted by the XPart and received here, to be
* forwarded to the KPartHost. See KParts documentation for
* more details. */
- virtual ASYNC setWindowCaption( const QString &caption ) = 0;
+ virtual ASYNC setWindowCaption( const TQString &caption ) = 0;
/** DCOP signal emitted by the XPart and received here, to be
* forwarded to the KPartHost. See KParts documentation for
* more details. */
- virtual ASYNC setStatusBarText( const QString &text ) = 0;
+ virtual ASYNC setStatusBarText( const TQString &text ) = 0;
/** DCOP signal emitted by the XPart and received here, to be
@@ -46,7 +46,7 @@ k_dcop:
/** DCOP signal emitted by the XPart and received here, to be
* forwarded to the KPartHost. See KParts documentation for
* more details. */
- virtual ASYNC canceled( const QString &errMsg ) = 0;
+ virtual ASYNC canceled( const TQString &errMsg ) = 0;
};
diff --git a/xparts/src/interfaces/xpartmanager.h b/xparts/src/interfaces/xpartmanager.h
index a172ee3f..25a341f8 100644
--- a/xparts/src/interfaces/xpartmanager.h
+++ b/xparts/src/interfaces/xpartmanager.h
@@ -2,7 +2,7 @@
#define __xkparts_partmanager_h__
#include <dcopobject.h>
-#include <qglobal.h>
+#include <tqglobal.h>
class XKPartManager : public DCOPObject
{
@@ -10,7 +10,7 @@ class XKPartManager : public DCOPObject
k_dcop:
/** Query a XPart able to handle a given mimetype */
- virtual DCOPRef createPart( QString servicetype ) = 0;
+ virtual DCOPRef createPart( TQString servicetype ) = 0;
/** Delete a previously created XPart */
virtual void deletePart( DCOPRef ref ) = 0;
diff --git a/xparts/src/kde/kbrowsersignals.cpp b/xparts/src/kde/kbrowsersignals.cpp
index f96655f0..18c58362 100644
--- a/xparts/src/kde/kbrowsersignals.cpp
+++ b/xparts/src/kde/kbrowsersignals.cpp
@@ -17,13 +17,13 @@ KBrowserSignals::~KBrowserSignals()
delete ext;
}
-void KBrowserSignals::openURLRequest( const QCString &url)
+void KBrowserSignals::openURLRequest( const TQCString &url)
{
- KURL u = QString(url);
+ KURL u = TQString(url);
emit KParts::BrowserExtension::openURLRequest(u);
}
-void KBrowserSignals::createNewWindow( const QCString &url )
+void KBrowserSignals::createNewWindow( const TQCString &url )
{
}
diff --git a/xparts/src/kde/kbrowsersignals.h b/xparts/src/kde/kbrowsersignals.h
index dab8f208..3bd29a7f 100644
--- a/xparts/src/kde/kbrowsersignals.h
+++ b/xparts/src/kde/kbrowsersignals.h
@@ -16,8 +16,8 @@ public:
virtual ~KBrowserSignals();
- virtual ASYNC openURLRequest( const QCString &url);
- virtual ASYNC createNewWindow( const QCString &url );
+ virtual ASYNC openURLRequest( const TQCString &url);
+ virtual ASYNC createNewWindow( const TQCString &url );
protected:
XPartHost_KPart *part;
diff --git a/xparts/src/kde/xparthost_kpart.cpp b/xparts/src/kde/xparthost_kpart.cpp
index c88e0c99..77def3ff 100644
--- a/xparts/src/kde/xparthost_kpart.cpp
+++ b/xparts/src/kde/xparthost_kpart.cpp
@@ -9,13 +9,13 @@
#include <qxembed.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kaction.h>
#include <kdebug.h>
-XPartHost_KPart::XPartHost_KPart( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name )
+XPartHost_KPart::XPartHost_KPart( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name )
: KParts::ReadOnlyPart( parent, name ),
XPartHost("parthost")
{
@@ -57,32 +57,32 @@ DCOPRef XPartHost_KPart::registerXPart( const DCOPRef &part )
}
-void XPartHost_KPart::createActions( const QCString &xmlActions )
+void XPartHost_KPart::createActions( const TQCString &xmlActions )
{
qDebug("--> createActions");
// creates a set of actions and adds them to the actionCollection
- QDomDocument d;
+ TQDomDocument d;
d.setContent( xmlActions );
- QDomElement docElem = d.documentElement();
+ TQDomElement docElem = d.documentElement();
kdDebug() << "docElement is " << docElem.tagName() << endl;
- QDomNode n = docElem.firstChild();
+ TQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
- QDomElement e = n.toElement();
+ TQDomElement e = n.toElement();
if( !e.isNull() ) {
if ( e.tagName() == "Action") {
- QString name = e.attribute("name");
- QString type = e.attribute("type");
+ TQString name = e.attribute("name");
+ TQString type = e.attribute("type");
if(type.isEmpty())
- new KAction( name, 0, this, SLOT( actionActivated() ), actionCollection(), name.latin1() );
+ new KAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
else if( type == "toggle" )
- new KToggleAction( name, 0, this, SLOT( actionActivated() ), actionCollection(), name.latin1() );
+ new KToggleAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() );
kdDebug() << "action=" << name << " type=" << type << endl;
} else if ( e.tagName() == "XMLFile" ) {
- QString location = e.attribute("location");
+ TQString location = e.attribute("location");
setXMLFile(location);
}
}
@@ -92,12 +92,12 @@ void XPartHost_KPart::createActions( const QCString &xmlActions )
}
-void XPartHost_KPart::setWindowCaption( const QString &caption )
+void XPartHost_KPart::setWindowCaption( const TQString &caption )
{
emit KParts::ReadOnlyPart::setWindowCaption( caption );
}
-void XPartHost_KPart::setStatusBarText( const QString &text )
+void XPartHost_KPart::setStatusBarText( const TQString &text )
{
emit KParts::ReadOnlyPart::setStatusBarText( text );
}
@@ -112,7 +112,7 @@ void XPartHost_KPart::completed()
emit KParts::ReadOnlyPart::completed();
}
-void XPartHost_KPart::canceled( const QString &errMsg )
+void XPartHost_KPart::canceled( const TQString &errMsg )
{
emit KParts::ReadOnlyPart::canceled( errMsg );
}
@@ -131,12 +131,12 @@ bool XPartHost_KPart::closeURL()
void XPartHost_KPart::actionActivated()
{
- const QObject *o = sender();
+ const TQObject *o = sender();
if( !o->inherits("KAction") ) return;
const KAction *action = static_cast<const KAction *>(o);
- QString name = action->text();
+ TQString name = action->text();
int state = 0;
if(action->inherits("KToggleAction")) {
diff --git a/xparts/src/kde/xparthost_kpart.h b/xparts/src/kde/xparthost_kpart.h
index 5a12dec0..527178d2 100644
--- a/xparts/src/kde/xparthost_kpart.h
+++ b/xparts/src/kde/xparthost_kpart.h
@@ -21,8 +21,8 @@ class XPartHost_KPart : public KParts::ReadOnlyPart, public XPartHost
{
Q_OBJECT
public:
- XPartHost_KPart( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name );
+ XPartHost_KPart( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name );
virtual ~XPartHost_KPart();
// DCOP stuff
@@ -36,18 +36,18 @@ public:
// KPart signals
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC createActions( const QCString &xmlActions );
+ virtual ASYNC createActions( const TQCString &xmlActions );
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC setWindowCaption( const QString &caption );
+ virtual ASYNC setWindowCaption( const TQString &caption );
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC setStatusBarText( const QString &text );
+ virtual ASYNC setStatusBarText( const TQString &text );
/** Emitted by the XPart, to be transfered to the KPart host */
virtual ASYNC started();
/** Emitted by the XPart, to be transfered to the KPart host */
virtual ASYNC completed();
/** Emitted by the XPart, to be transfered to the KPart host */
- virtual ASYNC canceled( const QString &errMsg );
+ virtual ASYNC canceled( const TQString &errMsg );
// reimplemented from KReadOnlyPart
/** function called by the KPart host to be forwarded to the XPart */
diff --git a/xparts/xpart_notepad/shell_xparthost.cpp b/xparts/xpart_notepad/shell_xparthost.cpp
index bd6a9418..d043d766 100644
--- a/xparts/xpart_notepad/shell_xparthost.cpp
+++ b/xparts/xpart_notepad/shell_xparthost.cpp
@@ -19,7 +19,7 @@ ShellWindow::ShellWindow()
setCentralWidget( m_host->widget() );
- connect(m_host, SIGNAL( actionsInitialized() ), this, SLOT( mergeGUI() ) );
+ connect(m_host, TQT_SIGNAL( actionsInitialized() ), this, TQT_SLOT( mergeGUI() ) );
// Launch our XPart child.
m_partProcess = new KProcess;
@@ -28,11 +28,11 @@ ShellWindow::ShellWindow()
m_partProcess->start();
// Init our Gui
- (void) new KAction( "Hop", 0, this, SLOT(hop()), actionCollection(), "hop" );
- KStdAction::quit( this, SLOT( close() ), actionCollection() );
+ (void) new KAction( "Hop", 0, this, TQT_SLOT(hop()), actionCollection(), "hop" );
+ KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
KSelectAction *s = new KSelectAction( "http://www.kde.org" , 0,
actionCollection(), "location" );
- connect( s, SIGNAL(activated( const QString& ) ), this, SLOT( slotOpenUrl( const QString & ) ) );
+ connect( s, TQT_SIGNAL(activated( const TQString& ) ), this, TQT_SLOT( slotOpenUrl( const TQString & ) ) );
s->setEditable(true);
kdDebug() << "KShell window created" << endl;
@@ -48,7 +48,7 @@ void ShellWindow::hop()
kdDebug() << "hop called!" << endl;
}
-void ShellWindow::slotOpenUrl( const QString &url )
+void ShellWindow::slotOpenUrl( const TQString &url )
{
kdDebug() << "this=" << this;
kdDebug() << "url=" << url << endl;
diff --git a/xparts/xpart_notepad/shell_xparthost.h b/xparts/xpart_notepad/shell_xparthost.h
index 02982326..f65cdf1b 100644
--- a/xparts/xpart_notepad/shell_xparthost.h
+++ b/xparts/xpart_notepad/shell_xparthost.h
@@ -18,7 +18,7 @@ public:
public slots:
void hop();
- void slotOpenUrl( const QString &url );
+ void slotOpenUrl( const TQString &url );
void mergeGUI();
private:
diff --git a/xparts/xpart_notepad/xp_notepad.cpp b/xparts/xpart_notepad/xp_notepad.cpp
index 57173bbb..18295111 100644
--- a/xparts/xpart_notepad/xp_notepad.cpp
+++ b/xparts/xpart_notepad/xp_notepad.cpp
@@ -1,8 +1,8 @@
#include <dcopclient.h>
#include <kapplication.h>
-#include <qmultilineedit.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqmultilineedit.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <stdio.h>
#include <iostream.h>
#include <xpart.h>
@@ -10,7 +10,7 @@
#include "xparthost_stub.h"
-class XPartNotepad : public QMultiLineEdit, virtual public XPart
+class XPartNotepad : public TQMultiLineEdit, virtual public XPart
{
public:
@@ -19,7 +19,7 @@ public:
setText("This is a xpart component editor");
setReadOnly( false );
resize( 200, 200 );
- QMultiLineEdit::setFocus();
+ TQMultiLineEdit::setFocus();
}
/** needed by XPartManager to embed the part */
@@ -28,17 +28,17 @@ public:
/** used by XPartManager to show the part */
void show()
- { printf("show()\n"); QWidget::show(); }
+ { printf("show()\n"); TQWidget::show(); }
/** sent by the XPartHost to query an url */
- bool openURL( const QCString& url )
+ bool openURL( const TQCString& url )
{ printf("openURL %s\n", (const char *) url );
- QFile f(url);
- QString s;
+ TQFile f(url);
+ TQString s;
if ( ! f.open(IO_ReadOnly) ) {
return false;
}
- QTextStream t( &f );
+ TQTextStream t( &f );
while ( !t.eof() ) {
s += t.readLine() + "\n";
}
@@ -56,20 +56,20 @@ public:
* * action, state is used with Toggle actions to
* precise the current state.
* */
- void activateAction( const QString &name, int state )
+ void activateAction( const TQString &name, int state )
{ printf("activateAction: %s, %d\n", name.latin1(), state ); }
/** are extentions available -> browser extension
* / TextEditor ? */
- DCOPRef queryExtension( const QCString& extension )
+ DCOPRef queryExtension( const TQCString& extension )
{ printf("query Extension : %s\n", (const char * ) extension ); return DCOPRef(); }
protected:
- void focusInEvent( QFocusEvent * )
- { kdDebug() << "Focus in" << endl; QMultiLineEdit::setFocus(); }
- void focusOutEvent( QFocusEvent * )
- { kdDebug() << "Focus Out" << endl;QMultiLineEdit::setFocus(); }
+ void focusInEvent( TQFocusEvent * )
+ { kdDebug() << "Focus in" << endl; TQMultiLineEdit::setFocus(); }
+ void focusOutEvent( TQFocusEvent * )
+ { kdDebug() << "Focus Out" << endl;TQMultiLineEdit::setFocus(); }
};
int main( int argc, char **argv )
@@ -84,7 +84,7 @@ int main( int argc, char **argv )
XPartNotepad * xpn = new XPartNotepad("xp_notepad");
app.setMainWidget( xpn );
app.dcopClient()->attach();
- QCString appId = app.dcopClient()->registerAs("xp_notepad", true);
+ TQCString appId = app.dcopClient()->registerAs("xp_notepad", true);
XPartHost_stub xph_stub( argv[1], argv[2] );
DCOPRef xpn_dcopref( xpn );
diff --git a/xparts/xpart_notepad/xp_notepad_factory.cpp b/xparts/xpart_notepad/xp_notepad_factory.cpp
index 9d8757a6..59cf0499 100644
--- a/xparts/xpart_notepad/xp_notepad_factory.cpp
+++ b/xparts/xpart_notepad/xp_notepad_factory.cpp
@@ -38,13 +38,13 @@ extern "C"
};
-KParts::Part *XP_NotepadFactory::createPartObject( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const char *className, const QStringList & )
+KParts::Part *XP_NotepadFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList & )
{
return new XP_NotepadPart( parentWidget, widgetName, parent, name );
}
-XP_NotepadPart::XP_NotepadPart(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name)
+XP_NotepadPart::XP_NotepadPart(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name)
: XPartHost_KPart(parentWidget, widgetName, parent, name)
{
m_partProcess = new KProcess;
@@ -62,7 +62,7 @@ XP_NotepadPart::~XP_NotepadPart()
delete m_partProcess;
}
-void XP_NotepadPart::createActions( const QCString &xmlActions )
+void XP_NotepadPart::createActions( const TQCString &xmlActions )
{
XPartHost_KPart::createActions( xmlActions );
qDebug("----<<<<<< exit loop");
diff --git a/xparts/xpart_notepad/xp_notepad_factory.h b/xparts/xpart_notepad/xp_notepad_factory.h
index 8f112b07..018a5619 100644
--- a/xparts/xpart_notepad/xp_notepad_factory.h
+++ b/xparts/xpart_notepad/xp_notepad_factory.h
@@ -22,7 +22,7 @@
#define __xp_notepad_factory_h__
#include <kparts/factory.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include <kurl.h>
#include "xparthost_kpart.h"
@@ -39,7 +39,7 @@ public:
XP_NotepadFactory( bool clone = false ) {}
virtual ~XP_NotepadFactory() {}
- virtual KParts::Part *createPartObject( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const char *className, const QStringList &args );
+ virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList &args );
};
@@ -50,11 +50,11 @@ class XP_NotepadPart : public XPartHost_KPart
Q_OBJECT
public:
- XP_NotepadPart(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name);
+ XP_NotepadPart(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name);
virtual ~XP_NotepadPart();
- virtual void createActions( const QCString &xmlActions );
+ virtual void createActions( const TQCString &xmlActions );
private:
KProcess *m_partProcess;
};