Commit 2762e73e authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

Qt: allow to add a renderer button in the toolbar

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 41457d44
......@@ -366,6 +366,7 @@ DEPS_res = \
pixmaps/toolbar/atob.png \
pixmaps/toolbar/atob_noa.png \
pixmaps/toolbar/atob_nob.png \
pixmaps/toolbar/renderer.png \
pixmaps/toolbar/defullscreen.png \
pixmaps/toolbar/dvd_menu.png \
pixmaps/toolbar/dvd_next.png \
......
......@@ -478,6 +478,10 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
CONNECT_MAP_SET( play, PLAY_ACTION );
}
break;
case RENDERER_BUTTON:{
NORMAL_BUTTON( RENDERER );
}
break;
case ASPECT_RATIO_COMBOBOX:
widget = new AspectRatioComboBox( p_intf );
widget->setMinimumHeight( 26 );
......
......@@ -81,6 +81,7 @@ typedef enum buttonType_e
NEXT_BUTTON,
OPEN_SUB_BUTTON,
FULLWIDTH_BUTTON,
RENDERER_BUTTON,
BUTTON_MAX,
SPLITTER = 0x20,
......@@ -110,7 +111,7 @@ static const char* const nameL[BUTTON_MAX] = { N_("Play"), N_("Stop"), N_("Open"
N_("Record"), N_("A→B Loop"), N_("Frame By Frame"), N_("Trickplay Reverse"),
N_("Step backward" ), N_("Step forward"), N_("Quit"), N_("Random"),
N_("Loop / Repeat"), N_("Information"), N_("Previous"), N_("Next"),
N_("Open subtitles"), N_("Dock fullscreen controller")
N_("Open subtitles"), N_("Dock fullscreen controller"), N_("Renderer output")
};
static const char* const tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
N_("Stop playback"), N_("Open a medium"),
......@@ -124,7 +125,8 @@ static const char* const tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
N_("Random"), N_("Change the loop and repeat modes"), N_("Information"),
N_("Previous media in the playlist"), N_("Next media in the playlist"),
N_("Open subtitle file"),
N_("Dock/undock fullscreen controller to/from bottom of screen")
N_("Dock/undock fullscreen controller to/from bottom of screen"),
N_("Select a Renderer device to output video/audio")
};
static const QString iconL[BUTTON_MAX] ={ ":/toolbar/play_b", ":/toolbar/stop_b",
":/toolbar/eject", ":/toolbar/previous_b", ":/toolbar/next_b",
......@@ -134,7 +136,8 @@ static const QString iconL[BUTTON_MAX] ={ ":/toolbar/play_b", ":/toolbar/stop_b"
":/toolbar/frame", ":/toolbar/reverse", ":/toolbar/skip_back",
":/toolbar/skip_fw", ":/toolbar/clear", ":/buttons/playlist/shuffle_on",
":/buttons/playlist/repeat_all", ":/menu/info",
":/toolbar/previous_b", ":/toolbar/next_b", ":/toolbar/eject", ":/toolbar/space"
":/toolbar/previous_b", ":/toolbar/next_b", ":/toolbar/eject", ":/toolbar/space",
":/toolbar/renderer"
};
enum
......
......@@ -42,6 +42,7 @@
<file alias="previous_b">pixmaps/previous.png</file>
<file alias="eject">pixmaps/eject.png</file>
<file alias="fullscreen">pixmaps/toolbar/fullscreen.png</file>
<file alias="renderer">pixmaps/toolbar/renderer.png</file>
<file alias="defullscreen">pixmaps/toolbar/defullscreen.png</file>
<file alias="extended">pixmaps/toolbar/extended_16px.png</file>
<file alias="playlist">pixmaps/playlist/playlist.png</file>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment