|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
#include <tdelocale.h>
|
|
|
|
|
#include <tdestandarddirs.h>
|
|
|
|
|
#include <kiconview.h>
|
|
|
|
|
#include <ksimpleconfig.h>
|
|
|
|
|
#include <tdesimpleconfig.h>
|
|
|
|
|
|
|
|
|
|
#include "kcarddialog.h"
|
|
|
|
|
#include <tqpushbutton.h>
|
|
|
|
@ -464,7 +464,7 @@ void KCardDialog::insertCardIcons()
|
|
|
|
|
|
|
|
|
|
for (TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it)
|
|
|
|
|
{
|
|
|
|
|
KSimpleConfig cfg(*it);
|
|
|
|
|
TDESimpleConfig cfg(*it);
|
|
|
|
|
cfg.setGroup(TQString::fromLatin1("KDE Backdeck"));
|
|
|
|
|
TQString path = (*it).left((*it).findRev('/') + 1);
|
|
|
|
|
assert(path[path.length() - 1] == '/');
|
|
|
|
@ -500,7 +500,7 @@ void KCardDialog::insertDeckIcons()
|
|
|
|
|
|
|
|
|
|
for (TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it)
|
|
|
|
|
{
|
|
|
|
|
KSimpleConfig cfg(*it);
|
|
|
|
|
TDESimpleConfig cfg(*it);
|
|
|
|
|
TQPixmap pixmap(getDeckName(*it));
|
|
|
|
|
if (pixmap.isNull())
|
|
|
|
|
continue;
|
|
|
|
@ -742,7 +742,7 @@ void KCardDialog::saveConfig(TDEConfig* conf)
|
|
|
|
|
|
|
|
|
|
void KCardDialog::slotSetGlobalDeck()
|
|
|
|
|
{
|
|
|
|
|
KSimpleConfig* conf = new KSimpleConfig(TQString::fromLatin1("kdeglobals"), false);
|
|
|
|
|
TDESimpleConfig* conf = new TDESimpleConfig(TQString::fromLatin1("kdeglobals"), false);
|
|
|
|
|
conf->setGroup(CONF_GLOBAL_GROUP);
|
|
|
|
|
|
|
|
|
|
conf->writeEntry(CONF_GLOBAL_DECK, deck());
|
|
|
|
@ -753,7 +753,7 @@ void KCardDialog::slotSetGlobalDeck()
|
|
|
|
|
|
|
|
|
|
void KCardDialog::slotSetGlobalCardDir()
|
|
|
|
|
{
|
|
|
|
|
KSimpleConfig* conf = new KSimpleConfig(TQString::fromLatin1("kdeglobals"), false);
|
|
|
|
|
TDESimpleConfig* conf = new TDESimpleConfig(TQString::fromLatin1("kdeglobals"), false);
|
|
|
|
|
conf->setGroup(CONF_GLOBAL_GROUP);
|
|
|
|
|
|
|
|
|
|
conf->writePathEntry(CONF_GLOBAL_CARDDIR, cardDir());
|
|
|
|
@ -764,7 +764,7 @@ void KCardDialog::slotSetGlobalCardDir()
|
|
|
|
|
|
|
|
|
|
void KCardDialog::getGlobalDeck(TQString& deck, bool& random)
|
|
|
|
|
{
|
|
|
|
|
KSimpleConfig* conf = new KSimpleConfig(TQString::fromLatin1("kdeglobals"), true);
|
|
|
|
|
TDESimpleConfig* conf = new TDESimpleConfig(TQString::fromLatin1("kdeglobals"), true);
|
|
|
|
|
conf->setGroup(CONF_GLOBAL_GROUP);
|
|
|
|
|
|
|
|
|
|
if (!conf->hasKey(CONF_GLOBAL_DECK) || conf->readBoolEntry(CONF_GLOBAL_RANDOMDECK, false)) {
|
|
|
|
@ -780,7 +780,7 @@ void KCardDialog::getGlobalDeck(TQString& deck, bool& random)
|
|
|
|
|
|
|
|
|
|
void KCardDialog::getGlobalCardDir(TQString& dir, bool& random)
|
|
|
|
|
{
|
|
|
|
|
KSimpleConfig* conf = new KSimpleConfig(TQString::fromLatin1("kdeglobals"), true);
|
|
|
|
|
TDESimpleConfig* conf = new TDESimpleConfig(TQString::fromLatin1("kdeglobals"), true);
|
|
|
|
|
conf->setGroup(CONF_GLOBAL_GROUP);
|
|
|
|
|
|
|
|
|
|
if (!conf->hasKey(CONF_GLOBAL_CARDDIR) || conf->readBoolEntry(CONF_GLOBAL_RANDOMCARDDIR, false)) {
|
|
|
|
|