Commit f369d2b3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: icons for skip and eject buttons.

parent 657a734b
...@@ -661,6 +661,14 @@ void AbstractController::doAction( int id_action ) ...@@ -661,6 +661,14 @@ void AbstractController::doAction( int id_action )
frame(); break; frame(); break;
case REVERSE_ACTION: case REVERSE_ACTION:
reverse(); break; reverse(); break;
case SKIP_BACK_ACTION:
var_SetInteger( p_intf->p_libvlc, "key-pressed",
ACTIONID_JUMP_BACKWARD_SHORT );
break;
case SKIP_FW_ACTION:
var_SetInteger( p_intf->p_libvlc, "key-pressed",
ACTIONID_JUMP_FORWARD_SHORT );
break;
default: default:
msg_Dbg( p_intf, "Action: %i", id_action ); msg_Dbg( p_intf, "Action: %i", id_action );
break; break;
......
...@@ -76,6 +76,8 @@ typedef enum buttonType_e ...@@ -76,6 +76,8 @@ typedef enum buttonType_e
ATOB_BUTTON, ATOB_BUTTON,
FRAME_BUTTON, FRAME_BUTTON,
REVERSE_BUTTON, REVERSE_BUTTON,
SKIP_BACK_BUTTON,
SKIP_FW_BUTTON,
BUTTON_MAX, BUTTON_MAX,
SPLITTER = 0x20, SPLITTER = 0x20,
...@@ -97,7 +99,7 @@ typedef enum buttonType_e ...@@ -97,7 +99,7 @@ typedef enum buttonType_e
static const QString nameL[BUTTON_MAX] = { "Play", "Stop", "Open", static const QString nameL[BUTTON_MAX] = { "Play", "Stop", "Open",
"Previous", "Next", "Slower", "Faster", "Fullscreen", "De-Fullscreen", "Previous", "Next", "Slower", "Faster", "Fullscreen", "De-Fullscreen",
"Extended panel", "Playlist", "Snapshot", "Record", "A->B Loop", "Extended panel", "Playlist", "Snapshot", "Record", "A->B Loop",
"Frame By Frame", "Reverse" }; "Frame By Frame", "Reverse", "Skip backward" , "Skip forward" };
static const QString tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP, static const QString tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
_("Stop playback"), _("Open a media"), _("Stop playback"), _("Open a media"),
_("Previous media in the playlist"), _("Previous media in the playlist"),
...@@ -105,11 +107,11 @@ static const QString tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP, ...@@ -105,11 +107,11 @@ static const QString tooltipL[BUTTON_MAX] = { I_PLAY_TOOLTIP,
_("Toggle the video in fullscreen"), _("Toggle the video out fullscreen"), _("Toggle the video in fullscreen"), _("Toggle the video out fullscreen"),
_("Show extended settings" ), _( "Show playlist" ), _( "Take a snapshot" ), _("Show extended settings" ), _( "Show playlist" ), _( "Take a snapshot" ),
_( "Record" ), _( "Loop from point A to point B continuously." ), _( "Record" ), _( "Loop from point A to point B continuously." ),
_("Frame by frame"), _("Reverse") }; _("Frame by frame"), _("Reverse"), _("Skip backward"), _("Skip forward") };
static const QString iconL[BUTTON_MAX] ={ ":/play_b", ":/stop_b", "", static const QString iconL[BUTTON_MAX] ={ ":/play_b", ":/stop_b", ":/eject",
":/previous_b", ":/next_b", ":/slower", ":/faster", ":/fullscreen", ":/previous_b", ":/next_b", ":/slower", ":/faster", ":/fullscreen",
":/defullscreen", ":/extended", ":/playlist", ":/snapshot", ":/record", ":/defullscreen", ":/extended", ":/playlist", ":/snapshot", ":/record",
":/atob_nob", ":/frame", ":/reverse" }; ":/atob_nob", ":/frame", ":/reverse", ":/skip_back", ":/skip_fw" };
typedef enum actionType_e typedef enum actionType_e
{ {
...@@ -127,6 +129,8 @@ typedef enum actionType_e ...@@ -127,6 +129,8 @@ typedef enum actionType_e
FRAME_ACTION, FRAME_ACTION,
ATOB_ACTION, ATOB_ACTION,
REVERSE_ACTION, REVERSE_ACTION,
SKIP_BACK_ACTION,
SKIP_FW_ACTION,
} actionType_e; } actionType_e;
enum enum
......
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