Lochlin Duperron
553e1f391a
Adds batch convert support to the VLC GUI.
This commit modifies the convert wizard to accept multiple files from the file dialog box
The GUI should operate the same when a single file is selected (providing
an option of where and what to name the file), but when multiple files are
selected the files are placed into the same folder with the same name and a
new extention (there is an option to append -converted if you are converting
to the same extention).
There are some tooltips to explain this operation.
Most of the changes are pretty straight-forward, converting QStrings to
QStringLists and passing the full list of MRLs around. The playlist already
supports the batch processing in a pretty straightforward way, so there's no
issues there.
StandardPanel.cpp was modified to create a temp QStringList for passing to the
streamingDialog, as it now takes the full list of input files rather than just
one
Convert.cpp/hpp modified to take the QStringList and to behave (semi)-intelligently when reciving multiple files,
Open.cpp modified to pass the MRLs rather than MRL[0]
and the Dialogs_provider.cpp/hpp to pass the MRLs along, pretty much.
It also clears the playlist when recieving a list and starts the playlist from the beginning when it's added all the files to be converted.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
12 years ago
Erwan Tulou
2ba05d1ff0
Qt: fix regression about popupmenu
Always rely on the Dialog Provider to manage the popupmenu.
This fixes a regression brought by 01f2d198c1
12 years ago
Erwan Tulou
79ad172e33
Qt(dialog provider): fix utf8 issue with generic dialog box title
12 years ago
Erwan Tulou
01f2d198c1
Qt(Dialog provider): Add support for key accelerators
12 years ago
Jean-Baptiste Kempf
4a7e027c79
Qt: factorize directory opening
12 years ago
Jean-Baptiste Kempf
7f2ce08ccc
Qt: move getDirectoryDialog to a static helper
12 years ago
Jean-Baptiste Kempf
2f1adbff40
Qt: rename helper for more clarity
12 years ago
Jean-Baptiste Kempf
c4d99d3b17
Qt: openItem was almost always used to pass options
So, create a method using QStringList and not input_item.
This should be cleaner in the calling sites, and avoid
calling input_item_new from Qt code
12 years ago
Jean-Baptiste Kempf
c4d2180d81
Qt: use the open helper for streaming
12 years ago
Jean-Baptiste Kempf
a46006ea25
Qt: use the open helper to open directories
And there was no need to use the Item version, and the MRL was bogusly
added to RecentsMRL
12 years ago
Jean-Baptiste Kempf
4607174b30
Qt: DialogsProvider, use the open helper
12 years ago
Jean-Baptiste Kempf
04cb255651
Qt: move playMRL slot from THEDP to RecentsMRL
12 years ago
Jean-Baptiste Kempf
84d9c73e85
Qt: use pl_Unlocked in playlist_Add calls
12 years ago
Jean-Baptiste Kempf
511888ee37
Show OSD when drag-n-dropping subtitles
And when it was successfully added
Close #8395
12 years ago
Jean-Baptiste Kempf
5981a20319
Qt: use DIR_SEP for BDMV and VIDEO_TS detection
12 years ago
Jean-Baptiste Kempf
b502075972
Qt: fix folder opening of DVD and BD on Windows
Close #6328
12 years ago
Gal Vinograd
2dd0fa30e2
Adding "save to playlist" menu item in submenu Recents.
adding RecentsMRL::toPlaylist()
refactoring functions to eliminate repeating code
refactoring public DialogProvider::saveAPlaylist() to private DialogProvider::saveAPlaylist(playlist_t *p_playlist, playlist_item_t *p_node)
and making new DialogProvider::savePlayingToPlaylist() and DialogProvider::saveRecentsToPlaylist()
this commit includes fixes related to Jean-Baptiste Kempf code review.
- fixing whitespace problem
- RecentsMRL::toPlaylist null handling
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
13 years ago
Francois Cartegnie
ca08ed0ece
Qt: Set popup entries logic into models, and keep interaction outside.
- popup now created according to the selected items and models.
- fixes view/popup model abstraction.
- allows introducing new methods/models.
14 years ago
Ludovic Fauvet
0d33f98e4c
Qt: QString::fromAscii has been deprecated in Qt5
13 years ago
Francois Cartegnie
fa31a2a05b
Qt: save playlist: missing unicode conversion
13 years ago
Rémi Denis-Courmont
aa4f0a5f1e
Revert "Qt: save playlist: use qtr() macro"
This reverts commit cec6c32f1e .
13 years ago
Francois Cartegnie
cec6c32f1e
Qt: save playlist: use qtr() macro
13 years ago
Francois Cartegnie
2283cdda5f
Qt: save playlist: force native dialog
13 years ago
Francois Cartegnie
f9c17d2ce6
Qt: saveAPlaylist: fix file extension logic ( fix #7578 )
13 years ago
Rémi Denis-Courmont
33dfab3c21
vlc_path2uri(): rename from make_URI() and always convert path
When there is an ambiguity, the caller is responsible for determining
whether a string is an URL or a path. In most cases, the string is
known as a file path.
14 years ago
Rémi Denis-Courmont
595db21adb
Qt4: remove unnecessary path to URL conversion
Recent entries are already MRLs.
14 years ago
Francois Cartegnie
11279e3885
Qt: use dynamic ID for DialogEvent
14 years ago
Francois Cartegnie
1b978bf8a0
Qt: MediaInfo: name panels for public method usage
14 years ago
Jean-Baptiste Kempf
3273505a50
Qt: correctly destroy EPG dialog
14 years ago
Jean-Baptiste Kempf
0fe06bc3f1
Qt: fix small error
This was not correctly saving the last opened folder with some encoding
14 years ago
Jean-Baptiste Kempf
28f37b5fd3
Qt: allow opening of BDMV hierarchies through open folder
14 years ago
Jean-Baptiste Kempf
547a75774f
Qt: remember last opened directory
14 years ago
Francois Cartegnie
3ce16b3704
Qt: simplify media filters
15 years ago
Francois Cartegnie
2dc2da86b9
Qt: menus: rename MenusManager to MenuBar.
as *Manager seems disliked.
15 years ago
Francois Cartegnie
76f155bda6
Qt: rename QVLCMenu to QVLCMenuManager.
Provides factory role & static methods but is not a menu itself (as the
previous name would let believe)
15 years ago
Jean-Baptiste Kempf
9b8667a845
Qt: Extendedpanel: move to a Dialog
Close #5335
15 years ago
Ludovic Fauvet
f53bb2ebf5
Qt4: ensure to give a valid URI to the playlist
The URI is only given to the core while the original mrl is kept for the
display.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
15 years ago
Jean-Baptiste Kempf
22f9521029
Qt: don't quit the application too early
Close #4883
15 years ago
Hugo Beauzée-Luyssen
e2b67cfb50
Qt4: fix playlist type when saving
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
15 years ago
Jean-Baptiste Kempf
c745ebb55a
Qt: use count() iso size() on Qt Containers
15 years ago
Rémi Denis-Courmont
629dbd8af1
Remove useless vlc_object parameter when creating an input item
15 years ago
Rémi Denis-Courmont
20dc6cedb4
Qt4: use QString or QByteArray instead of strdup()/free()
15 years ago
Jean-Baptiste Kempf
2d9a201090
Qt: fix memleak
And avoid a strdup(""); free() for nothing
15 years ago
Jean-Baptiste Kempf
d6c4c271cc
Fix opening of subtitles on Windows
Close #4296
15 years ago
Jean-Baptiste Kempf
ca0eddecb5
Qt, save the last extension used for saving playlist
Close #3094
Of course, there is a very more elegant way, but Qt Native Dialog on
Linux don't do it correctly. This is a Qt bug.
15 years ago
Jean-Baptiste Kempf
4e318891a4
Qt, playlist: fix a deadlock ( #3052 )
input_Read doesn't seem a good idea when input is a dvd://
Maybe use a playlist_PreparseEnqueue ?
15 years ago
Rémi Denis-Courmont
659bba5c45
Qt4: fix m3u8 export extension
15 years ago
Rémi Denis-Courmont
39a36910e1
Qt4: fix adding items on Win32
Pointed-out-by: 김정은 <sunqueen@paran.com>
15 years ago
Jakub Wieczorek
c200ffa3e9
Remove the filter patterns in the playlist file dialog from the translatable strings. These shouldn't be translated and malforming them could introduce a functional bug, as it happened in the case of the Spanish translation. http://trac.videolan.org/vlc/ticket/4376
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
16 years ago
Rémi Denis-Courmont
f73e107172
Qt4: simplification
16 years ago