[Libreoffice-commits] core.git: include/sfx2 sfx2/source
Maxim Monastirsky
momonasmon at gmail.com
Mon Aug 31 08:43:38 PDT 2015
include/sfx2/sidebar/Sidebar.hrc | 1 +
sfx2/source/sidebar/Sidebar.src | 4 ++++
sfx2/source/sidebar/TabBar.cxx | 5 ++++-
3 files changed, 9 insertions(+), 1 deletion(-)
New commits:
commit b15be387b163ef5e2e338c4701643aac152ec407
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date: Mon Aug 31 18:38:00 2015 +0300
tdf#87009 Add a tooltip to the sidebar settings button
Change-Id: I6332e9c7c98f87885f40f4d99224cccfe582029c
diff --git a/include/sfx2/sidebar/Sidebar.hrc b/include/sfx2/sidebar/Sidebar.hrc
index 8f62aec..e1ab270 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 534bebd..b9ff0c2 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 3f6f430..f7fd362 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
More information about the Libreoffice-commits
mailing list