From 80035308b1907d75e7e09be7c8f6e14098edd533 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 4 Aug 2011 08:18:22 +0000 Subject: 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 --- kcontrol/kicker/advancedDialog.cpp | 17 +++++++++++++++++ kcontrol/kicker/advancedOptions.ui | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) (limited to 'kcontrol/kicker') 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 @@ + + + groupBox3 + + + Texture + + + + unnamed + + + + kickerResizeHandle + + + Show resize handle on panels + + + Enabling this option will show a resize handle on the resizable end of each panel. + + + + + kickerDeepButtons + + + Use deep buttons + + + Enabling this option will yield more highly textured panels. + + + + -- cgit v1.2.1