summaryrefslogtreecommitdiffstats
path: root/knights/dlg_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/dlg_server.cpp')
-rw-r--r--knights/dlg_server.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/knights/dlg_server.cpp b/knights/dlg_server.cpp
index 89073cb..a04c15e 100644
--- a/knights/dlg_server.cpp
+++ b/knights/dlg_server.cpp
@@ -18,8 +18,8 @@
#include <kicontheme.h>
#include "dlg_server.moc"
-dlg_server::dlg_server(QWidget *parent, const char *name, resource *Rsrc, QString ItemName ) :
- KDialogBase( parent,
+dlg_server::dlg_server(TQWidget *tqparent, const char *name, resource *Rsrc, TQString ItemName ) :
+ KDialogBase( tqparent,
name,
TRUE,
i18n("Configure Server"),
@@ -32,66 +32,66 @@ dlg_server::dlg_server(QWidget *parent, const char *name, resource *Rsrc, QStrin
BOX_Parent = makeVBoxMainWidget();
- BOX_Name = new QGroupBox( 1,
+ BOX_Name = new TQGroupBox( 1,
Qt::Horizontal,
i18n( "Server Name" ),
BOX_Parent );
EDIT_Name = new KLineEdit( BOX_Name );
- BOX_URLPort = new QHBox( BOX_Parent );
- BOX_URL = new QGroupBox( 1,
+ BOX_URLPort = new TQHBox( BOX_Parent );
+ BOX_URL = new TQGroupBox( 1,
Qt::Horizontal,
i18n( "Server URL" ),
BOX_URLPort );
EDIT_URL = new KLineEdit( BOX_URL );
- BOX_Port = new QGroupBox( 1,
+ BOX_Port = new TQGroupBox( 1,
Qt::Horizontal,
i18n( "Server Port" ),
BOX_URLPort );
EDIT_Port = new KLineEdit( BOX_Port );
- BOX_UNameStore = new QHBox( BOX_Parent );
- BOX_UserName = new QGroupBox( 1,
+ BOX_UNameStore = new TQHBox( BOX_Parent );
+ BOX_UserName = new TQGroupBox( 1,
Qt::Horizontal,
i18n( "Username" ),
BOX_UNameStore );
EDIT_UserName = new KLineEdit( BOX_UserName );
- CHECK_StorePass = new QCheckBox( i18n( "Remember My Password" ), BOX_UNameStore );
+ CHECK_StorePass = new TQCheckBox( i18n( "Remember My Password" ), BOX_UNameStore );
- BOX_Pass = new QHBox( BOX_Parent );
- BOX_Password = new QGroupBox( 1,
+ BOX_Pass = new TQHBox( BOX_Parent );
+ BOX_Password = new TQGroupBox( 1,
Qt::Vertical,
i18n( "Password" ),
BOX_Pass );
EDIT_Password = new KLineEdit( BOX_Password );
- EDIT_Password->setEchoMode( QLineEdit::Password );
+ EDIT_Password->setEchoMode( TQLineEdit::Password );
- BOX_PasswordRetype = new QGroupBox( 1,
+ BOX_PasswordRetype = new TQGroupBox( 1,
Qt::Vertical,
i18n( "Confirm Password" ),
BOX_Pass );
EDIT_PasswordRetype = new KLineEdit( BOX_PasswordRetype );
- EDIT_PasswordRetype->setEchoMode( QLineEdit::Password );
+ EDIT_PasswordRetype->setEchoMode( TQLineEdit::Password );
/* Use Timeseal? */
- GROUP_Timeseal = new QGroupBox( 2,
+ GROUP_Timeseal = new TQGroupBox( 2,
Qt::Horizontal,
i18n( "Timeseal" ),
BOX_Parent );
EDIT_Timeseal = new KLineEdit( GROUP_Timeseal );
- BUTTON_Timeseal = new QPushButton( GROUP_Timeseal );
- BUTTON_Timeseal->setPixmap( Resource->LoadIcon( QString( "fileopen" ), KIcon::Toolbar ) );
- connect( BUTTON_Timeseal, SIGNAL( clicked() ), this, SLOT( slot_Timeseal() ) );
+ BUTTON_Timeseal = new TQPushButton( GROUP_Timeseal );
+ BUTTON_Timeseal->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) );
+ connect( BUTTON_Timeseal, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Timeseal() ) );
- BOX_LogFile = new QGroupBox( 2,
+ BOX_LogFile = new TQGroupBox( 2,
Qt::Horizontal,
i18n( "Log File" ),
BOX_Parent );
EDIT_LogFile = new KLineEdit( BOX_LogFile );
- BUTTON_LogFile = new QPushButton( BOX_LogFile );
+ BUTTON_LogFile = new TQPushButton( BOX_LogFile );
setMainWidget( BOX_Parent );
- BUTTON_LogFile->setPixmap( Resource->LoadIcon( QString( "fileopen" ), KIcon::Toolbar ) );
+ BUTTON_LogFile->setPixmap( Resource->LoadIcon( TQString( "fileopen" ), KIcon::Toolbar ) );
EDIT_Name->setMinimumWidth( 120 );
EDIT_URL->setMinimumWidth( 120 );
EDIT_UserName->setMinimumWidth( 120 );
@@ -106,7 +106,7 @@ dlg_server::dlg_server(QWidget *parent, const char *name, resource *Rsrc, QStrin
}
EDIT_Name->setText( (*serversIT).Name );
EDIT_URL->setText( (*serversIT).URL );
- EDIT_Port->setText( QString("").setNum( (*serversIT).Port ) );
+ EDIT_Port->setText( TQString("").setNum( (*serversIT).Port ) );
EDIT_UserName->setText( (*serversIT).UserName );
CHECK_StorePass->setChecked( (*serversIT).StorePass );
EDIT_Password->setText( (*serversIT).Password );
@@ -135,16 +135,16 @@ dlg_server::dlg_server(QWidget *parent, const char *name, resource *Rsrc, QStrin
enableButtonApply( FALSE );
enableButton( Help, TRUE );
- setHelp( QString( "configure-servers" ) );
+ setHelp( TQString( "configure-servers" ) );
/* Make Connections */
- connect( BUTTON_LogFile, SIGNAL( clicked() ), this, SLOT( slotLogFileDialog() ) );
- connect( CHECK_StorePass, SIGNAL( toggled(bool) ), this, SLOT( slotStorePass(bool) ) );
- connect( EDIT_Name, SIGNAL( textChanged( const QString&) ), this, SLOT( slotEnableApply( const QString&) ) );
- connect( EDIT_URL, SIGNAL( textChanged( const QString&) ), this, SLOT( slotEnableApply( const QString&) ) );
- connect( EDIT_Port, SIGNAL( textChanged( const QString&) ), this, SLOT( slotEnableApply( const QString&) ) );
- connect( EDIT_UserName, SIGNAL( textChanged( const QString&) ), this, SLOT( slotEnableApply( const QString&) ) );
- connect( EDIT_Password, SIGNAL( textChanged( const QString&) ), this, SLOT( slotEnableApply( const QString&) ) );
- connect( EDIT_Timeseal, SIGNAL( textChanged( const QString&) ), this, SLOT( slotEnableApply( const QString&) ) );
+ connect( BUTTON_LogFile, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotLogFileDialog() ) );
+ connect( CHECK_StorePass, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotStorePass(bool) ) );
+ connect( EDIT_Name, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_URL, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_Port, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_UserName, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_Password, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_Timeseal, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
show();
}
dlg_server::~dlg_server()
@@ -173,7 +173,7 @@ void dlg_server::slotApply( void )
}
(*serversIT).Name = EDIT_Name->text();
(*serversIT).URL = EDIT_URL->text();
- (*serversIT).Port = QString( EDIT_Port->text() ).toInt();
+ (*serversIT).Port = TQString( EDIT_Port->text() ).toInt();
(*serversIT).UserName = EDIT_UserName->text();
(*serversIT).Password = EDIT_Password->text();
(*serversIT).LogFile = EDIT_LogFile->text();
@@ -190,18 +190,18 @@ void dlg_server::slotCancel( void )
void dlg_server::slotLogFileDialog( void )
{
- QString temp;
+ TQString temp;
- temp = KFileDialog::getOpenFileName( QString::null,
- QString( "*" ),
+ temp = KFileDialog::getOpenFileName( TQString(),
+ TQString( "*" ),
this,
- QString( "Find Log..." ) );
+ TQString( "Find Log..." ) );
if( temp.isEmpty() ) return;
EDIT_LogFile->setText( temp );
enableButtonApply( TRUE );
}
-void dlg_server::slotEnableApply( const QString& )
+void dlg_server::slotEnableApply( const TQString& )
{
enableButtonApply( TRUE );
}
@@ -227,12 +227,12 @@ void dlg_server::slotStorePass( bool )
///////////////////////////////////////
void dlg_server::slot_Timeseal( void )
{
- QString temp;
+ TQString temp;
- temp = KFileDialog::getOpenFileName( QString::null,
- QString( "*" ),
+ temp = KFileDialog::getOpenFileName( TQString(),
+ TQString( "*" ),
0,
- QString( "Find Timeseal..." ) );
+ TQString( "Find Timeseal..." ) );
if( temp.isEmpty() ) return;
EDIT_Timeseal->setText( temp );
enableButtonApply( TRUE );