summaryrefslogtreecommitdiffstats
path: root/kcontrol
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-04 08:18:22 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-04 08:18:22 +0000
commit80035308b1907d75e7e09be7c8f6e14098edd533 (patch)
treed089bef7060df95dd21096b3e3f699036e617f02 /kcontrol
parente98e745f1a8b79a0444e6a4d60b0cb5c1b1f1ce0 (diff)
downloadtdebase-80035308b1907d75e7e09be7c8f6e14098edd533.tar.gz
tdebase-80035308b1907d75e7e09be7c8f6e14098edd533.zip
Add initial support for Kicker "Deep Buttons", a more highly textured style than the normal "flat" Kicker GUI
Add preliminary GUI and configuration structures needed for hot-resizing panels git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1244835 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol')
-rw-r--r--kcontrol/kicker/advancedDialog.cpp17
-rw-r--r--kcontrol/kicker/advancedOptions.ui35
2 files changed, 52 insertions, 0 deletions
diff --git a/kcontrol/kicker/advancedDialog.cpp b/kcontrol/kicker/advancedDialog.cpp
index 6da3bca4a..a6790d9c9 100644
--- a/kcontrol/kicker/advancedDialog.cpp
+++ b/kcontrol/kicker/advancedDialog.cpp
@@ -63,6 +63,10 @@ advancedDialog::advancedDialog(TQWidget* parent, const char* name)
this, TQT_SLOT(changed()));
connect(m_advancedWidget->menubarPanelTransparent, TQT_SIGNAL(clicked()),
this, TQT_SLOT(changed()));
+ connect(m_advancedWidget->kickerResizeHandle, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(changed()));
+ connect(m_advancedWidget->kickerDeepButtons, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(changed()));
load();
}
@@ -94,6 +98,11 @@ void advancedDialog::load()
bool transparentMenubarPanel = c.readBoolEntry("MenubarPanelTransparent", false);
m_advancedWidget->menubarPanelTransparent->setChecked( transparentMenubarPanel );
+ bool useKickerResizeHandle = c.readBoolEntry("UseResizeHandle", false);
+ m_advancedWidget->kickerResizeHandle->setChecked( useKickerResizeHandle );
+ bool usekickerDeepButtons = c.readBoolEntry("ShowDeepButtons", false);
+ m_advancedWidget->kickerDeepButtons->setChecked( usekickerDeepButtons );
+
enableButtonApply(false);
}
@@ -114,6 +123,10 @@ void advancedDialog::save()
m_advancedWidget->tintSlider->value());
c.writeEntry("MenubarPanelTransparent",
m_advancedWidget->menubarPanelTransparent->isChecked());
+ c.writeEntry("UseResizeHandle",
+ m_advancedWidget->kickerResizeHandle->isChecked());
+ c.writeEntry("ShowDeepButtons",
+ m_advancedWidget->kickerDeepButtons->isChecked());
TQStringList elist = c.readListEntry("Extensions2");
for (TQStringList::Iterator it = elist.begin(); it != elist.end(); ++it)
@@ -144,6 +157,10 @@ void advancedDialog::save()
m_advancedWidget->tintSlider->value());
extConfig.writeEntry("MenubarPanelTransparent",
m_advancedWidget->menubarPanelTransparent->isChecked());
+ extConfig.writeEntry("UseResizeHandle",
+ m_advancedWidget->kickerResizeHandle->isChecked());
+ extConfig.writeEntry("ShowDeepButtons",
+ m_advancedWidget->kickerDeepButtons->isChecked());
extConfig.sync();
}
diff --git a/kcontrol/kicker/advancedOptions.ui b/kcontrol/kicker/advancedOptions.ui
index b867b6094..5f0866c3b 100644
--- a/kcontrol/kicker/advancedOptions.ui
+++ b/kcontrol/kicker/advancedOptions.ui
@@ -298,6 +298,41 @@
</widget>
</grid>
</widget>
+ <widget class="TQGroupBox">
+ <property name="name">
+ <cstring>groupBox3</cstring>
+ </property>
+ <property name="title">
+ <string>Texture</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQCheckBox" row="0" column="0" rowspan="0" colspan="2">
+ <property name="name">
+ <cstring>kickerResizeHandle</cstring>
+ </property>
+ <property name="text">
+ <string>Show resize handle on panels</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enabling this option will show a resize handle on the resizable end of each panel.</string>
+ </property>
+ </widget>
+ <widget class="TQCheckBox" row="0" column="2" rowspan="0" colspan="2">
+ <property name="name">
+ <cstring>kickerDeepButtons</cstring>
+ </property>
+ <property name="text">
+ <string>Use deep buttons</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Enabling this option will yield more highly textured panels.</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
</vbox>
</widget>
<tabstops>