Add GUI option to choose between standard and Ubuntu-style shutdown dialog.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/468/head
Michele Calgaro 8 months ago
parent a7dc4c51d5
commit 78d96bd200
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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->showUbuntuStyleDialog->setChecked(c->readBoolEntry("doUbuntuLogout", false));
dialog->showFadeAway->setChecked(c->readBoolEntry("doFadeaway", true)); dialog->showFadeAway->setChecked(c->readBoolEntry("doFadeaway", true));
dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true)); dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true));
dialog->showFancyFadeAway->setEnabled(dialog->confirmLogoutCheck->isChecked() && dialog->showFadeAway->isChecked()), dialog->showFancyFadeAway->setEnabled(dialog->confirmLogoutCheck->isChecked() && dialog->showFadeAway->isChecked()),
@ -126,6 +127,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( "doUbuntuLogout", dialog->showUbuntuStyleDialog->isChecked());
c->writeEntry( "doFadeaway", dialog->showFadeAway->isChecked()); c->writeEntry( "doFadeaway", dialog->showFadeAway->isChecked());
c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked()); c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked());
c->sync(); c->sync();

@ -104,6 +104,17 @@
<string>Check this option if you want to see a dialog box showing the logout status.</string> <string>Check this option if you want to see a dialog box showing the logout status.</string>
</property> </property>
</widget> </widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>showUbuntuStyleDialog</cstring>
</property>
<property name="text">
<string>Use &amp;alternative shutdown dialog layout</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want to use an alternative shutdown dialog, where buttons are arranged in rows rathen then columns. This layout is popular in Ubuntu and therefore it is also known as 'Ubuntu style' shutdown dialog.</string>
</property>
</widget>
</vbox> </vbox>
</widget> </widget>
<widget class="TQButtonGroup"> <widget class="TQButtonGroup">
@ -266,6 +277,12 @@
<receiver>SMServerConfigDlg</receiver> <receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot> <slot>configChanged()</slot>
</connection> </connection>
<connection>
<sender>showUbuntuStyleDialog</sender>
<signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot>
</connection>
<connection> <connection>
<sender>loginGroup</sender> <sender>loginGroup</sender>
<signal>clicked(int)</signal> <signal>clicked(int)</signal>

Loading…
Cancel
Save