summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kode/kwsdl/kung
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode/kwsdl/kung')
-rw-r--r--kode/kwsdl/kung/binaryinputfield.cpp66
-rw-r--r--kode/kwsdl/kung/binaryinputfield.h36
-rw-r--r--kode/kwsdl/kung/boolinputfield.cpp24
-rw-r--r--kode/kwsdl/kung/boolinputfield.h16
-rw-r--r--kode/kwsdl/kung/complexbaseinputfield.cpp38
-rw-r--r--kode/kwsdl/kung/complexbaseinputfield.h12
-rw-r--r--kode/kwsdl/kung/conversationmanager.h4
-rw-r--r--kode/kwsdl/kung/dateinputfield.cpp26
-rw-r--r--kode/kwsdl/kung/dateinputfield.h20
-rw-r--r--kode/kwsdl/kung/dispatcher.cpp44
-rw-r--r--kode/kwsdl/kung/dispatcher.h10
-rw-r--r--kode/kwsdl/kung/doubleinputfield.cpp22
-rw-r--r--kode/kwsdl/kung/doubleinputfield.h16
-rw-r--r--kode/kwsdl/kung/enuminputfield.cpp20
-rw-r--r--kode/kwsdl/kung/enuminputfield.h18
-rw-r--r--kode/kwsdl/kung/generalconversationmanager.cpp4
-rw-r--r--kode/kwsdl/kung/generalconversationmanager.h2
-rw-r--r--kode/kwsdl/kung/inputdialog.cpp2
-rw-r--r--kode/kwsdl/kung/inputdialog.h2
-rw-r--r--kode/kwsdl/kung/inputfield.cpp12
-rw-r--r--kode/kwsdl/kung/inputfield.h32
-rw-r--r--kode/kwsdl/kung/inputfieldfactory.cpp4
-rw-r--r--kode/kwsdl/kung/inputfieldfactory.h4
-rw-r--r--kode/kwsdl/kung/integerinputfield.cpp22
-rw-r--r--kode/kwsdl/kung/integerinputfield.h16
-rw-r--r--kode/kwsdl/kung/listinputfield.cpp44
-rw-r--r--kode/kwsdl/kung/listinputfield.h30
-rw-r--r--kode/kwsdl/kung/loader.cpp16
-rw-r--r--kode/kwsdl/kung/loader.h8
-rw-r--r--kode/kwsdl/kung/main.cpp4
-rw-r--r--kode/kwsdl/kung/outputdialog.cpp2
-rw-r--r--kode/kwsdl/kung/outputdialog.h2
-rw-r--r--kode/kwsdl/kung/pageinputfield.cpp30
-rw-r--r--kode/kwsdl/kung/pageinputfield.h16
-rw-r--r--kode/kwsdl/kung/simplebaseinputfield.cpp14
-rw-r--r--kode/kwsdl/kung/simplebaseinputfield.h12
-rw-r--r--kode/kwsdl/kung/stringinputfield.cpp34
-rw-r--r--kode/kwsdl/kung/stringinputfield.h22
-rw-r--r--kode/kwsdl/kung/timeinputfield.cpp26
-rw-r--r--kode/kwsdl/kung/timeinputfield.h20
-rw-r--r--kode/kwsdl/kung/transport.cpp16
-rw-r--r--kode/kwsdl/kung/transport.h16
-rw-r--r--kode/kwsdl/kung/wsclconversationmanager.cpp4
-rw-r--r--kode/kwsdl/kung/wsclconversationmanager.h2
44 files changed, 395 insertions, 395 deletions
diff --git a/kode/kwsdl/kung/binaryinputfield.cpp b/kode/kwsdl/kung/binaryinputfield.cpp
index f83e55b1f..56643b3d2 100644
--- a/kode/kwsdl/kung/binaryinputfield.cpp
+++ b/kode/kwsdl/kung/binaryinputfield.cpp
@@ -29,23 +29,23 @@
#include <kparts/componentfactory.h>
#include <ktempfile.h>
-#include <qfile.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qwidget.h>
+#include <tqfile.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqwidget.h>
#include <schema/simpletype.h>
#include "binaryinputfield.h"
-BinaryInputField::BinaryInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type )
+BinaryInputField::BinaryInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
mValue( 0 ), mTypeName( typeName )
{
}
-void BinaryInputField::setXMLData( const QDomElement &element )
+void BinaryInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "BinaryInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -55,28 +55,28 @@ void BinaryInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void BinaryInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void BinaryInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:" + mTypeName );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void BinaryInputField::setData( const QString &data )
+void BinaryInputField::setData( const TQString &data )
{
KCodecs::base64Decode( data.utf8(), mValue );
}
-QString BinaryInputField::data() const
+TQString BinaryInputField::data() const
{
- QByteArray data = KCodecs::base64Encode( mValue, false );
- return QString::fromUtf8( data.data(), data.size() );
+ TQByteArray data = KCodecs::base64Encode( mValue, false );
+ return TQString::fromUtf8( data.data(), data.size() );
}
-QWidget *BinaryInputField::createWidget( QWidget *parent )
+TQWidget *BinaryInputField::createWidget( TQWidget *parent )
{
mInputWidget = new BinaryWidget( parent );
@@ -86,7 +86,7 @@ QWidget *BinaryInputField::createWidget( QWidget *parent )
return mInputWidget;
}
-void BinaryInputField::valueChanged( const QByteArray &value )
+void BinaryInputField::valueChanged( const TQByteArray &value )
{
mValue = value;
@@ -94,27 +94,27 @@ void BinaryInputField::valueChanged( const QByteArray &value )
}
-BinaryWidget::BinaryWidget( QWidget *parent )
- : QWidget( parent, "BinaryWidget" ),
+BinaryWidget::BinaryWidget( TQWidget *parent )
+ : TQWidget( parent, "BinaryWidget" ),
mMainWidget( 0 )
{
- mLayout = new QGridLayout( this, 3, 2, 11, 6 );
+ mLayout = new TQGridLayout( this, 3, 2, 11, 6 );
- mLoadButton = new QPushButton( i18n( "Load..." ), this );
- mSaveButton = new QPushButton( i18n( "Save..." ), this );
+ mLoadButton = new TQPushButton( i18n( "Load..." ), this );
+ mSaveButton = new TQPushButton( i18n( "Save..." ), this );
mSaveButton->setEnabled( false );
mLayout->addWidget( mLoadButton, 0, 1 );
mLayout->addWidget( mSaveButton, 1, 1 );
- connect( mLoadButton, SIGNAL( clicked() ), SLOT( load() ) );
- connect( mSaveButton, SIGNAL( clicked() ), SLOT( save() ) );
+ connect( mLoadButton, TQT_SIGNAL( clicked() ), TQT_SLOT( load() ) );
+ connect( mSaveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( save() ) );
}
-void BinaryWidget::setData( const QByteArray &data )
+void BinaryWidget::setData( const TQByteArray &data )
{
KMimeMagic magic;
- QString mimetype;
+ TQString mimetype;
delete mMainWidget;
@@ -123,7 +123,7 @@ void BinaryWidget::setData( const QByteArray &data )
mimetype = result->mimeType();
if ( !mimetype.isEmpty() ) {
- KParts::ReadOnlyPart *part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype, QString::null, this, 0, this, 0 );
+ KParts::ReadOnlyPart *part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype, TQString::null, this, 0, this, 0 );
if ( part ) {
KTempFile file;
file.file()->writeBlock( data );
@@ -131,13 +131,13 @@ void BinaryWidget::setData( const QByteArray &data )
part->openURL( KURL( file.name() ) );
mMainWidget = part->widget();
} else {
- mMainWidget = new QLabel( i18n( "No part found for visualization of mimetype %1" ).arg( mimetype ), this );
+ mMainWidget = new TQLabel( i18n( "No part found for visualization of mimetype %1" ).arg( mimetype ), this );
}
mData = data;
mSaveButton->setEnabled( true );
} else {
- mMainWidget = new QLabel( i18n( "Got data of unknown mimetype" ), this );
+ mMainWidget = new TQLabel( i18n( "Got data of unknown mimetype" ), this );
}
mLayout->addMultiCellWidget( mMainWidget, 0, 2, 0, 0 );
@@ -146,19 +146,19 @@ void BinaryWidget::setData( const QByteArray &data )
void BinaryWidget::load()
{
- KURL url = KFileDialog::getOpenURL( QString(), QString(), this );
+ KURL url = KFileDialog::getOpenURL( TQString(), TQString(), this );
if ( url.isEmpty() )
return;
- QString tempFile;
+ TQString tempFile;
if ( KIO::NetAccess::download( url, tempFile, this ) ) {
- QFile file( tempFile );
+ TQFile file( tempFile );
if ( !file.open( IO_ReadOnly ) ) {
KMessageBox::error( this, i18n( "Unable to open file %1" ).arg( url.url() ) );
return;
}
- QByteArray data = file.readAll();
+ TQByteArray data = file.readAll();
setData( data );
file.close();
@@ -171,7 +171,7 @@ void BinaryWidget::load()
void BinaryWidget::save()
{
- KURL url = KFileDialog::getSaveURL( QString(), QString(), this );
+ KURL url = KFileDialog::getSaveURL( TQString(), TQString(), this );
if ( url.isEmpty() )
return;
diff --git a/kode/kwsdl/kung/binaryinputfield.h b/kode/kwsdl/kung/binaryinputfield.h
index eeb721d5f..479828f52 100644
--- a/kode/kwsdl/kung/binaryinputfield.h
+++ b/kode/kwsdl/kung/binaryinputfield.h
@@ -22,7 +22,7 @@
#ifndef BINARY_INPUTFIELD_H
#define BINARY_INPUTFIELD_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "inputfield.h"
@@ -35,24 +35,24 @@ class BinaryInputField : public SimpleInputField
Q_OBJECT
public:
- BinaryInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type );
+ BinaryInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
- void valueChanged( const QByteArray &value );
+ void valueChanged( const TQByteArray &value );
private:
BinaryWidget *mInputWidget;
- QByteArray mValue;
- QString mTypeName;
+ TQByteArray mValue;
+ TQString mTypeName;
};
class BinaryWidget : public QWidget
@@ -60,24 +60,24 @@ class BinaryWidget : public QWidget
Q_OBJECT
public:
- BinaryWidget( QWidget *parent );
+ BinaryWidget( TQWidget *parent );
- void setData( const QByteArray &data );
+ void setData( const TQByteArray &data );
signals:
- void valueChanged( const QByteArray &data );
+ void valueChanged( const TQByteArray &data );
private slots:
void load();
void save();
private:
- QByteArray mData;
+ TQByteArray mData;
- QGridLayout *mLayout;
- QPushButton *mLoadButton;
- QPushButton *mSaveButton;
- QWidget* mMainWidget;
+ TQGridLayout *mLayout;
+ TQPushButton *mLoadButton;
+ TQPushButton *mSaveButton;
+ TQWidget* mMainWidget;
};
#endif
diff --git a/kode/kwsdl/kung/boolinputfield.cpp b/kode/kwsdl/kung/boolinputfield.cpp
index 69e0e8e04..e3eb3eef1 100644
--- a/kode/kwsdl/kung/boolinputfield.cpp
+++ b/kode/kwsdl/kung/boolinputfield.cpp
@@ -19,17 +19,17 @@
Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include "boolinputfield.h"
-BoolInputField::BoolInputField( const QString &name, const Schema::SimpleType *type )
+BoolInputField::BoolInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
mValue( false )
{
}
-void BoolInputField::setXMLData( const QDomElement &element )
+void BoolInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -39,34 +39,34 @@ void BoolInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void BoolInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void BoolInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:boolean" );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void BoolInputField::setData( const QString &data )
+void BoolInputField::setData( const TQString &data )
{
mValue = ( data.lower() == "true" );
}
-QString BoolInputField::data() const
+TQString BoolInputField::data() const
{
return ( mValue ? "true" : "false" );
}
-QWidget *BoolInputField::createWidget( QWidget *parent )
+TQWidget *BoolInputField::createWidget( TQWidget *parent )
{
- mInputWidget = new QCheckBox( parent );
+ mInputWidget = new TQCheckBox( parent );
mInputWidget->setChecked( mValue );
- connect( mInputWidget, SIGNAL( toggled( bool ) ),
- this, SLOT( inputChanged( bool ) ) );
+ connect( mInputWidget, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( inputChanged( bool ) ) );
return mInputWidget;
}
diff --git a/kode/kwsdl/kung/boolinputfield.h b/kode/kwsdl/kung/boolinputfield.h
index 1ba5347b8..f5cd9cf22 100644
--- a/kode/kwsdl/kung/boolinputfield.h
+++ b/kode/kwsdl/kung/boolinputfield.h
@@ -22,7 +22,7 @@
#ifndef BOOL_INPUTFIELD_H
#define BOOL_INPUTFIELD_H
-#include <qobject.h>
+#include <tqobject.h>
#include "inputfield.h"
@@ -33,21 +33,21 @@ class BoolInputField : public SimpleInputField
Q_OBJECT
public:
- BoolInputField( const QString &name, const Schema::SimpleType *type );
+ BoolInputField( const TQString &name, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
void inputChanged( bool );
private:
- QCheckBox *mInputWidget;
+ TQCheckBox *mInputWidget;
bool mValue;
};
diff --git a/kode/kwsdl/kung/complexbaseinputfield.cpp b/kode/kwsdl/kung/complexbaseinputfield.cpp
index 26434940a..80f755817 100644
--- a/kode/kwsdl/kung/complexbaseinputfield.cpp
+++ b/kode/kwsdl/kung/complexbaseinputfield.cpp
@@ -19,9 +19,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <schema/complextype.h>
@@ -29,7 +29,7 @@
#include "complexbaseinputfield.h"
-ComplexBaseInputField::ComplexBaseInputField( const QString &name, const Schema::ComplexType *type )
+ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema::ComplexType *type )
: ComplexInputField( name, type )
{
Schema::Element::List elements = type->elements();
@@ -56,7 +56,7 @@ ComplexBaseInputField::ComplexBaseInputField( const QString &name, const Schema:
}
}
-void ComplexBaseInputField::setXMLData( const QDomElement &element )
+void ComplexBaseInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -68,9 +68,9 @@ void ComplexBaseInputField::setXMLData( const QDomElement &element )
InputField *field = childField( "item" );
field->setXMLData( element );
} else {
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while ( !node.isNull() ) {
- QDomElement child = node.toElement();
+ TQDomElement child = node.toElement();
if ( !child.isNull() ) {
InputField *field = childField( child.tagName() );
if ( !field ) {
@@ -85,10 +85,10 @@ void ComplexBaseInputField::setXMLData( const QDomElement &element )
}
// attributes
- QDomNamedNodeMap nodes = element.attributes();
+ TQDomNamedNodeMap nodes = element.attributes();
for ( uint i = 0; i < nodes.count(); ++i ) {
- QDomNode node = nodes.item( i );
- QDomAttr attr = node.toAttr();
+ TQDomNode node = nodes.item( i );
+ TQDomAttr attr = node.toAttr();
InputField *field = childField( attr.name() );
if ( !field ) {
@@ -99,9 +99,9 @@ void ComplexBaseInputField::setXMLData( const QDomElement &element )
}
}
-void ComplexBaseInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
Schema::Element::List elements = mType->elements();
Schema::Element::List::ConstIterator elemIt;
@@ -128,25 +128,25 @@ void ComplexBaseInputField::xmlData( QDomDocument &document, QDomElement &parent
parent.appendChild( element );
}
-void ComplexBaseInputField::setData( const QString& )
+void ComplexBaseInputField::setData( const TQString& )
{
}
-QString ComplexBaseInputField::data() const
+TQString ComplexBaseInputField::data() const
{
- return QString();
+ return TQString();
}
-QWidget *ComplexBaseInputField::createWidget( QWidget *parent )
+TQWidget *ComplexBaseInputField::createWidget( TQWidget *parent )
{
- QGroupBox *inputWidget = new QGroupBox( mName, parent );
+ TQGroupBox *inputWidget = new TQGroupBox( mName, parent );
inputWidget->setColumnLayout( 0, Qt::Horizontal );
- QGridLayout *layout = new QGridLayout( inputWidget->layout(), 2, 2, 6 );
+ TQGridLayout *layout = new TQGridLayout( inputWidget->layout(), 2, 2, 6 );
InputField::List::Iterator it;
int row = 0;
for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) {
- QLabel *label = new QLabel( (*it)->name(), inputWidget );
+ TQLabel *label = new TQLabel( (*it)->name(), inputWidget );
layout->addWidget( label, row, 0 );
layout->addWidget( (*it)->createWidget( inputWidget ), row, 1 );
}
diff --git a/kode/kwsdl/kung/complexbaseinputfield.h b/kode/kwsdl/kung/complexbaseinputfield.h
index e8d563ae2..9fc47dbc7 100644
--- a/kode/kwsdl/kung/complexbaseinputfield.h
+++ b/kode/kwsdl/kung/complexbaseinputfield.h
@@ -27,15 +27,15 @@
class ComplexBaseInputField : public ComplexInputField
{
public:
- ComplexBaseInputField( const QString &name, const Schema::ComplexType *type );
+ ComplexBaseInputField( const TQString &name, const Schema::ComplexType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
};
#endif
diff --git a/kode/kwsdl/kung/conversationmanager.h b/kode/kwsdl/kung/conversationmanager.h
index 6ef403c7b..74932376f 100644
--- a/kode/kwsdl/kung/conversationmanager.h
+++ b/kode/kwsdl/kung/conversationmanager.h
@@ -22,7 +22,7 @@
#ifndef CONVERSATIONMANAGER_H
#define CONVERSATIONMANAGER_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
class ConversationManager
{
@@ -31,7 +31,7 @@ class ConversationManager
Returns a list of all actions which can be called after the
current action with a special condition.
*/
- virtual QStringList nextActions( const QString &currentAction, const QString &condition = QString() ) = 0;
+ virtual TQStringList nextActions( const TQString &currentAction, const TQString &condition = TQString() ) = 0;
};
#endif
diff --git a/kode/kwsdl/kung/dateinputfield.cpp b/kode/kwsdl/kung/dateinputfield.cpp
index ff60da20f..b38d46b14 100644
--- a/kode/kwsdl/kung/dateinputfield.cpp
+++ b/kode/kwsdl/kung/dateinputfield.cpp
@@ -23,13 +23,13 @@
#include "dateinputfield.h"
-DateInputField::DateInputField( const QString &name, const Schema::SimpleType *type )
+DateInputField::DateInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
- mValue( QDate::currentDate() )
+ mValue( TQDate::currentDate() )
{
}
-void DateInputField::setXMLData( const QDomElement &element )
+void DateInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -39,39 +39,39 @@ void DateInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void DateInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void DateInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:date" );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void DateInputField::setData( const QString &data )
+void DateInputField::setData( const TQString &data )
{
- mValue = QDate::fromString( data, Qt::ISODate );
+ mValue = TQDate::fromString( data, Qt::ISODate );
}
-QString DateInputField::data() const
+TQString DateInputField::data() const
{
return mValue.toString( Qt::ISODate );
}
-QWidget *DateInputField::createWidget( QWidget *parent )
+TQWidget *DateInputField::createWidget( TQWidget *parent )
{
mInputWidget = new KDatePicker( parent );
mInputWidget->setDate( mValue );
- connect( mInputWidget, SIGNAL( dateChanged( QDate ) ),
- this, SLOT( inputChanged( QDate ) ) );
+ connect( mInputWidget, TQT_SIGNAL( dateChanged( TQDate ) ),
+ this, TQT_SLOT( inputChanged( TQDate ) ) );
return mInputWidget;
}
-void DateInputField::inputChanged( QDate date )
+void DateInputField::inputChanged( TQDate date )
{
mValue = date;
diff --git a/kode/kwsdl/kung/dateinputfield.h b/kode/kwsdl/kung/dateinputfield.h
index a42e22102..28efe5e33 100644
--- a/kode/kwsdl/kung/dateinputfield.h
+++ b/kode/kwsdl/kung/dateinputfield.h
@@ -22,8 +22,8 @@
#ifndef DATE_INPUTFIELD_H
#define DATE_INPUTFIELD_H
-#include <qdatetime.h>
-#include <qobject.h>
+#include <tqdatetime.h>
+#include <tqobject.h>
#include "inputfield.h"
@@ -34,22 +34,22 @@ class DateInputField : public SimpleInputField
Q_OBJECT
public:
- DateInputField( const QString &name, const Schema::SimpleType *type );
+ DateInputField( const TQString &name, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
- void inputChanged( QDate );
+ void inputChanged( TQDate );
private:
KDatePicker *mInputWidget;
- QDate mValue;
+ TQDate mValue;
};
#endif
diff --git a/kode/kwsdl/kung/dispatcher.cpp b/kode/kwsdl/kung/dispatcher.cpp
index 79f6bd949..d337d19f3 100644
--- a/kode/kwsdl/kung/dispatcher.cpp
+++ b/kode/kwsdl/kung/dispatcher.cpp
@@ -19,9 +19,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qtimer.h>
-#include <qwidget.h>
+#include <tqapplication.h>
+#include <tqtimer.h>
+#include <tqwidget.h>
#include <kinputdialog.h>
#include <klocale.h>
@@ -37,7 +37,7 @@
#include "dispatcher.h"
Dispatcher::Dispatcher()
- : QObject( 0, "Dispatcher" ),
+ : TQObject( 0, "Dispatcher" ),
mConversationManager( 0 )
{
}
@@ -57,10 +57,10 @@ void Dispatcher::setWSDL( const KWSDL::WSDL &wsdl )
mConversationManager = new GeneralConversationManager( mWSDL );
mTransport = new Transport( mWSDL.service().ports().first().mLocation );
- connect( mTransport, SIGNAL( result( const QString& ) ),
- this, SLOT( result( const QString& ) ) );
- connect( mTransport, SIGNAL( error( const QString& ) ),
- this, SLOT( error( const QString& ) ) );
+ connect( mTransport, TQT_SIGNAL( result( const TQString& ) ),
+ this, TQT_SLOT( result( const TQString& ) ) );
+ connect( mTransport, TQT_SIGNAL( error( const TQString& ) ),
+ this, TQT_SLOT( error( const TQString& ) ) );
}
void Dispatcher::run()
@@ -75,9 +75,9 @@ void Dispatcher::nextMessage()
return;
}
- QStringList items = mConversationManager->nextActions( mLastMessage, QString() );
+ TQStringList items = mConversationManager->nextActions( mLastMessage, TQString() );
- mCurrentMessage = QString();
+ mCurrentMessage = TQString();
if ( items.count() > 1 ) {
mCurrentMessage = KInputDialog::getItem( i18n( "Select a functionality of the service:" ), i18n( "Functions" ),
items );
@@ -91,25 +91,25 @@ void Dispatcher::nextMessage()
KWSDL::Message message = mWSDL.findMessage( mCurrentMessage );
InputField *field = new PageInputField( message.name(), message );
- QWidget *page = field->createWidget( 0 );
+ TQWidget *page = field->createWidget( 0 );
InputDialog dlg( page, 0 );
if ( dlg.exec() ) {
- QDomDocument doc( "kwsdl" );
+ TQDomDocument doc( "kwsdl" );
doc.appendChild( doc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ) );
- QDomElement env = doc.createElement( "SOAP-ENV:Envelope" );
+ TQDomElement env = doc.createElement( "SOAP-ENV:Envelope" );
env.setAttribute( "xmlns:SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/" );
env.setAttribute( "xmlns:xsi", "http://www.w3.org/1999/XMLSchema-instance" );
env.setAttribute( "xmlns:xsd", "http://www.w3.org/1999/XMLSchema" );
doc.appendChild( env );
- QDomElement body = doc.createElement( "SOAP-ENV:Body" );
+ TQDomElement body = doc.createElement( "SOAP-ENV:Body" );
env.appendChild( body );
field->xmlData( doc, body );
- QDomElement method = body.firstChild().toElement();
- QString nameSpace = mWSDL.findBindingOperation( "", message.name() ).input().nameSpace();
+ TQDomElement method = body.firstChild().toElement();
+ TQString nameSpace = mWSDL.findBindingOperation( "", message.name() ).input().nameSpace();
method.setAttribute( "xmlns:ns1", "urn:GoogleSearch" );
method.setAttribute( "SOAP-ENV:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/" );
body.appendChild( method );
@@ -122,32 +122,32 @@ void Dispatcher::nextMessage()
qApp->quit();
}
-void Dispatcher::result( const QString &xml )
+void Dispatcher::result( const TQString &xml )
{
qDebug( "Got data %s", xml.latin1() );
KWSDL::Message message = mWSDL.findOutputMessage( mCurrentMessage );
InputField *field = new PageInputField( message.name(), message );
- QDomDocument doc;
+ TQDomDocument doc;
doc.setContent( xml, true );
field->setXMLData( doc.documentElement().firstChild().firstChild().toElement() );
- QWidget *page = field->createWidget( 0 );
+ TQWidget *page = field->createWidget( 0 );
OutputDialog dlg( page, 0 );
dlg.exec();
mLastMessage = mCurrentMessage;
- QTimer::singleShot( 0, this, SLOT( nextMessage() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( nextMessage() ) );
}
-void Dispatcher::error( const QString &errorMsg )
+void Dispatcher::error( const TQString &errorMsg )
{
KMessageBox::error( 0, errorMsg );
- QTimer::singleShot( 0, this, SLOT( nextMessage() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( nextMessage() ) );
}
#include "dispatcher.moc"
diff --git a/kode/kwsdl/kung/dispatcher.h b/kode/kwsdl/kung/dispatcher.h
index 892635d50..c770fe777 100644
--- a/kode/kwsdl/kung/dispatcher.h
+++ b/kode/kwsdl/kung/dispatcher.h
@@ -22,7 +22,7 @@
#ifndef DISPATCHER_H
#define DISPATCHER_H
-#include <qobject.h>
+#include <tqobject.h>
#include <kwsdl/wsdl.h>
@@ -43,14 +43,14 @@ class Dispatcher : public QObject
private slots:
void nextMessage();
- void result( const QString &xml );
- void error( const QString &errorMsg );
+ void result( const TQString &xml );
+ void error( const TQString &errorMsg );
private:
KWSDL::WSDL mWSDL;
- QString mCurrentMessage;
- QString mLastMessage;
+ TQString mCurrentMessage;
+ TQString mLastMessage;
ConversationManager *mConversationManager;
Transport *mTransport;
};
diff --git a/kode/kwsdl/kung/doubleinputfield.cpp b/kode/kwsdl/kung/doubleinputfield.cpp
index 4c19abf97..78f73bcd6 100644
--- a/kode/kwsdl/kung/doubleinputfield.cpp
+++ b/kode/kwsdl/kung/doubleinputfield.cpp
@@ -25,13 +25,13 @@
#include "doubleinputfield.h"
-DoubleInputField::DoubleInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type )
+DoubleInputField::DoubleInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
mValue( 0 ), mTypeName( typeName )
{
}
-void DoubleInputField::setXMLData( const QDomElement &element )
+void DoubleInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -41,27 +41,27 @@ void DoubleInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void DoubleInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void DoubleInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:" + mTypeName );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void DoubleInputField::setData( const QString &data )
+void DoubleInputField::setData( const TQString &data )
{
mValue = data.toDouble();
}
-QString DoubleInputField::data() const
+TQString DoubleInputField::data() const
{
- return QString::number( mValue );
+ return TQString::number( mValue );
}
-QWidget *DoubleInputField::createWidget( QWidget *parent )
+TQWidget *DoubleInputField::createWidget( TQWidget *parent )
{
mInputWidget = new KDoubleSpinBox( parent );
@@ -78,8 +78,8 @@ QWidget *DoubleInputField::createWidget( QWidget *parent )
mInputWidget->setValue( mValue );
- connect( mInputWidget, SIGNAL( valueChanged( double ) ),
- this, SLOT( inputChanged( double ) ) );
+ connect( mInputWidget, TQT_SIGNAL( valueChanged( double ) ),
+ this, TQT_SLOT( inputChanged( double ) ) );
return mInputWidget;
}
diff --git a/kode/kwsdl/kung/doubleinputfield.h b/kode/kwsdl/kung/doubleinputfield.h
index f1eeb789e..61299a5cc 100644
--- a/kode/kwsdl/kung/doubleinputfield.h
+++ b/kode/kwsdl/kung/doubleinputfield.h
@@ -22,7 +22,7 @@
#ifndef DOUBLE_INPUTFIELD_H
#define DOUBLE_INPUTFIELD_H
-#include <qobject.h>
+#include <tqobject.h>
#include "inputfield.h"
@@ -33,15 +33,15 @@ class DoubleInputField : public SimpleInputField
Q_OBJECT
public:
- DoubleInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type );
+ DoubleInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
void inputChanged( double );
@@ -49,7 +49,7 @@ class DoubleInputField : public SimpleInputField
private:
KDoubleSpinBox *mInputWidget;
double mValue;
- QString mTypeName;
+ TQString mTypeName;
};
#endif
diff --git a/kode/kwsdl/kung/enuminputfield.cpp b/kode/kwsdl/kung/enuminputfield.cpp
index 61ff328d6..f290803b6 100644
--- a/kode/kwsdl/kung/enuminputfield.cpp
+++ b/kode/kwsdl/kung/enuminputfield.cpp
@@ -25,7 +25,7 @@
#include "enuminputfield.h"
-EnumInputField::EnumInputField( const QString &name, const Schema::SimpleType *type )
+EnumInputField::EnumInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type )
{
mEnums = type->facetEnums();
@@ -33,7 +33,7 @@ EnumInputField::EnumInputField( const QString &name, const Schema::SimpleType *t
mValue = mEnums.first();
}
-void EnumInputField::setXMLData( const QDomElement &element )
+void EnumInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -43,35 +43,35 @@ void EnumInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void EnumInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void EnumInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:string" );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void EnumInputField::setData( const QString &data )
+void EnumInputField::setData( const TQString &data )
{
mValue = data;
}
-QString EnumInputField::data() const
+TQString EnumInputField::data() const
{
return mValue;
}
-QWidget *EnumInputField::createWidget( QWidget *parent )
+TQWidget *EnumInputField::createWidget( TQWidget *parent )
{
mInputWidget = new KComboBox( parent );
mInputWidget->insertStringList( mEnums );
mInputWidget->setCurrentItem( mEnums.findIndex( mValue ) );
- connect( mInputWidget, SIGNAL( activated( int ) ),
- this, SLOT( inputChanged( int ) ) );
+ connect( mInputWidget, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( inputChanged( int ) ) );
return mInputWidget;
}
diff --git a/kode/kwsdl/kung/enuminputfield.h b/kode/kwsdl/kung/enuminputfield.h
index 40369273c..14e360332 100644
--- a/kode/kwsdl/kung/enuminputfield.h
+++ b/kode/kwsdl/kung/enuminputfield.h
@@ -22,7 +22,7 @@
#ifndef ENUM_INPUTFIELD_H
#define ENUM_INPUTFIELD_H
-#include <qobject.h>
+#include <tqobject.h>
#include "inputfield.h"
@@ -33,23 +33,23 @@ class EnumInputField : public SimpleInputField
Q_OBJECT
public:
- EnumInputField( const QString &name, const Schema::SimpleType *type );
+ EnumInputField( const TQString &name, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
void inputChanged( int );
private:
KComboBox *mInputWidget;
- QString mValue;
- QStringList mEnums;
+ TQString mValue;
+ TQStringList mEnums;
};
#endif
diff --git a/kode/kwsdl/kung/generalconversationmanager.cpp b/kode/kwsdl/kung/generalconversationmanager.cpp
index 266eca3b3..939935684 100644
--- a/kode/kwsdl/kung/generalconversationmanager.cpp
+++ b/kode/kwsdl/kung/generalconversationmanager.cpp
@@ -39,9 +39,9 @@ GeneralConversationManager::GeneralConversationManager( const KWSDL::WSDL &wsdl
}
}
-QStringList GeneralConversationManager::nextActions( const QString&, const QString& )
+TQStringList GeneralConversationManager::nextActions( const TQString&, const TQString& )
{
- QStringList actions;
+ TQStringList actions;
KWSDL::Message::List::ConstIterator it;
for ( it = mInputMessages.begin(); it != mInputMessages.end(); ++it )
diff --git a/kode/kwsdl/kung/generalconversationmanager.h b/kode/kwsdl/kung/generalconversationmanager.h
index 2f0297577..ea2b52066 100644
--- a/kode/kwsdl/kung/generalconversationmanager.h
+++ b/kode/kwsdl/kung/generalconversationmanager.h
@@ -31,7 +31,7 @@ class GeneralConversationManager : public ConversationManager
public:
GeneralConversationManager( const KWSDL::WSDL &wsdl );
- virtual QStringList nextActions( const QString &currentAction, const QString &condition = QString() );
+ virtual TQStringList nextActions( const TQString &currentAction, const TQString &condition = TQString() );
private:
KWSDL::WSDL mWSDL;
diff --git a/kode/kwsdl/kung/inputdialog.cpp b/kode/kwsdl/kung/inputdialog.cpp
index 2885fdc4b..17aa601b0 100644
--- a/kode/kwsdl/kung/inputdialog.cpp
+++ b/kode/kwsdl/kung/inputdialog.cpp
@@ -23,7 +23,7 @@
#include "inputdialog.h"
-InputDialog::InputDialog( QWidget *page, QWidget *parent )
+InputDialog::InputDialog( TQWidget *page, TQWidget *parent )
: KDialogBase( Swallow, "", Ok | Cancel, Ok, parent, "", true, true )
{
setMainWidget( page );
diff --git a/kode/kwsdl/kung/inputdialog.h b/kode/kwsdl/kung/inputdialog.h
index 10b107c3a..b592545b7 100644
--- a/kode/kwsdl/kung/inputdialog.h
+++ b/kode/kwsdl/kung/inputdialog.h
@@ -27,7 +27,7 @@
class InputDialog : public KDialogBase
{
public:
- InputDialog( QWidget *page, QWidget *parent );
+ InputDialog( TQWidget *page, TQWidget *parent );
};
#endif
diff --git a/kode/kwsdl/kung/inputfield.cpp b/kode/kwsdl/kung/inputfield.cpp
index d4efcbe49..7bdd4cdeb 100644
--- a/kode/kwsdl/kung/inputfield.cpp
+++ b/kode/kwsdl/kung/inputfield.cpp
@@ -24,8 +24,8 @@
#include "inputfield.h"
-InputField::InputField( const QString &name )
- : QObject( 0, QString( "InputField( %1 )" ).arg( name ).latin1() ),
+InputField::InputField( const TQString &name )
+ : TQObject( 0, TQString( "InputField( %1 )" ).arg( name ).latin1() ),
mName( name )
{
}
@@ -39,7 +39,7 @@ InputField::~InputField()
mFields.clear();
}
-QString InputField::name() const
+TQString InputField::name() const
{
return mName;
}
@@ -54,7 +54,7 @@ void InputField::removeChild( InputField *field )
mFields.remove( field );
}
-InputField *InputField::childField( const QString &name ) const
+InputField *InputField::childField( const TQString &name ) const
{
InputField::List::ConstIterator it;
for ( it = mFields.begin(); it != mFields.end(); ++it )
@@ -69,7 +69,7 @@ InputField::List InputField::childFields() const
return mFields;
}
-SimpleInputField::SimpleInputField( const QString &name, const Schema::SimpleType *type )
+SimpleInputField::SimpleInputField( const TQString &name, const Schema::SimpleType *type )
: InputField( name ), mType( 0 )
{
if ( type ) {
@@ -84,7 +84,7 @@ SimpleInputField::~SimpleInputField()
mType = 0;
}
-ComplexInputField::ComplexInputField( const QString &name, const Schema::ComplexType *type )
+ComplexInputField::ComplexInputField( const TQString &name, const Schema::ComplexType *type )
: InputField( name ), mType( 0 )
{
if ( type ) {
diff --git a/kode/kwsdl/kung/inputfield.h b/kode/kwsdl/kung/inputfield.h
index 71030bdaa..1f6242d34 100644
--- a/kode/kwsdl/kung/inputfield.h
+++ b/kode/kwsdl/kung/inputfield.h
@@ -22,10 +22,10 @@
#ifndef INPUTFIELD_H
#define INPUTFIELD_H
-#include <qdom.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqdom.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
class QWidget;
@@ -42,12 +42,12 @@ class InputField : public QObject
Q_OBJECT
public:
- typedef QValueList<InputField*> List;
+ typedef TQValueList<InputField*> List;
/**
Constructs a input field.
*/
- InputField( const QString &name );
+ InputField( const TQString &name );
/**
Destructor.
@@ -57,33 +57,33 @@ class InputField : public QObject
/**
Returns the name of the field.
*/
- QString name() const;
+ TQString name() const;
/**
Sets the xml data of this field.
*/
- virtual void setXMLData( const QDomElement &element ) = 0;
+ virtual void setXMLData( const TQDomElement &element ) = 0;
/**
Returns the xml value of this field.
*/
- virtual void xmlData( QDomDocument &document, QDomElement &parent ) = 0;
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent ) = 0;
/**
Sets the plain data of this field as string.
*/
- virtual void setData( const QString &data ) = 0;
+ virtual void setData( const TQString &data ) = 0;
/**
Returns the data of this field as string.
*/
- virtual QString data() const = 0;
+ virtual TQString data() const = 0;
/**
Returns a pointer to a new created input widget which can be used to
to modify the value.
*/
- virtual QWidget *createWidget( QWidget *parent ) = 0;
+ virtual TQWidget *createWidget( TQWidget *parent ) = 0;
/**
Add a child field.
@@ -99,7 +99,7 @@ class InputField : public QObject
Returns a field with the given name or 0 when no field with this name
exists.
*/
- virtual InputField *childField( const QString &name ) const;
+ virtual InputField *childField( const TQString &name ) const;
/**
Returns a list of all child fields.
@@ -113,7 +113,7 @@ class InputField : public QObject
void modified();
protected:
- QString mName;
+ TQString mName;
InputField::List mFields;
};
@@ -123,7 +123,7 @@ class InputField : public QObject
class SimpleInputField : public InputField
{
public:
- SimpleInputField( const QString &name, const Schema::SimpleType *type );
+ SimpleInputField( const TQString &name, const Schema::SimpleType *type );
~SimpleInputField();
protected:
@@ -136,7 +136,7 @@ class SimpleInputField : public InputField
class ComplexInputField : public InputField
{
public:
- ComplexInputField( const QString &name, const Schema::ComplexType *type );
+ ComplexInputField( const TQString &name, const Schema::ComplexType *type );
~ComplexInputField();
protected:
diff --git a/kode/kwsdl/kung/inputfieldfactory.cpp b/kode/kwsdl/kung/inputfieldfactory.cpp
index 43a844c65..42905aee3 100644
--- a/kode/kwsdl/kung/inputfieldfactory.cpp
+++ b/kode/kwsdl/kung/inputfieldfactory.cpp
@@ -53,7 +53,7 @@ void InputFieldFactory::setTypes( const Schema::Types &types )
mTypes = types;
}
-InputField *InputFieldFactory::createField( const QString &name, const QString &typeName, bool isList )
+InputField *InputFieldFactory::createField( const TQString &name, const TQString &typeName, bool isList )
{
Schema::SimpleType::List simpleTypes = mTypes.simpleTypes();
Schema::SimpleType::List::ConstIterator simpleIt;
@@ -80,7 +80,7 @@ InputField *InputFieldFactory::createField( const QString &name, const QString &
return createBasicField( name, typeName, 0, isList );
}
-InputField *InputFieldFactory::createBasicField( const QString &name, const QString &typeName,
+InputField *InputFieldFactory::createBasicField( const TQString &name, const TQString &typeName,
const Schema::SimpleType *type, bool isList )
{
if ( isList )
diff --git a/kode/kwsdl/kung/inputfieldfactory.h b/kode/kwsdl/kung/inputfieldfactory.h
index 2c1e30eb9..38eae73e1 100644
--- a/kode/kwsdl/kung/inputfieldfactory.h
+++ b/kode/kwsdl/kung/inputfieldfactory.h
@@ -44,12 +44,12 @@ class InputFieldFactory
/**
Creates an input field of the given type with the given name.
*/
- InputField *createField( const QString &name, const QString &typeName, bool isList = false );
+ InputField *createField( const TQString &name, const TQString &typeName, bool isList = false );
/**
Creates an input field of the given type with the given name.
*/
- InputField *createBasicField( const QString &name, const QString &typeName, const Schema::SimpleType *type, bool isList = false );
+ InputField *createBasicField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type, bool isList = false );
/**
Sets the types description, so that the factory can pass
diff --git a/kode/kwsdl/kung/integerinputfield.cpp b/kode/kwsdl/kung/integerinputfield.cpp
index a06136823..022ec0d84 100644
--- a/kode/kwsdl/kung/integerinputfield.cpp
+++ b/kode/kwsdl/kung/integerinputfield.cpp
@@ -27,13 +27,13 @@
#include "integerinputfield.h"
-IntegerInputField::IntegerInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type )
+IntegerInputField::IntegerInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
mValue( 0 ), mTypeName( typeName )
{
}
-void IntegerInputField::setXMLData( const QDomElement &element )
+void IntegerInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -43,27 +43,27 @@ void IntegerInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void IntegerInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void IntegerInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:" + mTypeName );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void IntegerInputField::setData( const QString &data )
+void IntegerInputField::setData( const TQString &data )
{
mValue = data.toInt();
}
-QString IntegerInputField::data() const
+TQString IntegerInputField::data() const
{
- return QString::number( mValue );
+ return TQString::number( mValue );
}
-QWidget *IntegerInputField::createWidget( QWidget *parent )
+TQWidget *IntegerInputField::createWidget( TQWidget *parent )
{
mInputWidget = new KIntSpinBox( parent );
@@ -116,8 +116,8 @@ QWidget *IntegerInputField::createWidget( QWidget *parent )
mInputWidget->setValue( mValue );
- connect( mInputWidget, SIGNAL( valueChanged( int ) ),
- this, SLOT( inputChanged( int ) ) );
+ connect( mInputWidget, TQT_SIGNAL( valueChanged( int ) ),
+ this, TQT_SLOT( inputChanged( int ) ) );
return mInputWidget;
}
diff --git a/kode/kwsdl/kung/integerinputfield.h b/kode/kwsdl/kung/integerinputfield.h
index 6576aa1df..2cda162c6 100644
--- a/kode/kwsdl/kung/integerinputfield.h
+++ b/kode/kwsdl/kung/integerinputfield.h
@@ -22,7 +22,7 @@
#ifndef INTEGER_INPUTFIELD_H
#define INTEGER_INPUTFIELD_H
-#include <qobject.h>
+#include <tqobject.h>
#include "inputfield.h"
@@ -33,15 +33,15 @@ class IntegerInputField : public SimpleInputField
Q_OBJECT
public:
- IntegerInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type );
+ IntegerInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
void inputChanged( int );
@@ -49,7 +49,7 @@ class IntegerInputField : public SimpleInputField
private:
KIntSpinBox *mInputWidget;
int mValue;
- QString mTypeName;
+ TQString mTypeName;
};
#endif
diff --git a/kode/kwsdl/kung/listinputfield.cpp b/kode/kwsdl/kung/listinputfield.cpp
index a812df6a9..6bc1d8240 100644
--- a/kode/kwsdl/kung/listinputfield.cpp
+++ b/kode/kwsdl/kung/listinputfield.cpp
@@ -19,9 +19,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
#include <klocale.h>
@@ -33,12 +33,12 @@
#include "listinputfield.h"
-ListInputField::ListInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type )
+ListInputField::ListInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type )
: SimpleInputField( name, type ), mTypeName( typeName )
{
}
-void ListInputField::setXMLData( const QDomElement &element )
+void ListInputField::setXMLData( const TQDomElement &element )
{
InputField::List::Iterator it;
for ( it = mFields.begin(); it != mFields.end(); ++it ) {
@@ -46,9 +46,9 @@ void ListInputField::setXMLData( const QDomElement &element )
}
mFields.clear();
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while ( !node.isNull() ) {
- QDomElement child = node.toElement();
+ TQDomElement child = node.toElement();
if ( !child.isNull() ) {
InputField *field = InputFieldFactory::self()->createField( name(), mTypeName );
if ( field ) {
@@ -62,7 +62,7 @@ void ListInputField::setXMLData( const QDomElement &element )
}
}
-void ListInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void ListInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
InputField::List::Iterator it;
for ( it = mFields.begin(); it != mFields.end(); ++it ) {
@@ -70,16 +70,16 @@ void ListInputField::xmlData( QDomDocument &document, QDomElement &parent )
}
}
-void ListInputField::setData( const QString& )
+void ListInputField::setData( const TQString& )
{
}
-QString ListInputField::data() const
+TQString ListInputField::data() const
{
- return QString();
+ return TQString();
}
-QWidget *ListInputField::createWidget( QWidget *parent )
+TQWidget *ListInputField::createWidget( TQWidget *parent )
{
mInputWidget = new ListWidget( this, name(), mTypeName, parent );
@@ -87,27 +87,27 @@ QWidget *ListInputField::createWidget( QWidget *parent )
}
-ListWidget::ListWidget( InputField *parentField, const QString &name, const QString &type, QWidget *parent )
- : QWidget( parent ),
+ListWidget::ListWidget( InputField *parentField, const TQString &name, const TQString &type, TQWidget *parent )
+ : TQWidget( parent ),
mParentField( parentField ), mName( name ), mType( type )
{
- QGridLayout *layout = new QGridLayout( this, 4, 2, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( this, 4, 2, 11, 6 );
- mView = new QListBox( this );
+ mView = new TQListBox( this );
layout->addMultiCellWidget( mView, 0, 3, 0, 0 );
- mAddButton = new QPushButton( i18n( "Add" ), this );
+ mAddButton = new TQPushButton( i18n( "Add" ), this );
layout->addWidget( mAddButton, 0, 1 );
- mEditButton = new QPushButton( i18n( "Edit..." ), this );
+ mEditButton = new TQPushButton( i18n( "Edit..." ), this );
layout->addWidget( mEditButton, 1, 1 );
- mRemoveButton = new QPushButton( i18n( "Remove" ), this );
+ mRemoveButton = new TQPushButton( i18n( "Remove" ), this );
layout->addWidget( mRemoveButton, 2, 1 );
- connect( mAddButton, SIGNAL( clicked() ), SLOT( add() ) );
- connect( mEditButton, SIGNAL( clicked() ), SLOT( edit() ) );
- connect( mRemoveButton, SIGNAL( clicked() ), SLOT( remove() ) );
+ connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( add() ) );
+ connect( mEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( edit() ) );
+ connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( remove() ) );
update();
}
diff --git a/kode/kwsdl/kung/listinputfield.h b/kode/kwsdl/kung/listinputfield.h
index 3b3779e25..57430d2e4 100644
--- a/kode/kwsdl/kung/listinputfield.h
+++ b/kode/kwsdl/kung/listinputfield.h
@@ -22,7 +22,7 @@
#ifndef LIST_INPUTFIELD_H
#define LIST_INPUTFIELD_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "inputfield.h"
@@ -35,19 +35,19 @@ class ListInputField : public SimpleInputField
Q_OBJECT
public:
- ListInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type );
+ ListInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private:
ListWidget *mInputWidget;
- QString mTypeName;
+ TQString mTypeName;
};
class ListWidget : public QWidget
@@ -55,7 +55,7 @@ class ListWidget : public QWidget
Q_OBJECT
public:
- ListWidget( InputField *parentField, const QString &name, const QString &type, QWidget *parent );
+ ListWidget( InputField *parentField, const TQString &name, const TQString &type, TQWidget *parent );
void update();
@@ -68,13 +68,13 @@ class ListWidget : public QWidget
void updateButtons();
InputField *mParentField;
- QString mName;
- QString mType;
+ TQString mName;
+ TQString mType;
- QListBox *mView;
- QPushButton *mAddButton;
- QPushButton *mEditButton;
- QPushButton *mRemoveButton;
+ TQListBox *mView;
+ TQPushButton *mAddButton;
+ TQPushButton *mEditButton;
+ TQPushButton *mRemoveButton;
};
#endif
diff --git a/kode/kwsdl/kung/loader.cpp b/kode/kwsdl/kung/loader.cpp
index 1b13549fa..8b0281ac8 100644
--- a/kode/kwsdl/kung/loader.cpp
+++ b/kode/kwsdl/kung/loader.cpp
@@ -19,7 +19,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qfile.h>
+#include <tqfile.h>
#include <schema/fileprovider.h>
@@ -28,11 +28,11 @@
#include "loader.h"
Loader::Loader()
- : QObject( 0, "KWSDL::Loader" )
+ : TQObject( 0, "KWSDL::Loader" )
{
}
-void Loader::setWSDLUrl( const QString &wsdlUrl )
+void Loader::setWSDLUrl( const TQString &wsdlUrl )
{
mWSDLUrl = wsdlUrl;
mWSDLBaseUrl = mWSDLUrl.left( mWSDLUrl.findRev( '/' ) );
@@ -49,18 +49,18 @@ void Loader::download()
{
Schema::FileProvider provider;
- QString fileName;
+ TQString fileName;
if ( provider.get( mWSDLUrl, fileName ) ) {
- QFile file( fileName );
+ TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) ) {
qDebug( "Unable to download wsdl file %s", mWSDLUrl.latin1() );
provider.cleanUp();
return;
}
- QString errorMsg;
+ TQString errorMsg;
int errorLine, errorCol;
- QDomDocument doc;
+ TQDomDocument doc;
if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) {
qDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol );
return;
@@ -72,7 +72,7 @@ void Loader::download()
}
}
-void Loader::parse( const QDomElement &element )
+void Loader::parse( const TQDomElement &element )
{
mParser.parse( element );
execute();
diff --git a/kode/kwsdl/kung/loader.h b/kode/kwsdl/kung/loader.h
index 2229eb23a..7762e292a 100644
--- a/kode/kwsdl/kung/loader.h
+++ b/kode/kwsdl/kung/loader.h
@@ -33,21 +33,21 @@ class Loader : public QObject
public:
Loader();
- void setWSDLUrl( const QString &wsdlUrl );
+ void setWSDLUrl( const TQString &wsdlUrl );
public slots:
void run();
private slots:
void download();
- void parse( const QDomElement& );
+ void parse( const TQDomElement& );
void execute();
private:
- QString mWSDLUrl;
+ TQString mWSDLUrl;
KWSDL::Parser mParser;
- QString mWSDLBaseUrl;
+ TQString mWSDLBaseUrl;
Dispatcher *mDispatcher;
};
diff --git a/kode/kwsdl/kung/main.cpp b/kode/kwsdl/kung/main.cpp
index 92de443ff..b01f04dc2 100644
--- a/kode/kwsdl/kung/main.cpp
+++ b/kode/kwsdl/kung/main.cpp
@@ -25,7 +25,7 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "loader.h"
@@ -58,7 +58,7 @@ int main( int argc, char **argv )
Loader loader;
loader.setWSDLUrl( args->url( 0 ).path() );
- QTimer::singleShot( 0, &loader, SLOT( run() ) );
+ TQTimer::singleShot( 0, &loader, TQT_SLOT( run() ) );
return app.exec();
}
diff --git a/kode/kwsdl/kung/outputdialog.cpp b/kode/kwsdl/kung/outputdialog.cpp
index 7a04db478..6cdb7e579 100644
--- a/kode/kwsdl/kung/outputdialog.cpp
+++ b/kode/kwsdl/kung/outputdialog.cpp
@@ -23,7 +23,7 @@
#include "outputdialog.h"
-OutputDialog::OutputDialog( QWidget *page, QWidget *parent )
+OutputDialog::OutputDialog( TQWidget *page, TQWidget *parent )
: KDialogBase( Swallow, "", Ok, Ok, parent, "", true, true )
{
setMainWidget( page );
diff --git a/kode/kwsdl/kung/outputdialog.h b/kode/kwsdl/kung/outputdialog.h
index e671e0841..a3c558789 100644
--- a/kode/kwsdl/kung/outputdialog.h
+++ b/kode/kwsdl/kung/outputdialog.h
@@ -27,7 +27,7 @@
class OutputDialog : public KDialogBase
{
public:
- OutputDialog( QWidget *page, QWidget *parent );
+ OutputDialog( TQWidget *page, TQWidget *parent );
};
#endif
diff --git a/kode/kwsdl/kung/pageinputfield.cpp b/kode/kwsdl/kung/pageinputfield.cpp
index 36a5b02da..956e54bfc 100644
--- a/kode/kwsdl/kung/pageinputfield.cpp
+++ b/kode/kwsdl/kung/pageinputfield.cpp
@@ -19,14 +19,14 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include "inputfieldfactory.h"
#include "pageinputfield.h"
-PageInputField::PageInputField( const QString &name, const KWSDL::Message &message )
+PageInputField::PageInputField( const TQString &name, const KWSDL::Message &message )
: InputField( name ),
mMessage( message )
{
@@ -42,16 +42,16 @@ PageInputField::PageInputField( const QString &name, const KWSDL::Message &messa
}
}
-void PageInputField::setXMLData( const QDomElement &element )
+void PageInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
return;
}
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while ( !node.isNull() ) {
- QDomElement child = node.toElement();
+ TQDomElement child = node.toElement();
if ( !child.isNull() ) {
InputField *field = childField( child.tagName() );
if ( !field ) {
@@ -65,9 +65,9 @@ void PageInputField::setXMLData( const QDomElement &element )
}
}
-void PageInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void PageInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( "ns1:" + mName );
+ TQDomElement element = document.createElement( "ns1:" + mName );
InputField::List::Iterator it;
for ( it = mFields.begin(); it != mFields.end(); ++it )
@@ -76,24 +76,24 @@ void PageInputField::xmlData( QDomDocument &document, QDomElement &parent )
parent.appendChild( element );
}
-void PageInputField::setData( const QString& )
+void PageInputField::setData( const TQString& )
{
}
-QString PageInputField::data() const
+TQString PageInputField::data() const
{
- return QString();
+ return TQString();
}
-QWidget *PageInputField::createWidget( QWidget *parent )
+TQWidget *PageInputField::createWidget( TQWidget *parent )
{
- QWidget *mInputWidget = new QWidget( parent, "PageInputWidget" );
- QGridLayout *layout = new QGridLayout( mInputWidget, 2, 2, 11, 6 );
+ TQWidget *mInputWidget = new TQWidget( parent, "PageInputWidget" );
+ TQGridLayout *layout = new TQGridLayout( mInputWidget, 2, 2, 11, 6 );
InputField::List::Iterator it;
int row = 0;
for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) {
- QLabel *label = new QLabel( (*it)->name(), mInputWidget );
+ TQLabel *label = new TQLabel( (*it)->name(), mInputWidget );
label->setAlignment( Qt::AlignTop );
layout->addWidget( label, row, 0 );
layout->addWidget( (*it)->createWidget( mInputWidget ), row, 1 );
diff --git a/kode/kwsdl/kung/pageinputfield.h b/kode/kwsdl/kung/pageinputfield.h
index c63e97aeb..152d337ed 100644
--- a/kode/kwsdl/kung/pageinputfield.h
+++ b/kode/kwsdl/kung/pageinputfield.h
@@ -22,7 +22,7 @@
#ifndef PAGE_INPUTFIELD_H
#define PAGE_INPUTFIELD_H
-#include <qobject.h>
+#include <tqobject.h>
#include <kwsdl/message.h>
@@ -33,18 +33,18 @@ class PageInputField : public InputField
Q_OBJECT
public:
- PageInputField( const QString &name, const KWSDL::Message &message );
+ PageInputField( const TQString &name, const KWSDL::Message &message );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private:
- QWidget *mInputWidget;
+ TQWidget *mInputWidget;
const KWSDL::Message mMessage;
};
diff --git a/kode/kwsdl/kung/simplebaseinputfield.cpp b/kode/kwsdl/kung/simplebaseinputfield.cpp
index f9cb1bd56..0198723cf 100644
--- a/kode/kwsdl/kung/simplebaseinputfield.cpp
+++ b/kode/kwsdl/kung/simplebaseinputfield.cpp
@@ -25,7 +25,7 @@
#include "simplebaseinputfield.h"
-SimpleBaseInputField::SimpleBaseInputField( const QString &name, const Schema::SimpleType *type )
+SimpleBaseInputField::SimpleBaseInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type )
{
if ( type->subType() == Schema::SimpleType::TypeRestriction ) {
@@ -40,7 +40,7 @@ SimpleBaseInputField::SimpleBaseInputField( const QString &name, const Schema::S
}
}
-void SimpleBaseInputField::setXMLData( const QDomElement &element )
+void SimpleBaseInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "SimpleBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -59,7 +59,7 @@ void SimpleBaseInputField::setXMLData( const QDomElement &element )
}
}
-void SimpleBaseInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void SimpleBaseInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first();
@@ -73,7 +73,7 @@ void SimpleBaseInputField::xmlData( QDomDocument &document, QDomElement &parent
}
}
-void SimpleBaseInputField::setData( const QString &data )
+void SimpleBaseInputField::setData( const TQString &data )
{
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first();
@@ -87,7 +87,7 @@ void SimpleBaseInputField::setData( const QString &data )
}
}
-QString SimpleBaseInputField::data() const
+TQString SimpleBaseInputField::data() const
{
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first();
@@ -100,10 +100,10 @@ QString SimpleBaseInputField::data() const
qDebug( "SimpleBaseInputField: Unsupported subtype" );
}
- return QString();
+ return TQString();
}
-QWidget *SimpleBaseInputField::createWidget( QWidget *parent )
+TQWidget *SimpleBaseInputField::createWidget( TQWidget *parent )
{
if ( mType->subType() == Schema::SimpleType::TypeRestriction ) {
InputField *field = mFields.first();
diff --git a/kode/kwsdl/kung/simplebaseinputfield.h b/kode/kwsdl/kung/simplebaseinputfield.h
index 7af65ab37..dab7e906c 100644
--- a/kode/kwsdl/kung/simplebaseinputfield.h
+++ b/kode/kwsdl/kung/simplebaseinputfield.h
@@ -27,15 +27,15 @@
class SimpleBaseInputField : public SimpleInputField
{
public:
- SimpleBaseInputField( const QString &name, const Schema::SimpleType *type );
+ SimpleBaseInputField( const TQString &name, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
};
#endif
diff --git a/kode/kwsdl/kung/stringinputfield.cpp b/kode/kwsdl/kung/stringinputfield.cpp
index e0dc10ccc..390c5bc1b 100644
--- a/kode/kwsdl/kung/stringinputfield.cpp
+++ b/kode/kwsdl/kung/stringinputfield.cpp
@@ -19,20 +19,20 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlineedit.h>
-#include <qvalidator.h>
+#include <tqlineedit.h>
+#include <tqvalidator.h>
#include <schema/simpletype.h>
#include "stringinputfield.h"
-StringInputField::StringInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type )
+StringInputField::StringInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
mTypeName( typeName )
{
}
-void StringInputField::setXMLData( const QDomElement &element )
+void StringInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -42,36 +42,36 @@ void StringInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void StringInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void StringInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:" + mTypeName );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void StringInputField::setData( const QString &data )
+void StringInputField::setData( const TQString &data )
{
mValue = data;
}
-QString StringInputField::data() const
+TQString StringInputField::data() const
{
return mValue;
}
-QWidget *StringInputField::createWidget( QWidget *parent )
+TQWidget *StringInputField::createWidget( TQWidget *parent )
{
- mInputWidget = new QLineEdit( parent );
+ mInputWidget = new TQLineEdit( parent );
if ( mType ) {
- if ( mType->facetType() & Schema::SimpleType::LENGTH ) // TODO: using QValidator here?
+ if ( mType->facetType() & Schema::SimpleType::LENGTH ) // TODO: using TQValidator here?
mInputWidget->setMaxLength( mType->facetLength() );
if ( mType->facetType() & Schema::SimpleType::MINLEN ) {
- // TODO: using QValidator here?
+ // TODO: using TQValidator here?
// mInputWidget->setMaxLength( type->facetMinimumLength() );
}
@@ -79,18 +79,18 @@ QWidget *StringInputField::createWidget( QWidget *parent )
mInputWidget->setMaxLength( mType->facetMaximumLength() );
if ( mType->facetType() & Schema::SimpleType::PATTERN )
- mInputWidget->setValidator( new QRegExpValidator( mType->facetPattern(), mInputWidget ) );
+ mInputWidget->setValidator( new TQRegExpValidator( mType->facetPattern(), mInputWidget ) );
}
mInputWidget->setText( mValue );
- connect( mInputWidget, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( inputChanged( const QString& ) ) );
+ connect( mInputWidget, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( inputChanged( const TQString& ) ) );
return mInputWidget;
}
-void StringInputField::inputChanged( const QString &text )
+void StringInputField::inputChanged( const TQString &text )
{
mValue = text;
diff --git a/kode/kwsdl/kung/stringinputfield.h b/kode/kwsdl/kung/stringinputfield.h
index 2713dded8..0ef30164d 100644
--- a/kode/kwsdl/kung/stringinputfield.h
+++ b/kode/kwsdl/kung/stringinputfield.h
@@ -22,7 +22,7 @@
#ifndef STRING_INPUTFIELD_H
#define STRING_INPUTFIELD_H
-#include <qobject.h>
+#include <tqobject.h>
#include "inputfield.h"
@@ -33,23 +33,23 @@ class StringInputField : public SimpleInputField
Q_OBJECT
public:
- StringInputField( const QString &name, const QString &typeName, const Schema::SimpleType *type );
+ StringInputField( const TQString &name, const TQString &typeName, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
- void inputChanged( const QString& );
+ void inputChanged( const TQString& );
private:
- QLineEdit *mInputWidget;
- QString mValue;
- QString mTypeName;
+ TQLineEdit *mInputWidget;
+ TQString mValue;
+ TQString mTypeName;
};
#endif
diff --git a/kode/kwsdl/kung/timeinputfield.cpp b/kode/kwsdl/kung/timeinputfield.cpp
index 0864b8c17..9da18a0cc 100644
--- a/kode/kwsdl/kung/timeinputfield.cpp
+++ b/kode/kwsdl/kung/timeinputfield.cpp
@@ -23,13 +23,13 @@
#include "timeinputfield.h"
-TimeInputField::TimeInputField( const QString &name, const Schema::SimpleType *type )
+TimeInputField::TimeInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
- mValue( QTime::currentTime() )
+ mValue( TQTime::currentTime() )
{
}
-void TimeInputField::setXMLData( const QDomElement &element )
+void TimeInputField::setXMLData( const TQDomElement &element )
{
if ( mName != element.tagName() ) {
qDebug( "TimeInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() );
@@ -39,39 +39,39 @@ void TimeInputField::setXMLData( const QDomElement &element )
setData( element.text() );
}
-void TimeInputField::xmlData( QDomDocument &document, QDomElement &parent )
+void TimeInputField::xmlData( TQDomDocument &document, TQDomElement &parent )
{
- QDomElement element = document.createElement( mName );
+ TQDomElement element = document.createElement( mName );
element.setAttribute( "xsi:type", "xsd:time" );
- QDomText text = document.createTextNode( data() );
+ TQDomText text = document.createTextNode( data() );
element.appendChild( text );
parent.appendChild( element );
}
-void TimeInputField::setData( const QString &data )
+void TimeInputField::setData( const TQString &data )
{
- mValue = QTime::fromString( data, Qt::ISODate );
+ mValue = TQTime::fromString( data, Qt::ISODate );
}
-QString TimeInputField::data() const
+TQString TimeInputField::data() const
{
return mValue.toString( Qt::ISODate );
}
-QWidget *TimeInputField::createWidget( QWidget *parent )
+TQWidget *TimeInputField::createWidget( TQWidget *parent )
{
mInputWidget = new KTimeWidget( parent );
mInputWidget->setTime( mValue );
- connect( mInputWidget, SIGNAL( valueChanged( const QTime& ) ),
- this, SLOT( inputChanged( const QTime& ) ) );
+ connect( mInputWidget, TQT_SIGNAL( valueChanged( const TQTime& ) ),
+ this, TQT_SLOT( inputChanged( const TQTime& ) ) );
return mInputWidget;
}
-void TimeInputField::inputChanged( const QTime &time )
+void TimeInputField::inputChanged( const TQTime &time )
{
mValue = time;
diff --git a/kode/kwsdl/kung/timeinputfield.h b/kode/kwsdl/kung/timeinputfield.h
index 6edf9540e..c363151de 100644
--- a/kode/kwsdl/kung/timeinputfield.h
+++ b/kode/kwsdl/kung/timeinputfield.h
@@ -22,8 +22,8 @@
#ifndef TIME_INPUTFIELD_H
#define TIME_INPUTFIELD_H
-#include <qdatetime.h>
-#include <qobject.h>
+#include <tqdatetime.h>
+#include <tqobject.h>
#include "inputfield.h"
@@ -34,22 +34,22 @@ class TimeInputField : public SimpleInputField
Q_OBJECT
public:
- TimeInputField( const QString &name, const Schema::SimpleType *type );
+ TimeInputField( const TQString &name, const Schema::SimpleType *type );
- virtual void setXMLData( const QDomElement &element );
- virtual void xmlData( QDomDocument &document, QDomElement &parent );
+ virtual void setXMLData( const TQDomElement &element );
+ virtual void xmlData( TQDomDocument &document, TQDomElement &parent );
- virtual void setData( const QString &data );
- virtual QString data() const;
+ virtual void setData( const TQString &data );
+ virtual TQString data() const;
- virtual QWidget *createWidget( QWidget *parent );
+ virtual TQWidget *createWidget( TQWidget *parent );
private slots:
- void inputChanged( const QTime& );
+ void inputChanged( const TQTime& );
private:
KTimeWidget *mInputWidget;
- QTime mValue;
+ TQTime mValue;
};
#endif
diff --git a/kode/kwsdl/kung/transport.cpp b/kode/kwsdl/kung/transport.cpp
index 5cb414c99..fd7e545e1 100644
--- a/kode/kwsdl/kung/transport.cpp
+++ b/kode/kwsdl/kung/transport.cpp
@@ -22,18 +22,18 @@
#include <kdebug.h>
-Transport::Transport( const QString &url )
+Transport::Transport( const TQString &url )
{
mUrl = url;
qDebug( "url=%s", url.latin1() );
}
-void Transport::query( const QString &xml )
+void Transport::query( const TQString &xml )
{
mData.truncate( 0 );
- QByteArray postData;
- QDataStream stream( postData, IO_WriteOnly );
+ TQByteArray postData;
+ TQDataStream stream( postData, IO_WriteOnly );
stream.writeRawBytes( xml.utf8(), xml.utf8().length() );
KIO::TransferJob* job = KIO::http_post( KURL( mUrl ), postData, false );
@@ -45,11 +45,11 @@ void Transport::query( const QString &xml )
job->addMetaData( "UserAgent", "KDE Kung" );
job->addMetaData( "content-type", "Content-Type: text/xml; charset=utf-8" );
- connect( job, SIGNAL( data( KIO::Job*, const QByteArray& ) ), this, SLOT( slotData( KIO::Job*, const QByteArray& ) ) );
- connect( job, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotResult( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray& ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotResult( KIO::Job* ) ) );
}
-void Transport::slotData( KIO::Job*, const QByteArray &data )
+void Transport::slotData( KIO::Job*, const TQByteArray &data )
{
unsigned int oldSize = mData.size();
mData.resize( oldSize + data.size() );
@@ -61,7 +61,7 @@ void Transport::slotResult( KIO::Job* job )
if ( job->error() != 0 )
emit error( job->errorText() );
else
- emit result( QString::fromUtf8( mData.data(), mData.size() ) );
+ emit result( TQString::fromUtf8( mData.data(), mData.size() ) );
}
diff --git a/kode/kwsdl/kung/transport.h b/kode/kwsdl/kung/transport.h
index 5b7662fe1..240755d18 100644
--- a/kode/kwsdl/kung/transport.h
+++ b/kode/kwsdl/kung/transport.h
@@ -20,7 +20,7 @@
#ifndef TRANSPORT_H
#define TRANSPORT_H
-#include <qobject.h>
+#include <tqobject.h>
#include <kio/job.h>
class Transport : public QObject
@@ -28,20 +28,20 @@ class Transport : public QObject
Q_OBJECT
public:
- Transport( const QString &url );
- void query( const QString &xml );
+ Transport( const TQString &url );
+ void query( const TQString &xml );
signals:
- void result( const QString &xml );
- void error( const QString &errorMsg );
+ void result( const TQString &xml );
+ void error( const TQString &errorMsg );
private slots:
- void slotData( KIO::Job*, const QByteArray &data );
+ void slotData( KIO::Job*, const TQByteArray &data );
void slotResult( KIO::Job* job );
private:
- QString mUrl;
- QByteArray mData;
+ TQString mUrl;
+ TQByteArray mData;
};
#endif
diff --git a/kode/kwsdl/kung/wsclconversationmanager.cpp b/kode/kwsdl/kung/wsclconversationmanager.cpp
index c553edee6..b4f4f9c73 100644
--- a/kode/kwsdl/kung/wsclconversationmanager.cpp
+++ b/kode/kwsdl/kung/wsclconversationmanager.cpp
@@ -35,7 +35,7 @@ void WSCLConversationManager::setConversation( const WSCL::Conversation &convers
mConversation = conversation;
}
-QStringList WSCLConversationManager::nextActions( const QString &currentAction, const QString &condition )
+TQStringList WSCLConversationManager::nextActions( const TQString &currentAction, const TQString &condition )
{
WSCL::Transition::List transitions = mConversation.transitions();
WSCL::Transition::List::ConstIterator it;
@@ -46,5 +46,5 @@ QStringList WSCLConversationManager::nextActions( const QString &currentAction,
}
}
- return QStringList();
+ return TQStringList();
}
diff --git a/kode/kwsdl/kung/wsclconversationmanager.h b/kode/kwsdl/kung/wsclconversationmanager.h
index eb02ab708..cdd19f312 100644
--- a/kode/kwsdl/kung/wsclconversationmanager.h
+++ b/kode/kwsdl/kung/wsclconversationmanager.h
@@ -34,7 +34,7 @@ class WSCLConversationManager : public ConversationManager
void setConversation( const WSCL::Conversation &conversation );
- QStringList nextActions( const QString &currentAction, const QString &condition = QString() );
+ TQStringList nextActions( const TQString &currentAction, const TQString &condition = TQString() );
private:
WSCL::Conversation mConversation;