summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-08-31 18:38:00 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-08-31 18:41:27 +0300
commitb15be387b163ef5e2e338c4701643aac152ec407 (patch)
tree89b0ff0c0fbb895287759b64007e42b7767a0e8f
parent860d6948cc56104f7de3d5bf3b5aa1d7f1fbd840 (diff)
tdf#87009 Add a tooltip to the sidebar settings button
Change-Id: I6332e9c7c98f87885f40f4d99224cccfe582029c
-rw-r--r--include/sfx2/sidebar/Sidebar.hrc1
-rw-r--r--sfx2/source/sidebar/Sidebar.src4
-rw-r--r--sfx2/source/sidebar/TabBar.cxx5
3 files changed, 9 insertions, 1 deletions
diff --git a/include/sfx2/sidebar/Sidebar.hrc b/include/sfx2/sidebar/Sidebar.hrc
index 8f62aecbc91d..e1ab27043c37 100644
--- a/include/sfx2/sidebar/Sidebar.hrc
+++ b/include/sfx2/sidebar/Sidebar.hrc
@@ -56,5 +56,6 @@
#define SFX_STR_SIDEBAR_MORE_OPTIONS (RID_SFX_SIDEBAR_START + 1)
#define SFX_STR_SIDEBAR_CLOSE_DECK (RID_SFX_SIDEBAR_START + 2)
+#define SFX_STR_SIDEBAR_SETTINGS (RID_SFX_SIDEBAR_START + 3)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/sidebar/Sidebar.src b/sfx2/source/sidebar/Sidebar.src
index 534bebd02815..b9ff0c2821a9 100644
--- a/sfx2/source/sidebar/Sidebar.src
+++ b/sfx2/source/sidebar/Sidebar.src
@@ -170,5 +170,9 @@ String SFX_STR_SIDEBAR_CLOSE_DECK
Text [en-US] = "Close Sidebar Deck";
};
+String SFX_STR_SIDEBAR_SETTINGS
+{
+ Text [en-US] = "Sidebar Settings";
+};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 3f6f430752b2..f7fd36207686 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -25,9 +25,11 @@
#include <sfx2/sidebar/Theme.hxx>
#include <sfx2/sidebar/Tools.hxx>
#include <sfx2/sidebar/FocusManager.hxx>
-
#include <sfx2/sidebar/SidebarController.hxx>
+#include <sfx2/sfxresid.hxx>
+#include <sfx2/sidebar/Sidebar.hrc>
+
#include <vcl/gradient.hxx>
#include <vcl/image.hxx>
#include <vcl/wrkwin.hxx>
@@ -60,6 +62,7 @@ TabBar::TabBar(vcl::Window* pParentWindow,
mpMenuButton->SetModeImage(Theme::GetImage(Theme::Image_TabBarMenu));
mpMenuButton->SetClickHdl(LINK(this, TabBar, OnToolboxClicked));
+ mpMenuButton->SetQuickHelpText(SFX2_RESSTR(SFX_STR_SIDEBAR_SETTINGS));
Layout();
#ifdef DEBUG