|
|
|
@ -87,57 +87,57 @@ void KomposeSettings::readConfig()
|
|
|
|
|
globalAccel->readSettings();
|
|
|
|
|
globalAccel->updateConnections();
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->setGroup("Main window");
|
|
|
|
|
kapp->config()->setGroup("Main window");
|
|
|
|
|
|
|
|
|
|
defaultView = tdeApp->config()->readNumEntry("defaultView", KOMPOSEDISPLAY_VIRTUALDESKS);
|
|
|
|
|
defaultView = kapp->config()->readNumEntry("defaultView", KOMPOSEDISPLAY_VIRTUALDESKS);
|
|
|
|
|
|
|
|
|
|
useComposite = tdeApp->config()->readBoolEntry("useComposite", false);
|
|
|
|
|
useComposite = kapp->config()->readBoolEntry("useComposite", false);
|
|
|
|
|
|
|
|
|
|
passiveScreenshots = tdeApp->config()->readBoolEntry("passiveScreenshots", true);
|
|
|
|
|
screenshotGrabDelay = tdeApp->config()->readNumEntry("screenshotGrabDelay", 400000000);
|
|
|
|
|
passiveScreenshots = kapp->config()->readBoolEntry("passiveScreenshots", true);
|
|
|
|
|
screenshotGrabDelay = kapp->config()->readNumEntry("screenshotGrabDelay", 400000000);
|
|
|
|
|
|
|
|
|
|
// dynamicVirtDeskLayout = tdeApp->config()->readBoolEntry("dynamicVirtDeskLayout", true);
|
|
|
|
|
// dynamicVirtDeskLayout = kapp->config()->readBoolEntry("dynamicVirtDeskLayout", true);
|
|
|
|
|
|
|
|
|
|
imageEffects = tdeApp->config()->readBoolEntry("imageEffects", true);
|
|
|
|
|
blurBackground = tdeApp->config()->readBoolEntry("blurBackground", true);
|
|
|
|
|
imageEffects = kapp->config()->readBoolEntry("imageEffects", true);
|
|
|
|
|
blurBackground = kapp->config()->readBoolEntry("blurBackground", true);
|
|
|
|
|
|
|
|
|
|
showIcons = tdeApp->config()->readBoolEntry("showIcons", true);
|
|
|
|
|
iconSize = tdeApp->config()->readNumEntry("iconSize", 3);
|
|
|
|
|
showIcons = kapp->config()->readBoolEntry("showIcons", true);
|
|
|
|
|
iconSize = kapp->config()->readNumEntry("iconSize", 3);
|
|
|
|
|
|
|
|
|
|
showWindowTitles = tdeApp->config()->readBoolEntry("showWindowTitles", true );
|
|
|
|
|
windowTitleFont = tdeApp->config()->readFontEntry("windowTitleFont", new TQFont( "arial", 11, TQFont::Bold ) );
|
|
|
|
|
windowTitleFontColor = tdeApp->config()->readColorEntry("windowTitleFontColor", new TQColor(TQt::black) );
|
|
|
|
|
showWindowTitleShadow = tdeApp->config()->readBoolEntry("showWindowTitleShadow", true );
|
|
|
|
|
windowTitleFontShadowColor = tdeApp->config()->readColorEntry("windowTitleFontShadowColor", new TQColor(TQt::lightGray) );
|
|
|
|
|
showWindowTitles = kapp->config()->readBoolEntry("showWindowTitles", true );
|
|
|
|
|
windowTitleFont = kapp->config()->readFontEntry("windowTitleFont", new TQFont( "arial", 11, TQFont::Bold ) );
|
|
|
|
|
windowTitleFontColor = kapp->config()->readColorEntry("windowTitleFontColor", new TQColor(TQt::black) );
|
|
|
|
|
showWindowTitleShadow = kapp->config()->readBoolEntry("showWindowTitleShadow", true );
|
|
|
|
|
windowTitleFontShadowColor = kapp->config()->readColorEntry("windowTitleFontShadowColor", new TQColor(TQt::lightGray) );
|
|
|
|
|
|
|
|
|
|
windowBorderActiveColor = tdeApp->config()->readColorEntry("windowBorderActiveColor", new TQColor(TQt::gray) );
|
|
|
|
|
windowBorderInactiveColor = tdeApp->config()->readColorEntry("windowBorderInactiveColor", new TQColor(TQt::black) );
|
|
|
|
|
windowBorderActiveWidth = tdeApp->config()->readNumEntry("windowBorderActiveWidth", 2 );
|
|
|
|
|
windowBorderInactiveWidth = tdeApp->config()->readNumEntry("windowBorderInactiveWidth", 1 );
|
|
|
|
|
windowBorderActiveStyle = tdeApp->config()->readNumEntry("windowBorderActiveStyle", 3 ); // dotted
|
|
|
|
|
windowBorderInactiveStyle = tdeApp->config()->readNumEntry("windowBorderInactiveStyle", 1 ); // solid
|
|
|
|
|
windowBorderActiveColor = kapp->config()->readColorEntry("windowBorderActiveColor", new TQColor(TQt::gray) );
|
|
|
|
|
windowBorderInactiveColor = kapp->config()->readColorEntry("windowBorderInactiveColor", new TQColor(TQt::black) );
|
|
|
|
|
windowBorderActiveWidth = kapp->config()->readNumEntry("windowBorderActiveWidth", 2 );
|
|
|
|
|
windowBorderInactiveWidth = kapp->config()->readNumEntry("windowBorderInactiveWidth", 1 );
|
|
|
|
|
windowBorderActiveStyle = kapp->config()->readNumEntry("windowBorderActiveStyle", 3 ); // dotted
|
|
|
|
|
windowBorderInactiveStyle = kapp->config()->readNumEntry("windowBorderInactiveStyle", 1 ); // solid
|
|
|
|
|
|
|
|
|
|
desktopTitleFont = tdeApp->config()->readFontEntry("desktopTitleFont", new TQFont( "arial", 10 ) );
|
|
|
|
|
desktopTitleFontColor = tdeApp->config()->readColorEntry("desktopTitleFontColor", new TQColor(TQt::gray) );
|
|
|
|
|
desktopTitleFontHighlightColor = tdeApp->config()->readColorEntry("desktopTitleFontHighlightColor", new TQColor(TQt::black) );
|
|
|
|
|
desktopTitleFont = kapp->config()->readFontEntry("desktopTitleFont", new TQFont( "arial", 10 ) );
|
|
|
|
|
desktopTitleFontColor = kapp->config()->readColorEntry("desktopTitleFontColor", new TQColor(TQt::gray) );
|
|
|
|
|
desktopTitleFontHighlightColor = kapp->config()->readColorEntry("desktopTitleFontHighlightColor", new TQColor(TQt::black) );
|
|
|
|
|
|
|
|
|
|
cacheScaledPixmaps = tdeApp->config()->readBoolEntry("cacheScaledPixmaps", true);
|
|
|
|
|
cacheScaledPixmaps = kapp->config()->readBoolEntry("cacheScaledPixmaps", true);
|
|
|
|
|
|
|
|
|
|
activateOnTopLeftCorner = tdeApp->config()->readBoolEntry("activateOnTopLeftCorner", false );
|
|
|
|
|
activateOnTopRightCorner = tdeApp->config()->readBoolEntry("activateOnTopRightCorner", false );
|
|
|
|
|
activateOnBottomLeftCorner = tdeApp->config()->readBoolEntry("activateOnBottomLeftCorner", false );
|
|
|
|
|
activateOnBottomRightCorner = tdeApp->config()->readBoolEntry("activateOnBottomRightCorner", false );
|
|
|
|
|
activateOnTopLeftCorner = kapp->config()->readBoolEntry("activateOnTopLeftCorner", false );
|
|
|
|
|
activateOnTopRightCorner = kapp->config()->readBoolEntry("activateOnTopRightCorner", false );
|
|
|
|
|
activateOnBottomLeftCorner = kapp->config()->readBoolEntry("activateOnBottomLeftCorner", false );
|
|
|
|
|
activateOnBottomRightCorner = kapp->config()->readBoolEntry("activateOnBottomRightCorner", false );
|
|
|
|
|
|
|
|
|
|
activateOnTopEdge = tdeApp->config()->readBoolEntry("activateOnTopEdge", false );
|
|
|
|
|
activateOnBottomEdge = tdeApp->config()->readBoolEntry("activateOnBottomEdge", false );
|
|
|
|
|
activateOnLeftEdge = tdeApp->config()->readBoolEntry("activateOnLeftEdge", false );
|
|
|
|
|
activateOnRightEdge = tdeApp->config()->readBoolEntry("activateOnRightEdge", false );
|
|
|
|
|
activateOnTopEdge = kapp->config()->readBoolEntry("activateOnTopEdge", false );
|
|
|
|
|
activateOnBottomEdge = kapp->config()->readBoolEntry("activateOnBottomEdge", false );
|
|
|
|
|
activateOnLeftEdge = kapp->config()->readBoolEntry("activateOnLeftEdge", false );
|
|
|
|
|
activateOnRightEdge = kapp->config()->readBoolEntry("activateOnRightEdge", false );
|
|
|
|
|
|
|
|
|
|
autoLockDelay = tdeApp->config()->readNumEntry("autoLockDelay", 1000);
|
|
|
|
|
autoLockDelay = kapp->config()->readNumEntry("autoLockDelay", 1000);
|
|
|
|
|
|
|
|
|
|
showDesktopNum = tdeApp->config()->readBoolEntry("showDesktopNum", false );
|
|
|
|
|
showDesktopNum = kapp->config()->readBoolEntry("showDesktopNum", false );
|
|
|
|
|
|
|
|
|
|
viewScreen = tdeApp->config()->readNumEntry("viewScreen", -1);
|
|
|
|
|
viewScreen = kapp->config()->readNumEntry("viewScreen", -1);
|
|
|
|
|
|
|
|
|
|
calcFontMetrics();
|
|
|
|
|
emit settingsChanged();
|
|
|
|
@ -151,58 +151,58 @@ void KomposeSettings::writeConfig()
|
|
|
|
|
globalAccel->updateConnections();
|
|
|
|
|
|
|
|
|
|
// Read from config file
|
|
|
|
|
tdeApp->config()->setGroup("Main window");
|
|
|
|
|
kapp->config()->setGroup("Main window");
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("defaultView", defaultView );
|
|
|
|
|
kapp->config()->writeEntry("defaultView", defaultView );
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("useComposite", useComposite );
|
|
|
|
|
kapp->config()->writeEntry("useComposite", useComposite );
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("passiveScreenshots", passiveScreenshots );
|
|
|
|
|
tdeApp->config()->writeEntry("screenshotGrabDelay", screenshotGrabDelay);
|
|
|
|
|
kapp->config()->writeEntry("passiveScreenshots", passiveScreenshots );
|
|
|
|
|
kapp->config()->writeEntry("screenshotGrabDelay", screenshotGrabDelay);
|
|
|
|
|
|
|
|
|
|
// tdeApp->config()->writeEntry("dynamicVirtDeskLayout", dynamicVirtDeskLayout);
|
|
|
|
|
// kapp->config()->writeEntry("dynamicVirtDeskLayout", dynamicVirtDeskLayout);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("imageEffects", imageEffects);
|
|
|
|
|
tdeApp->config()->writeEntry("blurBackground", blurBackground);
|
|
|
|
|
kapp->config()->writeEntry("imageEffects", imageEffects);
|
|
|
|
|
kapp->config()->writeEntry("blurBackground", blurBackground);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("showIcons", showIcons);
|
|
|
|
|
tdeApp->config()->writeEntry("iconSize", iconSize);
|
|
|
|
|
kapp->config()->writeEntry("showIcons", showIcons);
|
|
|
|
|
kapp->config()->writeEntry("iconSize", iconSize);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("showWindowTitles", showWindowTitles);
|
|
|
|
|
tdeApp->config()->writeEntry("windowTitleFont", windowTitleFont);
|
|
|
|
|
tdeApp->config()->writeEntry("windowTitleFontColor", windowTitleFontColor);
|
|
|
|
|
tdeApp->config()->writeEntry("showWindowTitleShadow", showWindowTitleShadow);
|
|
|
|
|
tdeApp->config()->writeEntry("windowTitleFontShadowColor", windowTitleFontShadowColor);
|
|
|
|
|
kapp->config()->writeEntry("showWindowTitles", showWindowTitles);
|
|
|
|
|
kapp->config()->writeEntry("windowTitleFont", windowTitleFont);
|
|
|
|
|
kapp->config()->writeEntry("windowTitleFontColor", windowTitleFontColor);
|
|
|
|
|
kapp->config()->writeEntry("showWindowTitleShadow", showWindowTitleShadow);
|
|
|
|
|
kapp->config()->writeEntry("windowTitleFontShadowColor", windowTitleFontShadowColor);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("windowBorderActiveColor", windowBorderActiveColor);
|
|
|
|
|
tdeApp->config()->writeEntry("windowBorderInactiveColor", windowBorderInactiveColor );
|
|
|
|
|
tdeApp->config()->writeEntry("windowBorderActiveWidth", windowBorderActiveWidth );
|
|
|
|
|
tdeApp->config()->writeEntry("windowBorderInactiveWidth", windowBorderInactiveWidth );
|
|
|
|
|
tdeApp->config()->writeEntry("windowBorderActiveStyle", windowBorderActiveStyle );
|
|
|
|
|
tdeApp->config()->writeEntry("windowBorderInactiveStyle", windowBorderInactiveStyle );
|
|
|
|
|
kapp->config()->writeEntry("windowBorderActiveColor", windowBorderActiveColor);
|
|
|
|
|
kapp->config()->writeEntry("windowBorderInactiveColor", windowBorderInactiveColor );
|
|
|
|
|
kapp->config()->writeEntry("windowBorderActiveWidth", windowBorderActiveWidth );
|
|
|
|
|
kapp->config()->writeEntry("windowBorderInactiveWidth", windowBorderInactiveWidth );
|
|
|
|
|
kapp->config()->writeEntry("windowBorderActiveStyle", windowBorderActiveStyle );
|
|
|
|
|
kapp->config()->writeEntry("windowBorderInactiveStyle", windowBorderInactiveStyle );
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("desktopTitleFont", desktopTitleFont);
|
|
|
|
|
tdeApp->config()->writeEntry("desktopTitleFontColor", desktopTitleFontColor);
|
|
|
|
|
tdeApp->config()->writeEntry("desktopTitleFontHighlightColor", desktopTitleFontHighlightColor);
|
|
|
|
|
kapp->config()->writeEntry("desktopTitleFont", desktopTitleFont);
|
|
|
|
|
kapp->config()->writeEntry("desktopTitleFontColor", desktopTitleFontColor);
|
|
|
|
|
kapp->config()->writeEntry("desktopTitleFontHighlightColor", desktopTitleFontHighlightColor);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("cacheScaledPixmaps", cacheScaledPixmaps);
|
|
|
|
|
kapp->config()->writeEntry("cacheScaledPixmaps", cacheScaledPixmaps);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnTopLeftCorner", activateOnTopLeftCorner);
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnTopRightCorner", activateOnTopRightCorner);
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnBottomLeftCorner", activateOnBottomLeftCorner);
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnBottomRightCorner", activateOnBottomRightCorner);
|
|
|
|
|
kapp->config()->writeEntry("activateOnTopLeftCorner", activateOnTopLeftCorner);
|
|
|
|
|
kapp->config()->writeEntry("activateOnTopRightCorner", activateOnTopRightCorner);
|
|
|
|
|
kapp->config()->writeEntry("activateOnBottomLeftCorner", activateOnBottomLeftCorner);
|
|
|
|
|
kapp->config()->writeEntry("activateOnBottomRightCorner", activateOnBottomRightCorner);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnTopEdge", activateOnTopEdge);
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnBottomEdge", activateOnBottomEdge);
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnLeftEdge", activateOnLeftEdge);
|
|
|
|
|
tdeApp->config()->writeEntry("activateOnRightEdge", activateOnRightEdge);
|
|
|
|
|
tdeApp->config()->writeEntry("autoLockDelay", autoLockDelay);
|
|
|
|
|
kapp->config()->writeEntry("activateOnTopEdge", activateOnTopEdge);
|
|
|
|
|
kapp->config()->writeEntry("activateOnBottomEdge", activateOnBottomEdge);
|
|
|
|
|
kapp->config()->writeEntry("activateOnLeftEdge", activateOnLeftEdge);
|
|
|
|
|
kapp->config()->writeEntry("activateOnRightEdge", activateOnRightEdge);
|
|
|
|
|
kapp->config()->writeEntry("autoLockDelay", autoLockDelay);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("showDesktopNum", showDesktopNum);
|
|
|
|
|
kapp->config()->writeEntry("showDesktopNum", showDesktopNum);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->writeEntry("viewScreen", viewScreen);
|
|
|
|
|
kapp->config()->writeEntry("viewScreen", viewScreen);
|
|
|
|
|
|
|
|
|
|
tdeApp->config()->sync();
|
|
|
|
|
kapp->config()->sync();
|
|
|
|
|
|
|
|
|
|
kdDebug() << "KomposeSettings::writeConfig() - Settings saved to cfg file" << endl;
|
|
|
|
|
|
|
|
|
|