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;
for (TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it)
{
KSimpleConfig fileConfig(*it);
TDESimpleConfig fileConfig(*it);
fileConfig.setGroup("Wallpaper");
TQString imageCaption = fileConfig.readEntry("Name");

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

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

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

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

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

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

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

Loading…
Cancel
Save