|
|
@ -58,8 +58,8 @@ typedef struct _ConfigFiles
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KSimpleConfig *main;
|
|
|
|
KSimpleConfig *main;
|
|
|
|
TQString profile;
|
|
|
|
TQString profile;
|
|
|
|
KConfig *twin;
|
|
|
|
TDEConfig *twin;
|
|
|
|
KConfig *global;
|
|
|
|
TDEConfig *global;
|
|
|
|
Bool modified;
|
|
|
|
Bool modified;
|
|
|
|
unsigned int watch;
|
|
|
|
unsigned int watch;
|
|
|
|
unsigned int twinWatch;
|
|
|
|
unsigned int twinWatch;
|
|
|
@ -245,7 +245,7 @@ static void
|
|
|
|
KdeIntToCCS (CCSSetting *setting,
|
|
|
|
KdeIntToCCS (CCSSetting *setting,
|
|
|
|
int num)
|
|
|
|
int num)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
TDEConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
|
|
|
|
|
|
|
|
int val = cfg->readNumEntry (specialOptions[num].kdeName);
|
|
|
|
int val = cfg->readNumEntry (specialOptions[num].kdeName);
|
|
|
|
|
|
|
|
|
|
|
@ -256,7 +256,7 @@ static void
|
|
|
|
KdeBoolToCCS (CCSSetting *setting,
|
|
|
|
KdeBoolToCCS (CCSSetting *setting,
|
|
|
|
int num)
|
|
|
|
int num)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
TDEConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
|
|
|
|
|
|
|
|
Bool val = (cfg->readBoolEntry (specialOptions[num].kdeName))? TRUE : FALSE;
|
|
|
|
Bool val = (cfg->readBoolEntry (specialOptions[num].kdeName))? TRUE : FALSE;
|
|
|
|
|
|
|
|
|
|
|
@ -267,7 +267,7 @@ static void
|
|
|
|
KdeKeyToCCS (CCSSetting *setting,
|
|
|
|
KdeKeyToCCS (CCSSetting *setting,
|
|
|
|
int num)
|
|
|
|
int num)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
TDEConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
|
|
|
|
|
|
|
|
KKey key (cfg->readEntry (specialOptions[num].kdeName) );
|
|
|
|
KKey key (cfg->readEntry (specialOptions[num].kdeName) );
|
|
|
|
|
|
|
|
|
|
|
@ -1041,7 +1041,7 @@ static void
|
|
|
|
CCSIntToKde (CCSSetting *setting,
|
|
|
|
CCSIntToKde (CCSSetting *setting,
|
|
|
|
int num)
|
|
|
|
int num)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
TDEConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
|
|
|
|
|
|
|
|
int val;
|
|
|
|
int val;
|
|
|
|
|
|
|
|
|
|
|
@ -1059,7 +1059,7 @@ static void
|
|
|
|
CCSBoolToKde (CCSSetting *setting,
|
|
|
|
CCSBoolToKde (CCSSetting *setting,
|
|
|
|
int num)
|
|
|
|
int num)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
TDEConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
|
|
|
|
|
|
|
|
Bool val;
|
|
|
|
Bool val;
|
|
|
|
|
|
|
|
|
|
|
@ -1077,7 +1077,7 @@ static void
|
|
|
|
CCSKeyToKde (CCSSetting *setting,
|
|
|
|
CCSKeyToKde (CCSSetting *setting,
|
|
|
|
int num)
|
|
|
|
int num)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
TDEConfig *cfg = (specialOptions[num].global) ? cFiles->global : cFiles->twin;
|
|
|
|
|
|
|
|
|
|
|
|
CCSSettingKeyValue keyVal;
|
|
|
|
CCSSettingKeyValue keyVal;
|
|
|
|
|
|
|
|
|
|
|
@ -1872,8 +1872,8 @@ init (CCSContext *c)
|
|
|
|
createFile (wFile);
|
|
|
|
createFile (wFile);
|
|
|
|
|
|
|
|
|
|
|
|
cFiles->main = new KSimpleConfig (configName);
|
|
|
|
cFiles->main = new KSimpleConfig (configName);
|
|
|
|
cFiles->twin = new KConfig ("twinrc");
|
|
|
|
cFiles->twin = new TDEConfig ("twinrc");
|
|
|
|
cFiles->global = new KConfig ("kdeglobals");
|
|
|
|
cFiles->global = new TDEConfig ("kdeglobals");
|
|
|
|
|
|
|
|
|
|
|
|
cFiles->twin->setGroup ("Windows");
|
|
|
|
cFiles->twin->setGroup ("Windows");
|
|
|
|
cFiles->global->setGroup ("Global Shortcuts");
|
|
|
|
cFiles->global->setGroup ("Global Shortcuts");
|
|
|
|