Doesn't seem used anywhere, all was ported to KConfigGroup (checked the kde3 code).
svn path=/trunk/KDE/kdebase/workspace/; revision=649822
This commit is contained in:
parent
999f036fa3
commit
dd549c3bfe
1 changed files with 25 additions and 15 deletions
|
@ -39,6 +39,7 @@
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <kmessagebox.h>
|
#include <kmessagebox.h>
|
||||||
|
|
||||||
|
#include <qlabel.h>
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
#include <kcolorbutton.h>
|
#include <kcolorbutton.h>
|
||||||
#include <kconfig.h>
|
#include <kconfig.h>
|
||||||
|
@ -56,7 +57,6 @@
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
|
||||||
|
|
||||||
// kwin config keywords
|
// kwin config keywords
|
||||||
#define KWIN_FOCUS "FocusPolicy"
|
#define KWIN_FOCUS "FocusPolicy"
|
||||||
#define KWIN_PLACEMENT "Placement"
|
#define KWIN_PLACEMENT "Placement"
|
||||||
|
@ -433,7 +433,6 @@ void KFocusConfig::load( void )
|
||||||
|
|
||||||
setTraverseAll( config->group("TabBox").readEntry(KWIN_TRAVERSE_ALL, false));
|
setTraverseAll( config->group("TabBox").readEntry(KWIN_TRAVERSE_ALL, false));
|
||||||
|
|
||||||
config->setGroup("Desktops");
|
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -487,13 +486,13 @@ void KFocusConfig::save( void )
|
||||||
|
|
||||||
config->group("TabBox").writeEntry( KWIN_TRAVERSE_ALL , traverseAll->isChecked());
|
config->group("TabBox").writeEntry( KWIN_TRAVERSE_ALL , traverseAll->isChecked());
|
||||||
|
|
||||||
config->setGroup("Desktops");
|
|
||||||
|
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
// Send signal to all kwin instances
|
||||||
kwin.call( "reconfigure" );
|
QDBusMessage message =
|
||||||
|
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
||||||
|
QDBusConnection::sessionBus().send(message);
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
@ -684,7 +683,7 @@ void KAdvancedConfig::load( void )
|
||||||
setShadeHover(cg.readEntry(KWIN_SHADEHOVER, false));
|
setShadeHover(cg.readEntry(KWIN_SHADEHOVER, false));
|
||||||
setShadeHoverInterval(cg.readEntry(KWIN_SHADEHOVER_INTERVAL, 250));
|
setShadeHoverInterval(cg.readEntry(KWIN_SHADEHOVER_INTERVAL, 250));
|
||||||
|
|
||||||
setElectricBorders(cg.readEntry(KWM_ELECTRIC_BORDER, false));
|
setElectricBorders(cg.readEntry(KWM_ELECTRIC_BORDER, 0));
|
||||||
setElectricBorderDelay(cg.readEntry(KWM_ELECTRIC_BORDER_DELAY, 150));
|
setElectricBorderDelay(cg.readEntry(KWM_ELECTRIC_BORDER_DELAY, 150));
|
||||||
|
|
||||||
// setFocusStealing( cg.readEntry(KWIN_FOCUS_STEALING, 2 ));
|
// setFocusStealing( cg.readEntry(KWIN_FOCUS_STEALING, 2 ));
|
||||||
|
@ -719,8 +718,11 @@ void KAdvancedConfig::save( void )
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
// Send signal to all kwin instances
|
||||||
kwin.call( "reconfigure" );
|
QDBusMessage message =
|
||||||
|
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
||||||
|
QDBusConnection::sessionBus().send(message);
|
||||||
|
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
@ -1183,8 +1185,10 @@ void KMovingConfig::save( void )
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
// Send signal to all kwin instances
|
||||||
kwin.call( "reconfigure" );
|
QDBusMessage message =
|
||||||
|
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
||||||
|
QDBusConnection::sessionBus().send(message);
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
@ -1250,6 +1254,8 @@ KTranslucencyConfig::KTranslucencyConfig (bool _standAlone, KConfig *_config, co
|
||||||
"And if your GPU provides hardware-accelerated Xrender support (mainly nVidia cards):<br><br>"
|
"And if your GPU provides hardware-accelerated Xrender support (mainly nVidia cards):<br><br>"
|
||||||
"<i>Option \"RenderAccel\" \"true\"</i><br>"
|
"<i>Option \"RenderAccel\" \"true\"</i><br>"
|
||||||
"In <i>Section \"Device\"</i></qt>"), this);
|
"In <i>Section \"Device\"</i></qt>"), this);
|
||||||
|
label->setOpenExternalLinks(true);
|
||||||
|
label->setTextInteractionFlags(Qt::LinksAccessibleByMouse);
|
||||||
lay->addWidget(label);
|
lay->addWidget(label);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1470,9 +1476,9 @@ void KTranslucencyConfig::load( void )
|
||||||
|
|
||||||
if (!kompmgrAvailable_)
|
if (!kompmgrAvailable_)
|
||||||
return;
|
return;
|
||||||
|
useTranslucency->setChecked(config->group("Notification Messages").readEntry("UseTranslucency", false));
|
||||||
|
|
||||||
KConfigGroup translucencyConfig(config, "Translucency");
|
KConfigGroup translucencyConfig(config, "Translucency");
|
||||||
useTranslucency->setChecked(translucencyConfig.readEntry("UseTranslucency", false));
|
|
||||||
activeWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentActiveWindows", false));
|
activeWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentActiveWindows", false));
|
||||||
inactiveWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentInactiveWindows", true));
|
inactiveWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentInactiveWindows", true));
|
||||||
movingWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentMovingWindows", false));
|
movingWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentMovingWindows", false));
|
||||||
|
@ -1534,8 +1540,9 @@ void KTranslucencyConfig::save( void )
|
||||||
{
|
{
|
||||||
if (!kompmgrAvailable_)
|
if (!kompmgrAvailable_)
|
||||||
return;
|
return;
|
||||||
|
config->group("Notification Messages").writeEntry("UseTranslucency",useTranslucency->isChecked());
|
||||||
|
|
||||||
KConfigGroup translucencyConfig(config, "Translucency");
|
KConfigGroup translucencyConfig(config, "Translucency");
|
||||||
translucencyConfig.writeEntry("UseTranslucency",useTranslucency->isChecked());
|
|
||||||
translucencyConfig.writeEntry("TranslucentActiveWindows",activeWindowTransparency->isChecked());
|
translucencyConfig.writeEntry("TranslucentActiveWindows",activeWindowTransparency->isChecked());
|
||||||
translucencyConfig.writeEntry("TranslucentInactiveWindows",inactiveWindowTransparency->isChecked());
|
translucencyConfig.writeEntry("TranslucentInactiveWindows",inactiveWindowTransparency->isChecked());
|
||||||
translucencyConfig.writeEntry("TranslucentMovingWindows",movingWindowTransparency->isChecked());
|
translucencyConfig.writeEntry("TranslucentMovingWindows",movingWindowTransparency->isChecked());
|
||||||
|
@ -1585,8 +1592,11 @@ void KTranslucencyConfig::save( void )
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
// Send signal to all kwin instances
|
||||||
kwin.call( "reconfigure" );
|
QDBusMessage message =
|
||||||
|
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
||||||
|
QDBusConnection::sessionBus().send(message);
|
||||||
|
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue