Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
97f221eb
Commit
97f221eb
authored
Dec 21, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Small open dialog refactoring for use for vlm dialog.
parent
fee86c5d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
192 additions
and
140 deletions
+192
-140
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+130
-89
modules/gui/qt4/dialogs/open.hpp
modules/gui/qt4/dialogs/open.hpp
+13
-20
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+3
-4
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+2
-1
modules/gui/qt4/ui/open.ui
modules/gui/qt4/ui/open.ui
+44
-26
No files found.
modules/gui/qt4/dialogs/open.cpp
View file @
97f221eb
This diff is collapsed.
Click to expand it.
modules/gui/qt4/dialogs/open.hpp
View file @
97f221eb
...
...
@@ -40,25 +40,12 @@ class OpenDialog : public QVLCDialog
Q_OBJECT
;
public:
static
OpenDialog
*
getInstance
(
QWidget
*
parent
,
intf_thread_t
*
p_intf
,
int
_action_flag
=
0
)
{
if
(
!
instance
)
instance
=
new
OpenDialog
(
parent
,
p_intf
,
false
,
_action_flag
);
else
{
instance
->
i_action_flag
=
_action_flag
;
instance
->
setMenuAction
();
}
return
instance
;
}
OpenDialog
(
QWidget
*
parent
,
intf_thread_t
*
,
bool
modal
,
int
_action_flag
=
0
);
int
_action_flag
=
0
,
bool
modal
=
false
);
virtual
~
OpenDialog
();
void
showTab
(
int
);
QString
mrl
;
QString
mainMRL
;
QString
getMRL
(){
return
mrl
;
}
public
slots
:
void
selectSlots
();
...
...
@@ -66,24 +53,30 @@ public slots:
void
stream
(
bool
b_transode_only
=
false
);
void
enqueue
();
void
transcode
();
private:
OpenDialog
(
QWidget
*
parent
,
intf_thread_t
*
,
bool
modal
,
int
_action_flag
=
0
);
static
OpenDialog
*
instance
;
input_thread_t
*
p_input
;
QString
mrl
;
QString
mainMRL
;
QString
storedMethod
;
Ui
::
Open
ui
;
FileOpenPanel
*
fileOpenPanel
;
NetOpenPanel
*
netOpenPanel
;
DiscOpenPanel
*
discOpenPanel
;
CaptureOpenPanel
*
captureOpenPanel
;
QString
storedMethod
;
QString
mrlSub
;
int
advHeight
,
mainHeight
;
int
i_action_flag
;
QStringList
SeparateEntries
(
QString
);
QPushButton
*
cancelButton
;
QPushButton
*
cancelButton
,
*
selectButton
;
QToolButton
*
playButton
;
void
finish
(
bool
);
private
slots
:
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
97f221eb
...
...
@@ -127,6 +127,7 @@ void DialogsProvider::customEvent( QEvent *event )
QVLCMenu
::
MiscPopupMenu
(
p_intf
);
break
;
case
INTF_DIALOG_WIZARD
:
case
INTF_DIALOG_STREAMWIZARD
:
openThenStreamingDialogs
();
break
;
#ifdef UPDATE_CHECK
case
INTF_DIALOG_UPDATEVLC
:
updateDialog
();
break
;
...
...
@@ -249,8 +250,7 @@ void DialogsProvider::PLAppendDialog()
/* Unimplemmented yet - Usefull ? */
void
DialogsProvider
::
MLAppendDialog
()
{
}
{}
/**
* Simple open
...
...
@@ -414,14 +414,13 @@ void DialogsProvider::saveAPlaylist()
* Sout emulation
****************************************************************************/
//FIXME !!
void
DialogsProvider
::
streamingDialog
(
QString
mrl
,
bool
b_transcode_only
)
{
SoutDialog
*
s
=
new
SoutDialog
(
p_intf
->
p_sys
->
p_mi
,
p_intf
,
b_transcode_only
);
if
(
s
->
exec
()
==
QDialog
::
Accepted
)
{
msg_Err
(
p_intf
,
"mrl %s"
,
qta
(
s
->
getMrl
()
)
);
msg_Err
(
p_intf
,
"
Sout
mrl %s"
,
qta
(
s
->
getMrl
()
)
);
/* Just do it */
int
i_len
=
strlen
(
qtu
(
s
->
getMrl
()
)
)
+
10
;
char
*
psz_option
=
(
char
*
)
malloc
(
i_len
);
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
97f221eb
...
...
@@ -84,7 +84,8 @@ enum {
OPEN_AND_PLAY
,
OPEN_AND_STREAM
,
OPEN_AND_SAVE
,
OPEN_AND_ENQUEUE
OPEN_AND_ENQUEUE
,
SELECT
};
class
QEvent
;
...
...
modules/gui/qt4/ui/open.ui
View file @
97f221eb
...
...
@@ -14,9 +14,7 @@
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>1</vsizetype>
<sizepolicy vsizetype="Maximum" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
...
...
@@ -25,18 +23,25 @@
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item>
<widget class="QTabWidget" name="Tab" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
...
...
@@ -59,9 +64,7 @@
<item>
<widget class="QFrame" name="advancedFrame" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>5</vsizetype>
<sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
...
...
@@ -70,10 +73,22 @@
<enum>QFrame::StyledPanel</enum>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="2" >
...
...
@@ -86,9 +101,7 @@
<item row="0" column="3" colspan="2" >
<widget class="QSpinBox" name="startTimeSpinBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
...
...
@@ -110,9 +123,7 @@
<item row="0" column="0" >
<widget class="QLabel" name="cacheLabel" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
...
...
@@ -180,9 +191,7 @@
<item row="0" column="1" >
<widget class="QSpinBox" name="cacheSpinBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
...
...
@@ -222,12 +231,21 @@
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<spacer>
<property name="orientation" >
...
...
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