Patch to add GUI controls for the logoff gray fadeaway.

Work is needed to provide sliders to control darkness and fade speeds.
This partially resolves bug report 258.
(cherry picked from commit daff95cb2a)
v3.5.13-sru
Darrell Anderson 12 years ago committed by Slávek Banko
parent b92a8db453
commit 04295ebd9a

@ -94,6 +94,7 @@ void SMServerConfig::load(bool useDefaults )
c->setGroup("Logout"); c->setGroup("Logout");
dialog->showLogoutStatusDialog->setChecked(c->readBoolEntry("showLogoutStatusDlg", true)); dialog->showLogoutStatusDialog->setChecked(c->readBoolEntry("showLogoutStatusDlg", true));
dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true));
delete c; delete c;
@ -123,6 +124,7 @@ void SMServerConfig::save()
c->writeEntry("excludeApps", dialog->excludeLineedit->text()); c->writeEntry("excludeApps", dialog->excludeLineedit->text());
c->setGroup("Logout"); c->setGroup("Logout");
c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked()); c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked());
c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked());
c->sync(); c->sync();
delete c; delete c;

@ -54,6 +54,20 @@
<string>Check this option if you want the session manager to display a logout confirmation dialog box.</string> <string>Check this option if you want the session manager to display a logout confirmation dialog box.</string>
</property> </property>
</widget> </widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>showFancyFadeAway</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Show fancy &amp;logout fadeaway</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want to see a fancy fadeaway when displaying a logout confirmation dialog box.</string>
</property>
</widget>
<widget class="TQCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>offerShutdownCheck</cstring> <cstring>offerShutdownCheck</cstring>
@ -217,6 +231,18 @@
<receiver>SMServerConfigDlg</receiver> <receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot> <slot>configChanged()</slot>
</connection> </connection>
<connection>
<sender>confirmLogoutCheck</sender>
<signal>toggled(bool)</signal>
<receiver>showFancyFadeAway</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>showFancyFadeAway</sender>
<signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot>
</connection>
<connection> <connection>
<sender>showLogoutStatusDialog</sender> <sender>showLogoutStatusDialog</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>

Loading…
Cancel
Save