summaryrefslogtreecommitdiffstats
path: root/xparts/xpart_notepad
diff options
context:
space:
mode:
Diffstat (limited to 'xparts/xpart_notepad')
-rw-r--r--xparts/xpart_notepad/shell_xparthost.cpp4
-rw-r--r--xparts/xpart_notepad/shell_xparthost.h2
-rw-r--r--xparts/xpart_notepad/xp_notepad.cpp28
-rw-r--r--xparts/xpart_notepad/xp_notepad_factory.cpp8
-rw-r--r--xparts/xpart_notepad/xp_notepad_factory.h8
5 files changed, 25 insertions, 25 deletions
diff --git a/xparts/xpart_notepad/shell_xparthost.cpp b/xparts/xpart_notepad/shell_xparthost.cpp
index d043d766..ce3b4e3b 100644
--- a/xparts/xpart_notepad/shell_xparthost.cpp
+++ b/xparts/xpart_notepad/shell_xparthost.cpp
@@ -32,7 +32,7 @@ ShellWindow::ShellWindow()
KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
KSelectAction *s = new KSelectAction( "http://www.kde.org" , 0,
actionCollection(), "location" );
- connect( s, TQT_SIGNAL(activated( const TQString& ) ), this, TQT_SLOT( slotOpenUrl( const TQString & ) ) );
+ connect( s, TQT_SIGNAL(activated( const TTQString& ) ), this, TQT_SLOT( slotOpenUrl( const TTQString & ) ) );
s->setEditable(true);
kdDebug() << "KShell window created" << endl;
@@ -48,7 +48,7 @@ void ShellWindow::hop()
kdDebug() << "hop called!" << endl;
}
-void ShellWindow::slotOpenUrl( const TQString &url )
+void ShellWindow::slotOpenUrl( const TTQString &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 f65cdf1b..89f3e3c4 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 TQString &url );
+ void slotOpenUrl( const TTQString &url );
void mergeGUI();
private:
diff --git a/xparts/xpart_notepad/xp_notepad.cpp b/xparts/xpart_notepad/xp_notepad.cpp
index 5dc7157c..98f9d5dc 100644
--- a/xparts/xpart_notepad/xp_notepad.cpp
+++ b/xparts/xpart_notepad/xp_notepad.cpp
@@ -10,7 +10,7 @@
#include "xparthost_stub.h"
-class XPartNotepad : public TQMultiLineEdit, virtual public XPart
+class XPartNotepad : public TTQMultiLineEdit, virtual public XPart
{
public:
@@ -19,7 +19,7 @@ public:
setText("This is a xpart component editor");
setReadOnly( false );
resize( 200, 200 );
- TQMultiLineEdit::setFocus();
+ TTQMultiLineEdit::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"); TQWidget::show(); }
+ { printf("show()\n"); TTQWidget::show(); }
/** sent by the XPartHost to query an url */
- bool openURL( const TQCString& url )
+ bool openURL( const TTQCString& url )
{ printf("openURL %s\n", (const char *) url );
- TQFile f(url);
- TQString s;
+ TTQFile f(url);
+ TTQString s;
if ( ! f.open(IO_ReadOnly) ) {
return false;
}
- TQTextStream t( &f );
+ TTQTextStream 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 TQString &name, int state )
+ void activateAction( const TTQString &name, int state )
{ printf("activateAction: %s, %d\n", name.latin1(), state ); }
/** are extentions available -> browser extension
* / TextEditor ? */
- DCOPRef queryExtension( const TQCString& extension )
+ DCOPRef queryExtension( const TTQCString& extension )
{ printf("query Extension : %s\n", (const char * ) extension ); return DCOPRef(); }
protected:
- void focusInEvent( TQFocusEvent * )
- { kdDebug() << "Focus in" << endl; TQMultiLineEdit::setFocus(); }
- void focusOutEvent( TQFocusEvent * )
- { kdDebug() << "Focus Out" << endl;TQMultiLineEdit::setFocus(); }
+ void focusInEvent( TTQFocusEvent * )
+ { kdDebug() << "Focus in" << endl; TTQMultiLineEdit::setFocus(); }
+ void focusOutEvent( TTQFocusEvent * )
+ { kdDebug() << "Focus Out" << endl;TTQMultiLineEdit::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();
- TQCString appId = app.dcopClient()->registerAs("xp_notepad", true);
+ TTQCString 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 59cf0499..826ffa77 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( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList & )
+KParts::Part *XP_NotepadFactory::createPartObject( TTQWidget *parentWidget, const char *widgetName, TTQObject *parent, const char *name, const char *className, const TTQStringList & )
{
return new XP_NotepadPart( parentWidget, widgetName, parent, name );
}
-XP_NotepadPart::XP_NotepadPart(TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name)
+XP_NotepadPart::XP_NotepadPart(TTQWidget *parentWidget, const char *widgetName,
+ TTQObject *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 TQCString &xmlActions )
+void XP_NotepadPart::createActions( const TTQCString &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 018a5619..bc0022c2 100644
--- a/xparts/xpart_notepad/xp_notepad_factory.h
+++ b/xparts/xpart_notepad/xp_notepad_factory.h
@@ -39,7 +39,7 @@ public:
XP_NotepadFactory( bool clone = false ) {}
virtual ~XP_NotepadFactory() {}
- virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList &args );
+ virtual KParts::Part *createPartObject( TTQWidget *parentWidget, const char *widgetName, TTQObject *parent, const char *name, const char *className, const TTQStringList &args );
};
@@ -50,11 +50,11 @@ class XP_NotepadPart : public XPartHost_KPart
Q_OBJECT
public:
- XP_NotepadPart(TQWidget *parentWidget, const char *widgetName,
- TQObject *parent, const char *name);
+ XP_NotepadPart(TTQWidget *parentWidget, const char *widgetName,
+ TTQObject *parent, const char *name);
virtual ~XP_NotepadPart();
- virtual void createActions( const TQCString &xmlActions );
+ virtual void createActions( const TTQCString &xmlActions );
private:
KProcess *m_partProcess;
};