Rename KWallet to TDEWallet.

pull/1/head
Darrell Anderson 11 years ago
parent bf9b0a6e01
commit f4cef261c3

@ -55,7 +55,7 @@
</property> </property>
<widget class="TQCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>useKwalletCheckBox</cstring> <cstring>useTDEwalletCheckBox</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Use K&amp;Wallet</string> <string>Use K&amp;Wallet</string>
@ -193,7 +193,7 @@
</grid> </grid>
</widget> </widget>
<Q_SLOTS> <Q_SLOTS>
<slot>useKwalletToggled(bool)</slot> <slot>useTDEwalletToggled(bool)</slot>
</Q_SLOTS> </Q_SLOTS>
<layoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -678,7 +678,7 @@ void KVpnc:: quitCalled()
{ {
disconnectClicked(); disconnectClicked();
reallyQuit = true; reallyQuit = true;
GlobalConfig->skipKwalletStoring = true; GlobalConfig->skipTDEwalletStoring = true;
if ( !GlobalConfig->AccountList->isEmpty() && GlobalConfig->currentProfile != 0 ) if ( !GlobalConfig->AccountList->isEmpty() && GlobalConfig->currentProfile != 0 )
GlobalConfig->lastProfile = GlobalConfig->currentProfile->getName(); GlobalConfig->lastProfile = GlobalConfig->currentProfile->getName();
if ( GlobalConfig->writeLogFile ) if ( GlobalConfig->writeLogFile )
@ -705,7 +705,7 @@ void KVpnc:: quitCalled()
{ {
disconnectClicked(); disconnectClicked();
reallyQuit = true; reallyQuit = true;
GlobalConfig->skipKwalletStoring = true; GlobalConfig->skipTDEwalletStoring = true;
if ( !GlobalConfig->AccountList->isEmpty() && GlobalConfig->currentProfile != 0 ) if ( !GlobalConfig->AccountList->isEmpty() && GlobalConfig->currentProfile != 0 )
GlobalConfig->lastProfile = GlobalConfig->currentProfile->getName(); GlobalConfig->lastProfile = GlobalConfig->currentProfile->getName();
if ( GlobalConfig->writeLogFile ) if ( GlobalConfig->writeLogFile )
@ -732,7 +732,7 @@ void KVpnc:: quitCalled()
{ {
disconnectClicked(); disconnectClicked();
reallyQuit = true; reallyQuit = true;
GlobalConfig->skipKwalletStoring = true; GlobalConfig->skipTDEwalletStoring = true;
if ( !GlobalConfig->AccountList->isEmpty() && GlobalConfig->currentProfile != 0 ) if ( !GlobalConfig->AccountList->isEmpty() && GlobalConfig->currentProfile != 0 )
GlobalConfig->lastProfile = GlobalConfig->currentProfile->getName(); GlobalConfig->lastProfile = GlobalConfig->currentProfile->getName();
if ( GlobalConfig->writeLogFile ) if ( GlobalConfig->writeLogFile )
@ -843,7 +843,7 @@ void KVpnc::closeEvent ( TQCloseEvent *e )
if ( GlobalConfig->KvpncDebugLevel > 0 ) if ( GlobalConfig->KvpncDebugLevel > 0 )
GlobalConfig->appendLogEntry ( i18n ( "Shutdown was called...exiting.\n" ), GlobalConfig->debug ); GlobalConfig->appendLogEntry ( i18n ( "Shutdown was called...exiting.\n" ), GlobalConfig->debug );
reallyQuit = true; reallyQuit = true;
GlobalConfig->skipKwalletStoring = true; GlobalConfig->skipTDEwalletStoring = true;
disconnectClicked(); disconnectClicked();
} }
else else
@ -855,7 +855,7 @@ void KVpnc::closeEvent ( TQCloseEvent *e )
if ( res != 4 ) if ( res != 4 )
{ {
reallyQuit = true; reallyQuit = true;
GlobalConfig->skipKwalletStoring = true; GlobalConfig->skipTDEwalletStoring = true;
disconnectClicked(); disconnectClicked();
if ( reallyQuit ) if ( reallyQuit )
@ -892,7 +892,7 @@ void KVpnc::closeEvent ( TQCloseEvent *e )
else else
{ {
//disconnect and quit silently //disconnect and quit silently
GlobalConfig->skipKwalletStoring = true; GlobalConfig->skipTDEwalletStoring = true;
disconnectClicked(); disconnectClicked();
reallyQuit = true; reallyQuit = true;
} }
@ -901,7 +901,7 @@ void KVpnc::closeEvent ( TQCloseEvent *e )
else else
{ {
reallyQuit = true; reallyQuit = true;
GlobalConfig->skipKwalletStoring = true; GlobalConfig->skipTDEwalletStoring = true;
} }
if ( reallyQuit ) if ( reallyQuit )
@ -11225,7 +11225,7 @@ void KVpnc::helpClicked()
// KMessageBox::information(0,extip,"ext ip" ); // KMessageBox::information(0,extip,"ext ip" );
// /* passwords with tdewallet */ // /* passwords with tdewallet */
// if (GlobalConfig->useKwallet && TDEWallet::Wallet::isEnabled()) // if (GlobalConfig->useTDEwallet && TDEWallet::Wallet::isEnabled())
// { // {
// // Open local wallet // // Open local wallet
// GlobalConfig->wallet = TDEWallet::Wallet::openWallet(TDEWallet::Wallet::LocalWallet()); // GlobalConfig->wallet = TDEWallet::Wallet::openWallet(TDEWallet::Wallet::LocalWallet());

@ -129,12 +129,12 @@ KVpncConfig::KVpncConfig(TQWidget *parent,KStatusBar *statusbar)
dontQuitOnCloseEvent=true; dontQuitOnCloseEvent=true;
PppdDebugLevel = false; PppdDebugLevel = false;
doAutoConnectAtStartup=false; doAutoConnectAtStartup=false;
useKwallet=true; useTDEwallet=true;
showStatusBar=true; showStatusBar=true;
showToolBar=true; showToolBar=true;
firstUseOfKwallet=true; firstUseOfTDEwallet=true;
shutdownIsCalled=false; shutdownIsCalled=false;
skipKwalletStoring = false; skipTDEwalletStoring = false;
hideOnCloseInfo = false; hideOnCloseInfo = false;
enableFreeswanVerbose=false; enableFreeswanVerbose=false;
doKillL2tpdIfStillRunning=true; doKillL2tpdIfStillRunning=true;
@ -410,7 +410,7 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
config->writeEntry( "Mainwindow position y", parent->y() ); config->writeEntry( "Mainwindow position y", parent->y() );
config->writeEntry("Openvpn management port", OpenvpnManagementPort ); config->writeEntry("Openvpn management port", OpenvpnManagementPort );
//config->writeEntry( "ToolBar Settings" ,parent->toolBar( "mainToolBar" )); //config->writeEntry( "ToolBar Settings" ,parent->toolBar( "mainToolBar" ));
config->writeEntry("Use TDEWallet",useKwallet); config->writeEntry("Use TDEWallet",useTDEwallet);
config->writeEntry("FeedbackMailSent",feedbackMailSent); config->writeEntry("FeedbackMailSent",feedbackMailSent);
config->writeEntry("Do kill l2tpd if still running",doKillL2tpdIfStillRunning); config->writeEntry("Do kill l2tpd if still running",doKillL2tpdIfStillRunning);
config->writeEntry("Do kill racoon if still running",doKillRacoonIfStillRunning); config->writeEntry("Do kill racoon if still running",doKillRacoonIfStillRunning);
@ -426,16 +426,16 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
//appPointer->processEvents(); //appPointer->processEvents();
} }
if (useKwallet && TDEWallet::Wallet::isEnabled()) if (useTDEwallet && TDEWallet::Wallet::isEnabled())
config->writeEntry( "First use of Kwallet", false ); config->writeEntry( "First use of TDEwallet", false );
/* = user data = */ /* = user data = */
VpnAccountData *it; VpnAccountData *it;
if ( !AccountList->isEmpty() ) if ( !AccountList->isEmpty() )
{ {
/* passwords with tdewallet */ /* passwords with tdewallet */
if ( useKwallet && TDEWallet::Wallet::isEnabled()) if ( useTDEwallet && TDEWallet::Wallet::isEnabled())
{ {
if (!skipKwalletStoring ) if (!skipTDEwalletStoring )
{ {
if (KvpncDebugLevel > 2) if (KvpncDebugLevel > 2)
appendLogEntry(i18n( "Wallet enabled and available, writing to wallet." ),debug); appendLogEntry(i18n( "Wallet enabled and available, writing to wallet." ),debug);
@ -488,9 +488,9 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
config->writeEntry("Description",it->getDescription()); config->writeEntry("Description",it->getDescription());
/* passwords with tdewallet */ /* passwords with tdewallet */
if ( useKwallet && TDEWallet::Wallet::isEnabled()) if ( useTDEwallet && TDEWallet::Wallet::isEnabled())
{ {
if (!skipKwalletStoring ) if (!skipTDEwalletStoring )
{ {
if (KvpncDebugLevel > 2) if (KvpncDebugLevel > 2)
appendLogEntry(i18n( "Wallet enabled and available, writing to wallet." ),debug); appendLogEntry(i18n( "Wallet enabled and available, writing to wallet." ),debug);
@ -618,7 +618,7 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
else else
{ {
//Wallet not available //Wallet not available
//if (!useKwallet) //if (!useTDEwallet)
{ {
if (KvpncDebugLevel > 2) if (KvpncDebugLevel > 2)
appendLogEntry(i18n( "Wallet disabled or not available, writing to config file." ),debug); appendLogEntry(i18n( "Wallet disabled or not available, writing to config file." ),debug);
@ -891,8 +891,8 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
} }
// if ( !skipKwalletStoring && wallet != 0) // if ( !skipTDEwalletStoring && wallet != 0)
// if (useKwallet && TDEWallet::Wallet::isEnabled()) // if (useTDEwallet && TDEWallet::Wallet::isEnabled())
// if (wallet->isOpen()) // if (wallet->isOpen())
// wallet->sync(); // wallet->sync();
config->sync(); config->sync();
@ -1036,8 +1036,8 @@ void KVpncConfig::loadOptions()
} }
} }
useKwallet = config->readBoolEntry("Use TDEWallet", true); useTDEwallet = config->readBoolEntry("Use TDEWallet", true);
firstUseOfKwallet = config->readBoolEntry( "First use of Kwallet", true ); firstUseOfTDEwallet = config->readBoolEntry( "First use of TDEwallet", true );
feedbackMailSent = config->readBoolEntry("FeedbackMailSent",false); feedbackMailSent = config->readBoolEntry("FeedbackMailSent",false);
doKillL2tpdIfStillRunning = config->readBoolEntry("Do kill l2tpd if still running",true); doKillL2tpdIfStillRunning = config->readBoolEntry("Do kill l2tpd if still running",true);
doKillXl2tpdIfStillRunning = config->readBoolEntry("Do kill xl2tpd if still running",true); doKillXl2tpdIfStillRunning = config->readBoolEntry("Do kill xl2tpd if still running",true);
@ -1096,7 +1096,7 @@ void KVpncConfig::loadOptions()
TQString PreSharedKey =""; TQString PreSharedKey ="";
/* passwords with tdewallet */ /* passwords with tdewallet */
if (useKwallet && TDEWallet::Wallet::isEnabled()) if (useTDEwallet && TDEWallet::Wallet::isEnabled())
{ {
if (KvpncDebugLevel > 2) if (KvpncDebugLevel > 2)
appendLogEntry(i18n( "Wallet enabled and available, reading passwords from wallet." ),debug); appendLogEntry(i18n( "Wallet enabled and available, reading passwords from wallet." ),debug);
@ -1156,7 +1156,7 @@ void KVpncConfig::loadOptions()
{ {
if (KvpncDebugLevel > 2) if (KvpncDebugLevel > 2)
{ {
if (useKwallet && TDEWallet::Wallet::isEnabled() && firstUseOfKwallet) if (useTDEwallet && TDEWallet::Wallet::isEnabled() && firstUseOfTDEwallet)
appendLogEntry(i18n( "Wallet enabled, available but first time, reading passwords from config file." ),debug); appendLogEntry(i18n( "Wallet enabled, available but first time, reading passwords from config file." ),debug);
else else
appendLogEntry(i18n( "Wallet disabled or not available, reading passwords from config file." ),debug); appendLogEntry(i18n( "Wallet disabled or not available, reading passwords from config file." ),debug);
@ -1743,7 +1743,7 @@ bool KVpncConfig::exportKvpncConfig(TQString filename)
ExportStream << "\t\t<option name=\"Openvpn management port\"" << " type=\"int\"" << ">" << int(OpenvpnManagementPort)<< "</option>\n"; ExportStream << "\t\t<option name=\"Openvpn management port\"" << " type=\"int\"" << ">" << int(OpenvpnManagementPort)<< "</option>\n";
ExportStream << "\t\t<option name=\"hideOnCloseInfo\"" << " type=\"bool\"" << ">" << int(hideOnCloseInfo)<< "</option>\n"; ExportStream << "\t\t<option name=\"hideOnCloseInfo\"" << " type=\"bool\"" << ">" << int(hideOnCloseInfo)<< "</option>\n";
// ExportStream << "\t\t<option name=\"ToolBar Settings\"" << " type=\"bool\"" << ">" << parent->toolBar( "mainToolBar" )<< "</option>\n"; // ExportStream << "\t\t<option name=\"ToolBar Settings\"" << " type=\"bool\"" << ">" << parent->toolBar( "mainToolBar" )<< "</option>\n";
ExportStream << "\t\t<option name=\"Use TDEWallet\"" << " type=\"bool\"" << ">" << int(useKwallet)<< "</option>\n"; ExportStream << "\t\t<option name=\"Use TDEWallet\"" << " type=\"bool\"" << ">" << int(useTDEwallet)<< "</option>\n";
ExportStream << "\t\t<option name=\"FeedbackMailSent\"" << " type=\"bool\"" << ">" << int(feedbackMailSent)<< "</option>\n"; ExportStream << "\t\t<option name=\"FeedbackMailSent\"" << " type=\"bool\"" << ">" << int(feedbackMailSent)<< "</option>\n";
ExportStream << "\t\t<option name=\"Do kill l2tpd if still running\"" << " type=\"bool\"" << ">" << int(doKillL2tpdIfStillRunning)<< "</option>\n"; ExportStream << "\t\t<option name=\"Do kill l2tpd if still running\"" << " type=\"bool\"" << ">" << int(doKillL2tpdIfStillRunning)<< "</option>\n";
ExportStream << "\t\t<option name=\"Do kill xl2tpd if still running\"" << " type=\"bool\"" << ">" << int(doKillXl2tpdIfStillRunning)<< "</option>\n"; ExportStream << "\t\t<option name=\"Do kill xl2tpd if still running\"" << " type=\"bool\"" << ">" << int(doKillXl2tpdIfStillRunning)<< "</option>\n";
@ -2077,14 +2077,14 @@ bool KVpncConfig::importKvpncConfig(TQString filename, TQString& RetName, bool&
bool showInterfaceIPinTooltip=true; bool showInterfaceIPinTooltip=true;
bool dontQuitOnCloseEvent=true; bool dontQuitOnCloseEvent=true;
bool doAutoConnectAtStartup=false; bool doAutoConnectAtStartup=false;
bool useKwallet=true; bool useTDEwallet=true;
bool showStatusBar=true; bool showStatusBar=true;
bool showToolBar=true; bool showToolBar=true;
bool hideMainWindow=false; bool hideMainWindow=false;
bool PppdDebugLevel=false; bool PppdDebugLevel=false;
bool firstUseOfKwallet=false; bool firstUseOfTDEwallet=false;
bool shutdownIsCalled=false; bool shutdownIsCalled=false;
bool skipKwalletStoring=false; bool skipTDEwalletStoring=false;
bool hideOnCloseInfo=false; bool hideOnCloseInfo=false;
bool feedbackMailSent=false; bool feedbackMailSent=false;
bool doKillL2tpdIfStillRunning=false; bool doKillL2tpdIfStillRunning=false;
@ -2258,7 +2258,7 @@ bool KVpncConfig::importKvpncConfig(TQString filename, TQString& RetName, bool&
else if ( n1.toElement().tagName() == "Openvpn management port" ) { OpenvpnManagementPort = n1.toElement().text().toInt(); } else if ( n1.toElement().tagName() == "Openvpn management port" ) { OpenvpnManagementPort = n1.toElement().text().toInt(); }
else if ( n1.toElement().tagName() == "hideOnCloseInfo" ) { hideOnCloseInfo = n1.toElement().text().toInt(); } else if ( n1.toElement().tagName() == "hideOnCloseInfo" ) { hideOnCloseInfo = n1.toElement().text().toInt(); }
// else if (n1.toElement().tagName() == "ToolBar Settings") { parent->toolBar( "mainToolBar" ) = n1.toElement().text(); } // else if (n1.toElement().tagName() == "ToolBar Settings") { parent->toolBar( "mainToolBar" ) = n1.toElement().text(); }
else if ( n1.toElement().tagName() == "Use TDEWallet" ) { useKwallet = n1.toElement().text().toInt(); } else if ( n1.toElement().tagName() == "Use TDEWallet" ) { useTDEwallet = n1.toElement().text().toInt(); }
else if ( n1.toElement().tagName() == "FeedbackMailSent" ) { feedbackMailSent = n1.toElement().text().toInt(); } else if ( n1.toElement().tagName() == "FeedbackMailSent" ) { feedbackMailSent = n1.toElement().text().toInt(); }
else if ( n1.toElement().tagName() == "Do kill l2tpd if still running" ) { doKillL2tpdIfStillRunning = n1.toElement().text().toInt(); } else if ( n1.toElement().tagName() == "Do kill l2tpd if still running" ) { doKillL2tpdIfStillRunning = n1.toElement().text().toInt(); }
else if ( n1.toElement().tagName() == "Do kill xl2tpd if still running" ) { doKillXl2tpdIfStillRunning = n1.toElement().text().toInt(); } else if ( n1.toElement().tagName() == "Do kill xl2tpd if still running" ) { doKillXl2tpdIfStillRunning = n1.toElement().text().toInt(); }
@ -2717,14 +2717,14 @@ bool KVpncConfig::importKvpncConfig(TQString filename, TQString& RetName, bool&
this-> showInterfaceIPinTooltip= showInterfaceIPinTooltip; this-> showInterfaceIPinTooltip= showInterfaceIPinTooltip;
this-> dontQuitOnCloseEvent= dontQuitOnCloseEvent; this-> dontQuitOnCloseEvent= dontQuitOnCloseEvent;
this-> doAutoConnectAtStartup= doAutoConnectAtStartup; this-> doAutoConnectAtStartup= doAutoConnectAtStartup;
this-> useKwallet= useKwallet; this-> useTDEwallet= useTDEwallet;
this-> showStatusBar= showStatusBar; this-> showStatusBar= showStatusBar;
this-> showToolBar= showToolBar; this-> showToolBar= showToolBar;
this-> hideMainWindow= hideMainWindow; this-> hideMainWindow= hideMainWindow;
this-> PppdDebugLevel= PppdDebugLevel; this-> PppdDebugLevel= PppdDebugLevel;
this-> firstUseOfKwallet= firstUseOfKwallet; this-> firstUseOfTDEwallet= firstUseOfTDEwallet;
this-> shutdownIsCalled= shutdownIsCalled; this-> shutdownIsCalled= shutdownIsCalled;
this-> skipKwalletStoring= skipKwalletStoring; this-> skipTDEwalletStoring= skipTDEwalletStoring;
this-> hideOnCloseInfo= hideOnCloseInfo; this-> hideOnCloseInfo= hideOnCloseInfo;
this-> feedbackMailSent= feedbackMailSent; this-> feedbackMailSent= feedbackMailSent;
this-> doKillL2tpdIfStillRunning= doKillL2tpdIfStillRunning; this-> doKillL2tpdIfStillRunning= doKillL2tpdIfStillRunning;
@ -4344,8 +4344,8 @@ void KVpncConfig::removeEntry(TQString Name)
appPointer->processEvents(); appPointer->processEvents();
if (useKwallet && TDEWallet::Wallet::isEnabled()) if (useTDEwallet && TDEWallet::Wallet::isEnabled())
config->deleteEntry( "First use of Kwallet", false ); config->deleteEntry( "First use of TDEwallet", false );
/* = user data = */ /* = user data = */
VpnAccountData *it; VpnAccountData *it;
if ( !AccountList->isEmpty() ) if ( !AccountList->isEmpty() )
@ -4363,7 +4363,7 @@ void KVpncConfig::removeEntry(TQString Name)
config->setGroup( ProfileName ); config->setGroup( ProfileName );
/* passwords with tdewallet */ /* passwords with tdewallet */
if ( useKwallet && TDEWallet::Wallet::isEnabled()) if ( useTDEwallet && TDEWallet::Wallet::isEnabled())
{ {
// if (KvpncDebugLevel > 0) // if (KvpncDebugLevel > 0)
// appendLogEntry(i18n( "Wallet enabled and available, writing to wallet." ),debug); // appendLogEntry(i18n( "Wallet enabled and available, writing to wallet." ),debug);

@ -138,15 +138,15 @@ public:
bool showInterfaceIPinTooltip; bool showInterfaceIPinTooltip;
bool dontQuitOnCloseEvent; bool dontQuitOnCloseEvent;
bool doAutoConnectAtStartup; bool doAutoConnectAtStartup;
bool useKwallet; bool useTDEwallet;
bool showStatusBar; bool showStatusBar;
bool showToolBar; bool showToolBar;
bool hideMainWindow; bool hideMainWindow;
bool PppdDebugLevel; bool PppdDebugLevel;
bool firstUseOfKwallet; //< for importing passwords if there are stored before bool firstUseOfTDEwallet; //< for importing passwords if there are stored before
bool shutdownIsCalled; bool shutdownIsCalled;
bool haveUserData; //< flag if user data already collected, set after data is entered and unset if authretry bool haveUserData; //< flag if user data already collected, set after data is entered and unset if authretry
bool skipKwalletStoring; //< true if save should skip saving into tdewallet bool skipTDEwalletStoring; //< true if save should skip saving into tdewallet
bool hideOnCloseInfo; bool hideOnCloseInfo;
bool feedbackMailSent; bool feedbackMailSent;
bool doKillL2tpdIfStillRunning; //< kill l2tpd if its still running and not started from kvpnc bool doKillL2tpdIfStillRunning; //< kill l2tpd if its still running and not started from kvpnc

@ -466,7 +466,7 @@ PreferencesDialog::PreferencesDialog( TQWidget *parent, TQApplication *app, TQTe
ConnectOptionsWidget->SilentQuitcheckBox->setChecked( GlobalConfig->useSilentQuit ); ConnectOptionsWidget->SilentQuitcheckBox->setChecked( GlobalConfig->useSilentQuit );
GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->setChecked( GlobalConfig->dontQuitOnCloseEvent ); GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->setChecked( GlobalConfig->dontQuitOnCloseEvent );
GeneralOptionsWidget->HideOnStartupCheckBox->setChecked (GlobalConfig->hideMainWindow); GeneralOptionsWidget->HideOnStartupCheckBox->setChecked (GlobalConfig->hideMainWindow);
GeneralOptionsWidget->useKwalletCheckBox->setChecked( GlobalConfig->useKwallet ); GeneralOptionsWidget->useTDEwalletCheckBox->setChecked( GlobalConfig->useTDEwallet );
ConfigDaemonOptionsWidget->ProgramsInPathcheckBox->setChecked( GlobalConfig->programsInPath ); ConfigDaemonOptionsWidget->ProgramsInPathcheckBox->setChecked( GlobalConfig->programsInPath );
DebugOptionsWidget->KeepConnectionFilesCheckBox->setChecked( GlobalConfig->holdGeneratedScripts ); DebugOptionsWidget->KeepConnectionFilesCheckBox->setChecked( GlobalConfig->holdGeneratedScripts );
LogOptionsWidget->InfoLogLabel->setPaletteBackgroundColor ( GlobalConfig->InfoLogColor ); LogOptionsWidget->InfoLogLabel->setPaletteBackgroundColor ( GlobalConfig->InfoLogColor );
@ -961,7 +961,7 @@ void PreferencesDialog::setupGui()
lo = new TQVBoxLayout( GeneralFrame, 0, KDialog::spacingHint() ); lo = new TQVBoxLayout( GeneralFrame, 0, KDialog::spacingHint() );
GeneralOptionsWidget = new ConfigGeneralOptions( GeneralFrame ); GeneralOptionsWidget = new ConfigGeneralOptions( GeneralFrame );
lo->addWidget( GeneralOptionsWidget ); 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 ); // const TQObjectList *GeneralOptionsWidgetList = GeneralOptionsWidget->queryList( TQCHECKBOX_OBJECT_NAME_STRING );
// TQObjectListIt it( *GeneralOptionsWidgetList ); // TQObjectListIt it( *GeneralOptionsWidgetList );
@ -1652,7 +1652,7 @@ void PreferencesDialog::accept()
GlobalConfig->showDebugConsole = DebugOptionsWidget->showDebugCheck->isChecked(); GlobalConfig->showDebugConsole = DebugOptionsWidget->showDebugCheck->isChecked();
GlobalConfig->useSilentQuit = ConnectOptionsWidget->SilentQuitcheckBox->isChecked(); GlobalConfig->useSilentQuit = ConnectOptionsWidget->SilentQuitcheckBox->isChecked();
GlobalConfig->dontQuitOnCloseEvent = GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->isChecked(); GlobalConfig->dontQuitOnCloseEvent = GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->isChecked();
GlobalConfig->useKwallet = GeneralOptionsWidget->useKwalletCheckBox->isChecked(); GlobalConfig->useTDEwallet = GeneralOptionsWidget->useTDEwalletCheckBox->isChecked();
GlobalConfig->writeLogFile = DebugOptionsWidget->WriteLogCheck->isChecked(); GlobalConfig->writeLogFile = DebugOptionsWidget->WriteLogCheck->isChecked();
GlobalConfig->KvpncDebugLevel = DebugOptionsWidget->spinKvpncDebugLevel->value(); GlobalConfig->KvpncDebugLevel = DebugOptionsWidget->spinKvpncDebugLevel->value();
GlobalConfig->RacoonDebugLevel = ConfigDaemonOptionsWidget->RacoonDebugLevelComboBox->currentText(); GlobalConfig->RacoonDebugLevel = ConfigDaemonOptionsWidget->RacoonDebugLevelComboBox->currentText();
@ -4473,7 +4473,7 @@ void PreferencesDialog::saveSessionClicked()
GlobalConfig->useSilentQuit = ConnectOptionsWidget->SilentQuitcheckBox->isChecked(); GlobalConfig->useSilentQuit = ConnectOptionsWidget->SilentQuitcheckBox->isChecked();
GlobalConfig->dontQuitOnCloseEvent = GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->isChecked(); GlobalConfig->dontQuitOnCloseEvent = GeneralOptionsWidget->DontQuitOnCloseEventCheckBox->isChecked();
GlobalConfig->hideMainWindow = GeneralOptionsWidget->HideOnStartupCheckBox->isChecked (); GlobalConfig->hideMainWindow = GeneralOptionsWidget->HideOnStartupCheckBox->isChecked ();
GlobalConfig->useKwallet = GeneralOptionsWidget->useKwalletCheckBox->isChecked(); GlobalConfig->useTDEwallet = GeneralOptionsWidget->useTDEwalletCheckBox->isChecked();
GlobalConfig->programsInPath =ConfigDaemonOptionsWidget->ProgramsInPathcheckBox->isChecked(); GlobalConfig->programsInPath =ConfigDaemonOptionsWidget->ProgramsInPathcheckBox->isChecked();
GlobalConfig->holdGeneratedScripts = DebugOptionsWidget->KeepConnectionFilesCheckBox->isChecked(); GlobalConfig->holdGeneratedScripts = DebugOptionsWidget->KeepConnectionFilesCheckBox->isChecked();
GlobalConfig->InfoLogColor = LogOptionsWidget->InfoLogLabel->paletteBackgroundColor (); 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?" ) ); 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) ) ; //LogOutput->append( "Result: "+ TQString().setNum(result) ) ;
if ( result == 2 || result == 4 ) // No or Cancel if ( result == 2 || result == 4 ) // No or Cancel
{ {
GeneralOptionsWidget->useKwalletCheckBox->setChecked(true); GeneralOptionsWidget->useTDEwalletCheckBox->setChecked(true);
GlobalConfig->useKwallet=true; GlobalConfig->useTDEwallet=true;
} }
if (result == 3) //Yes if (result == 3) //Yes
GlobalConfig->useKwallet=false; GlobalConfig->useTDEwallet=false;
} }
} }

@ -101,7 +101,7 @@ public slots:
void IkeGroupToggled(bool); void IkeGroupToggled(bool);
void perfectForwardSecurityToggled(bool); void perfectForwardSecurityToggled(bool);
void singleDesToggled(bool); void singleDesToggled(bool);
void useKwalletToggled(bool); void useTDEwalletToggled(bool);
void dpdToggled(bool); void dpdToggled(bool);
void useCiscoCertStoreToggled(bool); void useCiscoCertStoreToggled(bool);
void natModeToggled( const TQString &); void natModeToggled( const TQString &);

Loading…
Cancel
Save