Commit 7b00af57 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add Dump hotkey

parent 017f4aed
...@@ -298,3 +298,4 @@ static inline int StringToKey( char *psz_key ) ...@@ -298,3 +298,4 @@ static inline int StringToKey( char *psz_key )
#define ACTIONID_UNCROP_BOTTOM 77 #define ACTIONID_UNCROP_BOTTOM 77
#define ACTIONID_CROP_RIGHT 78 #define ACTIONID_CROP_RIGHT 78
#define ACTIONID_UNCROP_RIGHT 79 #define ACTIONID_UNCROP_RIGHT 79
#define ACTIONID_DUMP 80
...@@ -1153,6 +1153,8 @@ static const char *ppsz_pltree_descriptions[] = { N_("Default"), N_("Always"), N ...@@ -1153,6 +1153,8 @@ static const char *ppsz_pltree_descriptions[] = { N_("Default"), N_("Always"), N
#define RECORD_KEY_TEXT N_("Record") #define RECORD_KEY_TEXT N_("Record")
#define RECORD_KEY_LONGTEXT N_("Record access filter start/stop.") #define RECORD_KEY_LONGTEXT N_("Record access filter start/stop.")
#define DUMP_KEY_TEXT N_("Dump")
#define DUMP_KEY_LONGTEXT N_("Media dump access filter trigger.")
#define ZOOM_KEY_TEXT N_("Zoom") #define ZOOM_KEY_TEXT N_("Zoom")
#define ZOOM_KEY_LONGTEXT N_("Zoom") #define ZOOM_KEY_LONGTEXT N_("Zoom")
...@@ -1845,6 +1847,7 @@ vlc_module_begin(); ...@@ -1845,6 +1847,7 @@ vlc_module_begin();
# define KEY_HISTORY_BACK KEY_MODIFIER_COMMAND|'[' # define KEY_HISTORY_BACK KEY_MODIFIER_COMMAND|'['
# define KEY_HISTORY_FORWARD KEY_MODIFIER_COMMAND|']' # define KEY_HISTORY_FORWARD KEY_MODIFIER_COMMAND|']'
# define KEY_RECORD KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'r' # define KEY_RECORD KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'r'
# define KEY_DUMP KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'d'
#else #else
# define KEY_FULLSCREEN 'f' # define KEY_FULLSCREEN 'f'
...@@ -1927,6 +1930,7 @@ vlc_module_begin(); ...@@ -1927,6 +1930,7 @@ vlc_module_begin();
# define KEY_HISTORY_BACK KEY_MODIFIER_CTRL|'v' # define KEY_HISTORY_BACK KEY_MODIFIER_CTRL|'v'
# define KEY_HISTORY_FORWARD KEY_MODIFIER_CTRL|'b' # define KEY_HISTORY_FORWARD KEY_MODIFIER_CTRL|'b'
# define KEY_RECORD KEY_MODIFIER_CTRL|'r' # define KEY_RECORD KEY_MODIFIER_CTRL|'r'
# define KEY_DUMP KEY_MODIFIER_CTRL|KEY_MODIFIER_SHIFT|'d'
#endif #endif
add_key( "key-fullscreen", KEY_FULLSCREEN, NULL, FULLSCREEN_KEY_TEXT, add_key( "key-fullscreen", KEY_FULLSCREEN, NULL, FULLSCREEN_KEY_TEXT,
...@@ -2024,6 +2028,8 @@ vlc_module_begin(); ...@@ -2024,6 +2028,8 @@ vlc_module_begin();
HISTORY_FORWARD_TEXT, HISTORY_FORWARD_LONGTEXT, VLC_TRUE ); HISTORY_FORWARD_TEXT, HISTORY_FORWARD_LONGTEXT, VLC_TRUE );
add_key( "key-record", KEY_RECORD, NULL, add_key( "key-record", KEY_RECORD, NULL,
RECORD_KEY_TEXT, RECORD_KEY_LONGTEXT, VLC_TRUE ); RECORD_KEY_TEXT, RECORD_KEY_LONGTEXT, VLC_TRUE );
add_key( "key-dump", KEY_DUMP, NULL,
DUMP_KEY_TEXT, DUMP_KEY_LONGTEXT, VLC_TRUE );
add_key( "key-zoom", KEY_ZOOM, NULL, add_key( "key-zoom", KEY_ZOOM, NULL,
ZOOM_KEY_TEXT, ZOOM_KEY_LONGTEXT, VLC_TRUE ); ZOOM_KEY_TEXT, ZOOM_KEY_LONGTEXT, VLC_TRUE );
add_key( "key-unzoom", KEY_UNZOOM, NULL, add_key( "key-unzoom", KEY_UNZOOM, NULL,
...@@ -2280,5 +2286,6 @@ static struct hotkey p_hotkeys[] = ...@@ -2280,5 +2286,6 @@ static struct hotkey p_hotkeys[] =
{ "key-history-back", ACTIONID_HISTORY_BACK, 0, 0, 0, 0 }, { "key-history-back", ACTIONID_HISTORY_BACK, 0, 0, 0, 0 },
{ "key-history-forward", ACTIONID_HISTORY_FORWARD, 0, 0, 0, 0 }, { "key-history-forward", ACTIONID_HISTORY_FORWARD, 0, 0, 0, 0 },
{ "key-record", ACTIONID_RECORD, 0, 0, 0, 0 }, { "key-record", ACTIONID_RECORD, 0, 0, 0, 0 },
{ "key-dump", ACTIONID_DUMP, 0, 0, 0, 0 },
{ NULL, 0, 0, 0, 0, 0 } { NULL, 0, 0, 0, 0, 0 }
}; };
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