Use TDESimpleConfig

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/106/head
Michele Calgaro 6 months ago
parent 1691a30e33
commit a4e89f2b45
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -46,7 +46,7 @@
#include <kstatusbar.h>
#include <tdeconfig.h>
#include <klineedit.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <tdeaction.h>
#include <kdebug.h>
@ -59,7 +59,7 @@
keyServer::keyServer(TQWidget *parent, const char *name,bool modal,bool autoClose):KDialogBase( Swallow, i18n("Key Server"), Close, Close, parent, name,modal)
{
autoCloseWindow=autoClose;
config=new KSimpleConfig ("kgpgrc");
config=new TDESimpleConfig ("kgpgrc");
page=new keyServerWidget();
setMainWidget(page);

@ -22,7 +22,7 @@
#include "keyserver.h"
class TDEListViewItem;
class KSimpleConfig;
class TDESimpleConfig;
class TDEProcIO;
class TDEProcess;
@ -66,7 +66,7 @@ public slots:
private:
TQDialog *importpop;
KSimpleConfig *config;
TDESimpleConfig *config;
uint keyNumbers;
TQString readmessage, currentKey;;
TQStringList keysToImport, invalidKeys;

@ -933,7 +933,7 @@ s_keyManager->keysList2->saveLayout(TDEGlobal::config(),"KeyView");
KGpgSettings::setShowCreat(s_keyManager->sCreat->isChecked());
KGpgSettings::setShowSize(s_keyManager->sSize->isChecked());
KGpgSettings::writeConfig();
KSimpleConfig ("kgpgrc").sync();
TDESimpleConfig ("kgpgrc").sync();
quit();
}

@ -34,7 +34,7 @@ class ColorsConf;
class MiscConf;
class TDEFontChooser;
class TDEConfig;
class KSimpleConfig;
class TDESimpleConfig;
class kgpgOptions : public TDEConfigDialog
{

@ -71,7 +71,7 @@ void CExportDialog::readConfiguration( void )
{
if( mConfig != 0 ) { return; }
mConfig = new KSimpleConfig( TQString("hexexport") );
mConfig = new TDESimpleConfig( TQString("hexexport") );
if( mConfig == 0 ) { return; }
mConfig->setGroup( "Destination" );

@ -30,7 +30,7 @@ class TQLabel;
class TQLineEdit;
class TQSpinBox;
class TQWidgetStack;
class KSimpleConfig;
class TDESimpleConfig;
#include <kdialogbase.h>
#include "hexbuffer.h"
@ -127,7 +127,7 @@ class CExportDialog : public KDialogBase
SDestinationWidgets mDestination;
SHtmlWidgets mHtml;
SArrayWidgets mArray;
KSimpleConfig *mConfig;
TDESimpleConfig *mConfig;
TQString mWorkDir;
};

@ -223,7 +223,7 @@ void LayoutDialogPage::readConfiguration( void )
{
if( mConfig != 0 ) { return; }
mConfig = new KSimpleConfig( TQString("hexprinter") );
mConfig = new TDESimpleConfig( TQString("hexprinter") );
if( mConfig == 0 ) { return; }
mConfig->setGroup( "PageLayout" );

@ -28,7 +28,7 @@ class TQLabel;
class TQSpinBox;
#include <tdeprint/kprintdialogpage.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
class LayoutDialogPage : public KPrintDialogPage
{
@ -67,7 +67,7 @@ class LayoutDialogPage : public KPrintDialogPage
TQComboBox *footerCombo[4];
};
KSimpleConfig *mConfig;
TDESimpleConfig *mConfig;
SLayoutWidgets mLayout;
};

@ -33,7 +33,7 @@
#include <tqbitmap.h>
#include <kdebug.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <tdeglobalsettings.h>
#include <tdestandarddirs.h>
#include <tdeglobal.h>

@ -47,7 +47,7 @@ static int mib[] = { CTL_NET, PF_ROUTE, 0, 0, NET_RT_IFLIST, 0 };
#include <tdelocale.h>
#include <tdeaboutapplication.h>
#include <tdeaboutdata.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <tdeglobal.h>
#include <krun.h>
#include <tdeapplication.h>

@ -22,7 +22,7 @@
#include <tqcursor.h>
#include <tdelistview.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <tdelocale.h>
#include <kiconloader.h>
#include <tdeapplication.h>

@ -20,7 +20,7 @@
#if !(TDE_VERSION_MINOR<=1 && TDE_VERSION_RELEASE<=5)
#include <tdeactioncollection.h>
#endif
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <ksystemtray.h>
#include <kiconloader.h>
#include <kpassivepopup.h>
@ -113,7 +113,7 @@ void IRKick::flashOff()
void IRKick::doQuit()
{
KSimpleConfig theConfig("irkickrc");
TDESimpleConfig theConfig("irkickrc");
theConfig.setGroup("General");
switch(KMessageBox::questionYesNoCancel(0, i18n("Should the Infrared Remote Control server start automatically when you begin TDE?"), i18n("Automatically Start?"), i18n("Start Automatically"), i18n("Do Not Start")))
{ case KMessageBox::No: theConfig.writeEntry("AutoStart", false); break;
@ -143,7 +143,7 @@ void IRKick::resetModes()
void IRKick::slotReloadConfiguration()
{
// load configuration from config file
KSimpleConfig theConfig("irkickrc");
TDESimpleConfig theConfig("irkickrc");
allActions.loadFromConfig(theConfig);
allModes.loadFromConfig(theConfig);
if(currentModes.count() && theResetCount)

@ -26,7 +26,7 @@
#include <kicondialog.h>
#include <kiconloader.h>
#include <kdebug.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <kgenericfactory.h>
#include <tdelistview.h>
#include <tdemessagebox.h>
@ -61,7 +61,7 @@ KCMLirc::KCMLirc(TQWidget *parent, const char *name, TQStringList /*args*/) : DC
if(!ok)
if(KMessageBox::questionYesNo(this, i18n("The Infrared Remote Control software is not currently running. This configuration module will not work properly without it. Would you like to start it now?"), i18n("Software Not Running"), i18n("Start"), i18n("Do Not Start")) == KMessageBox::Yes)
{ kdDebug() << "S" << TDEApplication::startServiceByDesktopName("irkick") << endl;
KSimpleConfig theConfig("irkickrc");
TDESimpleConfig theConfig("irkickrc");
theConfig.setGroup("General");
if(theConfig.readBoolEntry("AutoStart", true) == false)
if(KMessageBox::questionYesNo(this, i18n("Would you like the infrared remote control software to start automatically when you begin TDE?"), i18n("Automatically Start?"), i18n("Start Automatically"), i18n("Do Not Start")) == KMessageBox::Yes)
@ -498,7 +498,7 @@ void KCMLirc::updateInformation()
void KCMLirc::load()
{
KSimpleConfig theConfig("irkickrc");
TDESimpleConfig theConfig("irkickrc");
allActions.loadFromConfig(theConfig);
allModes.loadFromConfig(theConfig);
allModes.generateNulls(IRKick_stub("irkick", "IRKick").remotes());
@ -516,7 +516,7 @@ void KCMLirc::defaults()
void KCMLirc::save()
{
KSimpleConfig theConfig("irkickrc");
TDESimpleConfig theConfig("irkickrc");
allActions.saveToConfig(theConfig);
allModes.saveToConfig(theConfig);

Loading…
Cancel
Save