From c845e800f0d4b17bc5ce65806fa5fadd9468c858 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Apr 2012 04:43:18 +0300 Subject: Change auto hide screen buttons to 3 states (always show, hide in small window, always hide) --- src/gui/setup_other.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gui/setup_other.cpp') diff --git a/src/gui/setup_other.cpp b/src/gui/setup_other.cpp index 602f94fcb..ff678225f 100644 --- a/src/gui/setup_other.cpp +++ b/src/gui/setup_other.cpp @@ -164,8 +164,12 @@ Setup_Other::Setup_Other() new SetupItemLabel(_("Windows"), "", this); - new SetupItemCheckBox(_("Auto hide shortcuts buttons."), "", - "autohideButtons", this, "autohideButtonsEvent"); + mShortcutsList = new SetupItemNames(); + mShortcutsList->push_back(_("Always show")); + mShortcutsList->push_back(_("Auto hide in small resolution")); + mShortcutsList->push_back(_("Always auto hide")); + new SetupItemSlider2(_("Shortcut buttons"), "", "autohideButtons", this, + "autohideButtonsEvent", 0, 2, mShortcutsList, false, true, true); new SetupItemLabel(_("Proxy server"), "", this); @@ -222,6 +226,8 @@ Setup_Other::~Setup_Other() { delete mProxyTypeList; mProxyTypeList = nullptr; + delete mShortcutsList; + mShortcutsList = nullptr; } void Setup_Other::apply() -- cgit v1.2.3-70-g09d2