Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8f01bd1f
Commit
8f01bd1f
authored
Dec 04, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: SoutWidgets: refactor (fix #8865)
parent
5e00cfc3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
41 deletions
+31
-41
modules/gui/qt4/components/sout/sout_widgets.cpp
modules/gui/qt4/components/sout/sout_widgets.cpp
+25
-40
modules/gui/qt4/components/sout/sout_widgets.hpp
modules/gui/qt4/components/sout/sout_widgets.hpp
+6
-1
No files found.
modules/gui/qt4/components/sout/sout_widgets.cpp
View file @
8f01bd1f
...
...
@@ -79,17 +79,28 @@ void SoutInputBox::setMRL( const QString& mrl )
#define CT( x ) connect( x, SIGNAL(textChanged(QString)), this, SIGNAL(mrlUpdated()) );
#define CS( x ) connect( x, SIGNAL(valueChanged(int)), this, SIGNAL(mrlUpdated()) );
VirtualDestBox
::
VirtualDestBox
(
QWidget
*
_parent
)
:
QWidget
(
_parent
)
{
label
=
new
QLabel
(
this
);
label
->
setWordWrap
(
true
);
layout
=
new
QGridLayout
(
this
);
layout
->
addWidget
(
label
,
0
,
0
,
1
,
-
1
);
}
VirtualDestBox
::~
VirtualDestBox
()
{
delete
label
;
delete
layout
;
}
/* FileDest Box */
FileDestBox
::
FileDestBox
(
QWidget
*
_parent
,
intf_thread_t
*
_p_intf
)
:
VirtualDestBox
(
_parent
)
{
p_intf
=
_p_intf
;
QPushButton
*
fileSelectButton
;
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
fileOutput
=
new
QLabel
(
qtr
(
"This module writes the transcoded stream to a file."
),
this
);
layout
->
addWidget
(
fileOutput
,
0
,
0
,
1
,
-
1
);
label
->
setText
(
qtr
(
"This module writes the transcoded stream to a file."
)
);
QLabel
*
fileLabel
=
new
QLabel
(
qtr
(
"Filename"
),
this
);
layout
->
addWidget
(
fileLabel
,
1
,
0
,
1
,
1
);
...
...
@@ -144,12 +155,7 @@ void FileDestBox::fileBrowse()
HTTPDestBox
::
HTTPDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
httpOutput
=
new
QLabel
(
qtr
(
"This module outputs the transcoded stream to a network via HTTP."
),
this
);
layout
->
addWidget
(
httpOutput
,
0
,
0
,
1
,
-
1
);
label
->
setText
(
qtr
(
"This module outputs the transcoded stream to a network via HTTP."
)
);
QLabel
*
HTTPLabel
=
new
QLabel
(
qtr
(
"Path"
),
this
);
QLabel
*
HTTPPortLabel
=
new
QLabel
(
qtr
(
"Port"
),
this
);
...
...
@@ -203,12 +209,8 @@ QString HTTPDestBox::getMRL( const QString& mux )
MMSHDestBox
::
MMSHDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
mmshOutput
=
new
QLabel
(
qtr
(
"This module outputs the transcoded stream to a network "
"via the mms protocol."
),
this
);
layout
->
addWidget
(
mmshOutput
,
0
,
0
,
1
,
-
1
);
label
->
setText
(
qtr
(
"This module outputs the transcoded stream to a network "
"via the mms protocol."
)
);
QLabel
*
MMSHLabel
=
new
QLabel
(
qtr
(
"Address"
),
this
);
QLabel
*
MMSHPortLabel
=
new
QLabel
(
qtr
(
"Port"
),
this
);
...
...
@@ -248,12 +250,8 @@ QString MMSHDestBox::getMRL( const QString& )
RTSPDestBox
::
RTSPDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
rtspOutput
=
new
QLabel
(
qtr
(
"This module outputs the transcoded stream to a network via "
"RTSP."
),
this
);
layout
->
addWidget
(
rtspOutput
,
0
,
0
,
1
,
-
1
);
label
->
setText
(
qtr
(
"This module outputs the transcoded stream to a network via RTSP."
)
);
QLabel
*
RTSPLabel
=
new
QLabel
(
qtr
(
"Path"
),
this
);
QLabel
*
RTSPPortLabel
=
new
QLabel
(
qtr
(
"Port"
),
this
);
...
...
@@ -298,12 +296,8 @@ QString RTSPDestBox::getMRL( const QString& )
UDPDestBox
::
UDPDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
udpOutput
=
new
QLabel
(
qtr
(
"This module outputs the transcoded stream to a network via UDP."
),
this
);
layout
->
addWidget
(
udpOutput
,
0
,
0
,
1
,
-
1
);
label
->
setText
(
qtr
(
"This module outputs the transcoded stream to a network via UDP."
)
);
QLabel
*
UDPLabel
=
new
QLabel
(
qtr
(
"Address"
),
this
);
QLabel
*
UDPPortLabel
=
new
QLabel
(
qtr
(
"Port"
),
this
);
...
...
@@ -345,12 +339,7 @@ QString UDPDestBox::getMRL( const QString& mux )
RTPDestBox
::
RTPDestBox
(
QWidget
*
_parent
,
const
char
*
_mux
)
:
VirtualDestBox
(
_parent
),
mux
(
qfu
(
_mux
)
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
rtpOutput
=
new
QLabel
(
qtr
(
"This module outputs the transcoded stream to a network via RTP."
),
this
);
layout
->
addWidget
(
rtpOutput
,
0
,
0
,
1
,
-
1
);
label
->
setText
(
qtr
(
"This module outputs the transcoded stream to a network via RTP."
)
);
QLabel
*
RTPLabel
=
new
QLabel
(
qtr
(
"Address"
),
this
);
RTPEdit
=
new
QLineEdit
(
this
);
...
...
@@ -404,12 +393,8 @@ QString RTPDestBox::getMRL( const QString& )
ICEDestBox
::
ICEDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
iceOutput
=
new
QLabel
(
qtr
(
"This module outputs the transcoded stream to an Icecast server."
),
this
);
layout
->
addWidget
(
iceOutput
,
0
,
0
,
1
,
-
1
);
label
->
setText
(
qtr
(
"This module outputs the transcoded stream to an Icecast server."
)
);
QLabel
*
ICELabel
=
new
QLabel
(
qtr
(
"Address"
),
this
);
QLabel
*
ICEPortLabel
=
new
QLabel
(
qtr
(
"Port"
),
this
);
...
...
modules/gui/qt4/components/sout/sout_widgets.hpp
View file @
8f01bd1f
...
...
@@ -31,6 +31,7 @@
class
QLineEdit
;
class
QLabel
;
class
QSpinBox
;
class
QGridLayout
;
class
SoutInputBox
:
public
QGroupBox
{
...
...
@@ -48,10 +49,14 @@ class VirtualDestBox : public QWidget
{
Q_OBJECT
public:
VirtualDestBox
(
QWidget
*
_parent
=
NULL
)
:
QWidget
(
_parent
){}
VirtualDestBox
(
QWidget
*
_parent
=
NULL
)
;
virtual
QString
getMRL
(
const
QString
&
)
=
0
;
virtual
~
VirtualDestBox
();
protected:
QString
mrl
;
protected:
QLabel
*
label
;
QGridLayout
*
layout
;
signals:
void
mrlUpdated
();
};
...
...
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