Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
19f019c7
Commit
19f019c7
authored
Sep 23, 2006
by
Christophe Mutricy
Browse files
Add a "Media Files" extension list + i18n
parent
35b15af9
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc_interface.h
View file @
19f019c7
...
...
@@ -186,4 +186,7 @@ VLC_EXPORT( void, intf_Destroy, ( intf_thread_t * ) );
#define EXTENSIONS_PLAYLIST "*.asx;*.b4s;*.m3u;*.pls;*.vlc;*.xspf"
#define EXTENSIONS_MEDIA EXTENSIONS_VIDEO ";" EXTENSIONS_AUDIO ";" \
EXTENSIONS_PLAYLIST
#define EXTENSIONS_SUBTITLE "*.idx;*.srt;*.sub;*.utf"
modules/gui/qt4/dialogs_provider.cpp
View file @
19f019c7
...
...
@@ -276,13 +276,24 @@ void DialogsProvider::openMLDirectory()
QStringList
DialogsProvider
::
showSimpleOpen
()
{
QString
FileTypes
;
FileTypes
=
"Video Files ( "
;
FileTypes
=
_
(
"Media Files"
);
FileTypes
+=
" ( "
;
FileTypes
+=
EXTENSIONS_MEDIA
;
FileTypes
+=
");;"
;
FileTypes
+=
_
(
"Video Files"
);
FileTypes
+=
" ( "
;
FileTypes
+=
EXTENSIONS_VIDEO
;
FileTypes
+=
");; Sound Files ( "
;
FileTypes
+=
");;"
;
FileTypes
+=
_
(
"Sound Files"
);
FileTypes
+=
" ( "
;
FileTypes
+=
EXTENSIONS_AUDIO
;
FileTypes
+=
");; PlayList Files ( "
;
FileTypes
+=
");;"
;
FileTypes
+=
_
(
"PlayList Files"
);
FileTypes
+=
" ( "
;
FileTypes
+=
EXTENSIONS_PLAYLIST
;
FileTypes
+=
");; All Files (*.*)"
;
FileTypes
+=
");;"
;
FileTypes
+=
_
(
"All Files"
);
FileTypes
+=
" (*.*)"
;
FileTypes
.
replace
(
QString
(
";*"
),
QString
(
" *"
));
return
QFileDialog
::
getOpenFileNames
(
NULL
,
qfu
(
I_POP_SEL_FILES
),
p_intf
->
p_libvlc
->
psz_homedir
,
FileTypes
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment