From f4cef261c339c76ea446f029ceca4268840f6385 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sat, 31 Aug 2013 12:43:36 -0500 Subject: Rename KWallet to TDEWallet. --- src/preferencesdialog.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/preferencesdialog.cpp') diff --git a/src/preferencesdialog.cpp b/src/preferencesdialog.cpp index 3e88a4b..69fcce2 100644 --- a/src/preferencesdialog.cpp +++ b/src/preferencesdialog.cpp @@ -466,7 +466,7 @@ PreferencesDialog::PreferencesDialog( TQWidget *parent, TQApplication *app, TQTe ConnectOptionsWidget->SilentQuitcheckBox->setChecked( GlobalConfig->useSilentQuit ); GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->setChecked( GlobalConfig->dontQuitOnCloseEvent ); GeneralOptionsWidget->HideOnStartupCheckBox->setChecked (GlobalConfig->hideMainWindow); - GeneralOptionsWidget->useKwalletCheckBox->setChecked( GlobalConfig->useKwallet ); + GeneralOptionsWidget->useTDEwalletCheckBox->setChecked( GlobalConfig->useTDEwallet ); ConfigDaemonOptionsWidget->ProgramsInPathcheckBox->setChecked( GlobalConfig->programsInPath ); DebugOptionsWidget->KeepConnectionFilesCheckBox->setChecked( GlobalConfig->holdGeneratedScripts ); LogOptionsWidget->InfoLogLabel->setPaletteBackgroundColor ( GlobalConfig->InfoLogColor ); @@ -961,7 +961,7 @@ void PreferencesDialog::setupGui() lo = new TQVBoxLayout( GeneralFrame, 0, KDialog::spacingHint() ); GeneralOptionsWidget = new ConfigGeneralOptions( GeneralFrame ); lo->addWidget( GeneralOptionsWidget ); - connect(GeneralOptionsWidget->useKwalletCheckBox, TQT_SIGNAL(toggled(bool)),this, TQT_SLOT(useKwalletToggled(bool))); + connect(GeneralOptionsWidget->useTDEwalletCheckBox, TQT_SIGNAL(toggled(bool)),this, TQT_SLOT(useTDEwalletToggled(bool))); // const TQObjectList *GeneralOptionsWidgetList = GeneralOptionsWidget->queryList( TQCHECKBOX_OBJECT_NAME_STRING ); // TQObjectListIt it( *GeneralOptionsWidgetList ); @@ -1652,7 +1652,7 @@ void PreferencesDialog::accept() GlobalConfig->showDebugConsole = DebugOptionsWidget->showDebugCheck->isChecked(); GlobalConfig->useSilentQuit = ConnectOptionsWidget->SilentQuitcheckBox->isChecked(); GlobalConfig->dontQuitOnCloseEvent = GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->isChecked(); - GlobalConfig->useKwallet = GeneralOptionsWidget->useKwalletCheckBox->isChecked(); + GlobalConfig->useTDEwallet = GeneralOptionsWidget->useTDEwalletCheckBox->isChecked(); GlobalConfig->writeLogFile = DebugOptionsWidget->WriteLogCheck->isChecked(); GlobalConfig->KvpncDebugLevel = DebugOptionsWidget->spinKvpncDebugLevel->value(); GlobalConfig->RacoonDebugLevel = ConfigDaemonOptionsWidget->RacoonDebugLevelComboBox->currentText(); @@ -4473,7 +4473,7 @@ void PreferencesDialog::saveSessionClicked() GlobalConfig->useSilentQuit = ConnectOptionsWidget->SilentQuitcheckBox->isChecked(); GlobalConfig->dontQuitOnCloseEvent = GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->isChecked(); GlobalConfig->hideMainWindow = GeneralOptionsWidget->HideOnStartupCheckBox->isChecked (); - GlobalConfig->useKwallet = GeneralOptionsWidget->useKwalletCheckBox->isChecked(); + GlobalConfig->useTDEwallet = GeneralOptionsWidget->useTDEwalletCheckBox->isChecked(); GlobalConfig->programsInPath =ConfigDaemonOptionsWidget->ProgramsInPathcheckBox->isChecked(); GlobalConfig->holdGeneratedScripts = DebugOptionsWidget->KeepConnectionFilesCheckBox->isChecked(); GlobalConfig->InfoLogColor = LogOptionsWidget->InfoLogLabel->paletteBackgroundColor (); @@ -7016,20 +7016,20 @@ void PreferencesDialog::natModeToggled( const TQString &) } } -void PreferencesDialog::useKwalletToggled(bool) +void PreferencesDialog::useTDEwalletToggled(bool) { - if (!GeneralOptionsWidget->useKwalletCheckBox->isChecked()) + if (!GeneralOptionsWidget->useTDEwalletCheckBox->isChecked()) { int result = KMessageBox::questionYesNo ( this, i18n ( "Do you really want disable the use of TDEWallet? KVpnc will save passwords and psk in config file if requested." ), i18n ( "Disable TDEWallet?" ) ); //LogOutput->append( "Result: "+ TQString().setNum(result) ) ; if ( result == 2 || result == 4 ) // No or Cancel { - GeneralOptionsWidget->useKwalletCheckBox->setChecked(true); - GlobalConfig->useKwallet=true; + GeneralOptionsWidget->useTDEwalletCheckBox->setChecked(true); + GlobalConfig->useTDEwallet=true; } if (result == 3) //Yes - GlobalConfig->useKwallet=false; + GlobalConfig->useTDEwallet=false; } } -- cgit v1.2.1