Use TDESimpleConfig

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/94/head
Michele Calgaro 3 weeks ago
parent cf85b9c285
commit a1d5d51fe5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -185,7 +185,7 @@ void KChartBackgroundPixmapConfigPage::loadWallpaperFilesList()
TQStringList files; TQStringList files;
for (TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it) for (TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it)
{ {
KSimpleConfig fileConfig(*it); TDESimpleConfig fileConfig(*it);
fileConfig.setGroup("Wallpaper"); fileConfig.setGroup("Wallpaper");
TQString imageCaption = fileConfig.readEntry("Name"); TQString imageCaption = fileConfig.readEntry("Name");

@ -26,7 +26,7 @@
#include <tdeglobalsettings.h> #include <tdeglobalsettings.h>
#include <tdeglobal.h> #include <tdeglobal.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <tdestandarddirs.h> #include <tdestandarddirs.h>
#include <kstaticdeleter.h> #include <kstaticdeleter.h>
#include <kimageio.h> #include <kimageio.h>
@ -144,7 +144,7 @@ void KoGlobal::createListOfLanguages()
tag = tag.mid(index+1); tag = tag.mid(index+1);
if ( seenLanguages.find( tag ) == seenLanguages.end() ) { if ( seenLanguages.find( tag ) == seenLanguages.end() ) {
KSimpleConfig entry(*it); TDESimpleConfig entry(*it);
entry.setGroup("KCM Locale"); entry.setGroup("KCM Locale");
const TQString name = entry.readEntry("Name", tag); const TQString name = entry.readEntry("Name", tag);

@ -58,7 +58,7 @@
#include <tdefiledialog.h> #include <tdefiledialog.h>
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <kbuttonbox.h> #include <kbuttonbox.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <tdeapplication.h> #include <tdeapplication.h>
#include <kprogress.h> #include <kprogress.h>
#include <tdeglobal.h> #include <tdeglobal.h>
@ -198,7 +198,7 @@ void KPrWebPresentation::loadConfig()
if ( config.isEmpty() ) if ( config.isEmpty() )
return; return;
KSimpleConfig cfg( config ); TDESimpleConfig cfg( config );
cfg.setGroup( "General" ); cfg.setGroup( "General" );
author = cfg.readEntry( "Author", author ); author = cfg.readEntry( "Author", author );
@ -235,7 +235,7 @@ void KPrWebPresentation::loadConfig()
void KPrWebPresentation::saveConfig() void KPrWebPresentation::saveConfig()
{ {
KSimpleConfig cfg( config ); TDESimpleConfig cfg( config );
cfg.setGroup( "General" ); cfg.setGroup( "General" );
cfg.writeEntry( "Author", author ); cfg.writeEntry( "Author", author );

@ -26,7 +26,7 @@
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <kdebug.h> #include <kdebug.h>
#include <tdestandarddirs.h> #include <tdestandarddirs.h>
#include <kicondialog.h> #include <kicondialog.h>
@ -67,7 +67,7 @@ void AFChoose::getGroups()
grpPtr->dir.setFile(directory); grpPtr->dir.setFile(directory);
TQDir d(directory); TQDir d(directory);
if(d.exists(".directory")) { if(d.exists(".directory")) {
KSimpleConfig config(d.absPath()+"/.directory", true); TDESimpleConfig config(d.absPath()+"/.directory", true);
config.setDesktopGroup(); config.setDesktopGroup();
grpPtr->name=config.readEntry("Name"); grpPtr->name=config.readEntry("Name");
} }
@ -95,7 +95,7 @@ void AFChoose::setupTabs()
for(unsigned int i=0; i<files.count(); ++i) { for(unsigned int i=0; i<files.count(); ++i) {
TQString path=grpPtr->dir.absFilePath() + TQChar('/'); TQString path=grpPtr->dir.absFilePath() + TQChar('/');
files[i]=path + files[i]; files[i]=path + files[i];
KSimpleConfig config(files[i]); TDESimpleConfig config(files[i]);
config.setDesktopGroup(); config.setDesktopGroup();
if (config.readEntry("Type")=="Link") { if (config.readEntry("Type")=="Link") {
TQString text=config.readEntry("Name"); TQString text=config.readEntry("Name");

@ -32,7 +32,7 @@
#include <kbuttonbox.h> #include <kbuttonbox.h>
#include <tdemessagebox.h> #include <tdemessagebox.h>
#include <tdestandarddirs.h> #include <tdestandarddirs.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include "kspread_dlg_format.h" #include "kspread_dlg_format.h"
#include "kspread_doc.h" #include "kspread_doc.h"
@ -72,7 +72,7 @@ FormatDialog::FormatDialog( View* view, const char* name )
TQStringList::Iterator it = lst.begin(); TQStringList::Iterator it = lst.begin();
for( ; it != lst.end(); ++it ) for( ; it != lst.end(); ++it )
{ {
KSimpleConfig cfg( *it, true ); TDESimpleConfig cfg( *it, true );
cfg.setGroup( "Sheet-Style" ); cfg.setGroup( "Sheet-Style" );
Entry e; Entry e;

@ -25,7 +25,7 @@
#include <tdeglobal.h> #include <tdeglobal.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <tdestandarddirs.h> #include <tdestandarddirs.h>
#include <KoDocument.h> #include <KoDocument.h>

@ -26,7 +26,7 @@
#include <tdeglobalsettings.h> #include <tdeglobalsettings.h>
#include <tdeglobal.h> #include <tdeglobal.h>
#include <tdelocale.h> #include <tdelocale.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <tdestandarddirs.h> #include <tdestandarddirs.h>
#include <kstaticdeleter.h> #include <kstaticdeleter.h>
#include <kimageio.h> #include <kimageio.h>
@ -147,7 +147,7 @@ void KoGlobal::createListOfLanguages()
tag = tag.mid(index+1); tag = tag.mid(index+1);
if ( seenLanguages.find( tag ) == seenLanguages.end() ) { if ( seenLanguages.find( tag ) == seenLanguages.end() ) {
KSimpleConfig entry(*it); TDESimpleConfig entry(*it);
entry.setGroup("KCM Locale"); entry.setGroup("KCM Locale");
const TQString name = entry.readEntry("Name", tag); const TQString name = entry.readEntry("Name", tag);

@ -24,7 +24,7 @@
#include <tqprinter.h> #include <tqprinter.h>
#include <kdesktopfile.h> #include <kdesktopfile.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <kdebug.h> #include <kdebug.h>
#include <tdeversion.h> #include <tdeversion.h>
#include <kinstance.h> #include <kinstance.h>
@ -226,7 +226,7 @@ void KoTemplateTree::readGroups() {
TQString defaultTab; TQString defaultTab;
int sortingWeight = 1000; int sortingWeight = 1000;
if(templateDir.exists(".directory")) { if(templateDir.exists(".directory")) {
KSimpleConfig config(templateDir.absPath()+"/.directory", true); TDESimpleConfig config(templateDir.absPath()+"/.directory", true);
config.setDesktopGroup(); config.setDesktopGroup();
name=config.readEntry("Name"); name=config.readEntry("Name");
defaultTab=config.readEntry("X-TDE-DefaultTab"); defaultTab=config.readEntry("X-TDE-DefaultTab");
@ -271,7 +271,7 @@ void KoTemplateTree::readTemplates() {
// If a desktop file, then read the name from it. // If a desktop file, then read the name from it.
// Otherwise (or if no name in it?) use file name // Otherwise (or if no name in it?) use file name
if (KDesktopFile::isDesktopFile(filePath)) { if (KDesktopFile::isDesktopFile(filePath)) {
KSimpleConfig config(filePath, true); TDESimpleConfig config(filePath, true);
config.setDesktopGroup(); config.setDesktopGroup();
if (config.readEntry("Type")=="Link") { if (config.readEntry("Type")=="Link") {
text=config.readEntry("Name"); text=config.readEntry("Name");
@ -356,7 +356,7 @@ void KoTemplateTree::writeTemplate(KoTemplate *t, KoTemplateGroup *group,
fileName = path + fill + name + ".desktop"; fileName = path + fill + name + ".desktop";
} }
KSimpleConfig config( fileName ); TDESimpleConfig config( fileName );
config.setDesktopGroup(); config.setDesktopGroup();
config.writeEntry("Type", "Link"); config.writeEntry("Type", "Link");
config.writePathEntry("URL", t->file()); config.writePathEntry("URL", t->file());

Loading…
Cancel
Save