Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
d811cff9
Commit
d811cff9
authored
Jun 14, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: allow more flexibility on tab selection for Open.
parent
ecb12128
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+1
-0
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+4
-4
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+4
-3
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
d811cff9
...
...
@@ -251,6 +251,7 @@ void StandardPLPanel::popupAdd()
popup
.
addAction
(
qtr
(
I_PL_ADDF
),
THEDP
,
SLOT
(
MLAppendDialog
()
)
);
popup
.
addAction
(
qtr
(
I_PL_ADDDIR
),
THEDP
,
SLOT
(
MLAppendDir
()
)
);
}
popup
.
exec
(
QCursor
::
pos
()
-
addButton
->
mapFromGlobal
(
QCursor
::
pos
()
)
+
QPoint
(
0
,
addButton
->
height
()
)
);
}
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
d811cff9
...
...
@@ -349,17 +349,17 @@ void DialogsProvider::openCaptureDialog()
}
/* Same as the open one, but force the enqueue */
void
DialogsProvider
::
PLAppendDialog
()
void
DialogsProvider
::
PLAppendDialog
(
int
tab
)
{
OpenDialog
::
getInstance
(
p_intf
->
p_sys
->
p_mi
,
p_intf
,
false
,
OPEN_AND_ENQUEUE
)
->
showTab
(
OPEN_FILE_TAB
);
OPEN_AND_ENQUEUE
)
->
showTab
(
tab
);
}
void
DialogsProvider
::
MLAppendDialog
()
void
DialogsProvider
::
MLAppendDialog
(
int
tab
)
{
OpenDialog
::
getInstance
(
p_intf
->
p_sys
->
p_mi
,
p_intf
,
false
,
OPEN_AND_ENQUEUE
,
false
,
false
)
->
showTab
(
OPEN_FILE_TAB
);
->
showTab
(
tab
);
}
/**
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
d811cff9
...
...
@@ -33,7 +33,9 @@
#include "qt4.hpp"
#include "dialogs/open.hpp"
#include <QObject>
#include <QStringList>
#define ADD_FILTER_MEDIA( string ) \
string += qtr( "Media Files" ); \
...
...
@@ -82,7 +84,6 @@ enum {
class
QEvent
;
class
QSignalMapper
;
class
QVLCMenu
;
#include <QStringList>
class
DialogsProvider
:
public
QObject
{
...
...
@@ -171,8 +172,8 @@ public slots:
void
openNetDialog
();
void
openCaptureDialog
();
void
PLAppendDialog
();
void
MLAppendDialog
();
void
PLAppendDialog
(
int
tab
=
OPEN_FILE_TAB
);
void
MLAppendDialog
(
int
tab
=
OPEN_FILE_TAB
);
void
PLOpenDir
();
void
PLAppendDir
();
...
...
Write
Preview
Markdown
is supported
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