From 2161abff3510dd591db30d94911241436c90c4d4 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Thu, 19 Oct 2017 19:48:11 +0200 Subject: tdf#87808 Add missing tooltips to Media Playback toolbar For the Position and the Volume sliders Change-Id: Ie7eee332b05e9a6cfc8165cf7b7b59695c58b458 Reviewed-on: https://gerrit.libreoffice.org/43571 Tested-by: Jenkins Reviewed-by: Katarina Behrens --- avmedia/inc/strings.hrc | 2 ++ avmedia/source/framework/MediaControlBase.cxx | 2 ++ 2 files changed, 4 insertions(+) (limited to 'avmedia') diff --git a/avmedia/inc/strings.hrc b/avmedia/inc/strings.hrc index b4e260ad4363..78c39db02682 100644 --- a/avmedia/inc/strings.hrc +++ b/avmedia/inc/strings.hrc @@ -34,6 +34,8 @@ #define AVMEDIA_STR_ZOOM_100 NC_("AVMEDIA_STR_ZOOM_100", "100%") #define AVMEDIA_STR_ZOOM_200 NC_("AVMEDIA_STR_ZOOM_200", "200%") #define AVMEDIA_STR_ZOOM_FIT NC_("AVMEDIA_STR_ZOOM_FIT", "Scaled") +#define AVMEDIA_STR_VOLUME NC_("AVMEDIA_STR_VOLUME", "Volume") +#define AVMEDIA_STR_POSITION NC_("AVMEDIA_STR_POSITION", "Position") #define AVMEDIA_STR_MEDIAPLAYER NC_("AVMEDIA_STR_MEDIAPLAYER", "Media Player") #define AVMEDIA_MEDIA_PATH NC_("AVMEDIA_MEDIA_PATH", "Media Path") #define AVMEDIA_MEDIA_PATH_DEFAULT NC_("AVMEDIA_MEDIA_PATH_DEFAULT", "No Media Selected") diff --git a/avmedia/source/framework/MediaControlBase.cxx b/avmedia/source/framework/MediaControlBase.cxx index 9b844907cbec..22d2b8896d3b 100644 --- a/avmedia/source/framework/MediaControlBase.cxx +++ b/avmedia/source/framework/MediaControlBase.cxx @@ -129,10 +129,12 @@ void MediaControlBase::InitializeWidgets() mpVolumeSlider->SetRange( Range( AVMEDIA_DB_RANGE, 0 ) ); mpVolumeSlider->SetUpdateMode( true ); + mpVolumeSlider->SetQuickHelpText( AvmResId( AVMEDIA_STR_VOLUME )); mpVolumeSlider->SetHelpId( HID_AVMEDIA_VOLUMESLIDER ); mpTimeSlider->SetRange( Range( 0, AVMEDIA_TIME_RANGE ) ); mpTimeSlider->SetUpdateMode( true ); + mpTimeSlider->SetQuickHelpText( AvmResId( AVMEDIA_STR_POSITION )); mpTimeSlider->SetStyle(WB_HORZ | WB_DRAG | WB_3DLOOK); mpTimeSlider->SetScrollTypeSet(true); } -- cgit