diff options
author | Timothy Pearson <[email protected]> | 2011-12-06 14:15:01 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-06 14:15:01 -0600 |
commit | 1b89319fd93b88313cab40f1e9de24c067b04efb (patch) | |
tree | 80132996de993c3dcab4040864d7729842875b2d /src/newprofiledialog.cpp | |
parent | d08a0ede1d2cb15bb14b0ff75eacf5c682b1fa0a (diff) | |
download | kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.tar.gz kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.zip |
Initial TQt conversion
Diffstat (limited to 'src/newprofiledialog.cpp')
-rw-r--r-- | src/newprofiledialog.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/newprofiledialog.cpp b/src/newprofiledialog.cpp index f9cb763..8fc7d21 100644 --- a/src/newprofiledialog.cpp +++ b/src/newprofiledialog.cpp @@ -21,18 +21,18 @@ #include "newprofiledialog.h" #include <kcombobox.h> #include <klineedit.h> -#include <qcheckbox.h> +#include <tqcheckbox.h> #include <kurlrequester.h> #include <kmessagebox.h> -#include <qlistbox.h> +#include <tqlistbox.h> #include <klineedit.h> #include <klineeditdlg.h> #include <klocale.h> #include <knuminput.h> -#include <qobject.h> +#include <tqobject.h> #include <ktextedit.h> -#include <qlabel.h> +#include <tqlabel.h> #include "utils.h" @@ -43,7 +43,7 @@ //END includes -NewProfileDialog::NewProfileDialog( QApplication *app,QWidget *parent, const QString& caption, KVpncConfig *GlobalConfig) +NewProfileDialog::NewProfileDialog( TQApplication *app,TQWidget *parent, const TQString& caption, KVpncConfig *GlobalConfig) : KDialogBase( parent, "New_profile", true, caption, KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) { @@ -51,16 +51,16 @@ NewProfileDialog::NewProfileDialog( QApplication *app,QWidget *parent, const QSt main = new NewProfileDialogbase(this); setMainWidget(main); - main->setMinimumSize(main->sizeHint()); - - connect( main->ConnectionTypeComboBox, SIGNAL( activated( const QString& ) ), this, SLOT( connectiontypeChanged( const QString& ) ) ); - connect( main->AuthTypeComboBox , SIGNAL( activated( const QString& ) ), this, SLOT( authTypeChanged( const QString& ) ) ); - // connect( main->buttonCancel , SIGNAL( clicked () ), this, SLOT( reject() ) ); - connect( main->ImportCertificatePushButton, SIGNAL( clicked () ), this, SLOT( importCertificate() ) ); - connect( main->AdvancedSettingsPushButton, SIGNAL( clicked () ), this, SLOT( advancedSettingsClicked() ) ); - connect( main->ImportPcfProfilePushButton , SIGNAL( clicked () ), this, SLOT( importPcfFileClicked() ) ); - connect( main->GroupPasswordEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( groupPasswordContentChanged() ) ); - connect( main->PasswordEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( passwordContentChanged() ) ); + main->setMinimumSize(main->tqsizeHint()); + + connect( main->ConnectionTypeComboBox, TQT_SIGNAL( activated( const TQString& ) ), this, TQT_SLOT( connectiontypeChanged( const TQString& ) ) ); + connect( main->AuthTypeComboBox , TQT_SIGNAL( activated( const TQString& ) ), this, TQT_SLOT( authTypeChanged( const TQString& ) ) ); + // connect( main->buttonCancel , TQT_SIGNAL( clicked () ), this, TQT_SLOT( reject() ) ); + connect( main->ImportCertificatePushButton, TQT_SIGNAL( clicked () ), this, TQT_SLOT( importCertificate() ) ); + connect( main->AdvancedSettingsPushButton, TQT_SIGNAL( clicked () ), this, TQT_SLOT( advancedSettingsClicked() ) ); + connect( main->ImportPcfProfilePushButton , TQT_SIGNAL( clicked () ), this, TQT_SLOT( importPcfFileClicked() ) ); + connect( main->GroupPasswordEdit, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( groupPasswordContentChanged() ) ); + connect( main->PasswordEdit, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( passwordContentChanged() ) ); newProfileCreated = FALSE; Name = ""; @@ -127,11 +127,11 @@ NewProfileDialog::NewProfileDialog( QApplication *app,QWidget *parent, const QSt NetworkInterface iface(GlobalConfig,app); - QStringList list = iface.getAllNetworkInterfaces(); + TQStringList list = iface.getAllNetworkInterfaces(); main->NetworkDeviceComboBox->insertItem( "default" ); - for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) + for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) { - main->NetworkDeviceComboBox->insertItem( QString( *it ) ); + main->NetworkDeviceComboBox->insertItem( TQString( *it ) ); } main->NetworkDeviceComboBox->setEnabled( TRUE ); main->NetworkDeviceComboBox->setCurrentText( "default" ); @@ -297,7 +297,7 @@ void NewProfileDialog::accept() profileData->setName(Name); GlobalConfig->AccountList->append( profileData ); newProfileCreated = TRUE; - QDialog::accept(); + TQDialog::accept(); } } @@ -313,7 +313,7 @@ void NewProfileDialog::importCertificate() } -void NewProfileDialog::connectiontypeChanged( const QString& ) +void NewProfileDialog::connectiontypeChanged( const TQString& ) { // First we should set a type @@ -326,7 +326,7 @@ void NewProfileDialog::connectiontypeChanged( const QString& ) { - GlobalConfig->appendLogEntry( i18n("New type: %1").arg("cisco"),GlobalConfig->debug ); + GlobalConfig->appendLogEntry( i18n("New type: %1").tqarg("cisco"),GlobalConfig->debug ); profileData->setConnectionType( VpnAccountData::cisco ); @@ -372,7 +372,7 @@ void NewProfileDialog::connectiontypeChanged( const QString& ) { - GlobalConfig->appendLogEntry( i18n("New type: %1").arg("racoon"),GlobalConfig->debug ); + GlobalConfig->appendLogEntry( i18n("New type: %1").tqarg("racoon"),GlobalConfig->debug ); // KURLRequester* main->x509certURLRequester; // KComboBox* main->AuthTypeComboBox; // KPushButton* ImportCertificatePushButton; @@ -424,7 +424,7 @@ void NewProfileDialog::connectiontypeChanged( const QString& ) { - GlobalConfig->appendLogEntry( i18n("New type: %1").arg("freeswan"), GlobalConfig->debug ); + GlobalConfig->appendLogEntry( i18n("New type: %1").tqarg("freeswan"), GlobalConfig->debug ); // KURLRequester* main->x509certURLRequester; // KComboBox* main->AuthTypeComboBox; // KPushButton* ImportCertificatePushButton; @@ -476,7 +476,7 @@ void NewProfileDialog::connectiontypeChanged( const QString& ) { - GlobalConfig->appendLogEntry( i18n("New type: %1").arg("pptp"),GlobalConfig->debug ); + GlobalConfig->appendLogEntry( i18n("New type: %1").tqarg("pptp"),GlobalConfig->debug ); // KURLRequester* main->x509certURLRequester; // KComboBox* main->AuthTypeComboBox; // KPushButton* ImportCertificatePushButton; @@ -526,7 +526,7 @@ void NewProfileDialog::connectiontypeChanged( const QString& ) else if ( item == VpnAccountData::ConnectionType(VpnAccountData::openvpn) ) { if (GlobalConfig->KvpncDebugLevel > 0) - GlobalConfig->appendLogEntry( i18n("New type: %1").arg("openvpn"),GlobalConfig->debug ); + GlobalConfig->appendLogEntry( i18n("New type: %1").tqarg("openvpn"),GlobalConfig->debug ); // KURLRequester* main->x509certURLRequester; // KComboBox* main->AuthTypeComboBox; // KPushButton* ImportCertificatePushButton; @@ -595,7 +595,7 @@ void NewProfileDialog::connectiontypeChanged( const QString& ) } } -void NewProfileDialog::authTypeChanged( const QString& ) +void NewProfileDialog::authTypeChanged( const TQString& ) { if ( main->AuthTypeComboBox->currentItem() == VpnAccountData::AuthenticationType(VpnAccountData::cert )) { @@ -626,10 +626,10 @@ void NewProfileDialog::authTypeChanged( const QString& ) void NewProfileDialog::reject() { - QDialog::reject(); + TQDialog::reject(); } -void NewProfileDialog::profileNameChanged( const QString& ) +void NewProfileDialog::profileNameChanged( const TQString& ) { // LogOutput->append ( "text changed!" ); // if ( main->ProfileLineEdit->text().isEmpty() ) @@ -638,7 +638,7 @@ void NewProfileDialog::profileNameChanged( const QString& ) // buttonOk->setEnabled( TRUE ); } -QString NewProfileDialog::getName() +TQString NewProfileDialog::getName() { return Name; } |