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
4eb307c4
Commit
4eb307c4
authored
Mar 27, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: add DVB-S2
parent
601609fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+15
-4
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+1
-1
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
4eb307c4
...
@@ -953,17 +953,19 @@ void CaptureOpenPanel::initialize()
...
@@ -953,17 +953,19 @@ void CaptureOpenPanel::initialize()
dvbc
=
new
QRadioButton
(
"DVB-C"
);
dvbc
=
new
QRadioButton
(
"DVB-C"
);
dvbs
=
new
QRadioButton
(
"DVB-S"
);
dvbs
=
new
QRadioButton
(
"DVB-S"
);
dvbs2
=
new
QRadioButton
(
"DVB-S2"
);
dvbt
=
new
QRadioButton
(
"DVB-T"
);
dvbt
=
new
QRadioButton
(
"DVB-T"
);
atsc
=
new
QRadioButton
(
"ATSC"
);
atsc
=
new
QRadioButton
(
"ATSC"
);
cqam
=
new
QRadioButton
(
"Clear QAM"
);
cqam
=
new
QRadioButton
(
"Clear QAM"
);
dvbt
->
setChecked
(
true
);
dvbt
->
setChecked
(
true
);
dvbDevLayout
->
addWidget
(
dvbTypeLabel
,
1
,
0
);
dvbDevLayout
->
addWidget
(
dvbTypeLabel
,
1
,
0
,
2
,
1
);
dvbDevLayout
->
addWidget
(
dvbc
,
1
,
1
);
dvbDevLayout
->
addWidget
(
dvbc
,
1
,
1
);
dvbDevLayout
->
addWidget
(
dvbs
,
1
,
2
);
dvbDevLayout
->
addWidget
(
dvbs
,
1
,
2
);
dvbDevLayout
->
addWidget
(
dvbs2
,
2
,
2
);
dvbDevLayout
->
addWidget
(
dvbt
,
1
,
3
);
dvbDevLayout
->
addWidget
(
dvbt
,
1
,
3
);
dvbDevLayout
->
addWidget
(
atsc
,
1
,
4
);
dvbDevLayout
->
addWidget
(
atsc
,
1
,
4
);
dvbDevLayout
->
addWidget
(
cqam
,
1
,
5
);
dvbDevLayout
->
addWidget
(
cqam
,
2
,
4
);
/* DVB Props panel */
/* DVB Props panel */
QLabel
*
dvbFreqLabel
=
QLabel
*
dvbFreqLabel
=
...
@@ -1024,14 +1026,16 @@ void CaptureOpenPanel::initialize()
...
@@ -1024,14 +1026,16 @@ void CaptureOpenPanel::initialize()
CuMRL
(
dvbQamBox
,
currentIndexChanged
(
int
)
);
CuMRL
(
dvbQamBox
,
currentIndexChanged
(
int
)
);
CuMRL
(
dvbBandBox
,
currentIndexChanged
(
int
)
);
CuMRL
(
dvbBandBox
,
currentIndexChanged
(
int
)
);
BUTTONACT
(
dvbc
,
updateButtons
()
);
BUTTONACT
(
dvbs
,
updateButtons
()
);
BUTTONACT
(
dvbs
,
updateButtons
()
);
BUTTONACT
(
dvbs2
,
updateButtons
()
);
BUTTONACT
(
dvbt
,
updateButtons
()
);
BUTTONACT
(
dvbt
,
updateButtons
()
);
BUTTONACT
(
dvbc
,
updateButtons
()
);
BUTTONACT
(
atsc
,
updateButtons
()
);
BUTTONACT
(
atsc
,
updateButtons
()
);
BUTTONACT
(
cqam
,
updateButtons
()
);
BUTTONACT
(
cqam
,
updateButtons
()
);
BUTTONACT
(
dvbs
,
updateMRL
()
);
BUTTONACT
(
dvbs
,
updateMRL
()
);
BUTTONACT
(
dvbt
,
updateMRL
()
);
BUTTONACT
(
dvbt
,
updateMRL
()
);
BUTTONACT
(
dvbs
,
updateMRL
()
);
BUTTONACT
(
dvbs
,
updateMRL
()
);
BUTTONACT
(
dvbs2
,
updateMRL
()
);
BUTTONACT
(
atsc
,
updateMRL
()
);
BUTTONACT
(
atsc
,
updateMRL
()
);
BUTTONACT
(
cqam
,
updateMRL
()
);
BUTTONACT
(
cqam
,
updateMRL
()
);
}
}
...
@@ -1138,6 +1142,8 @@ void CaptureOpenPanel::updateMRL()
...
@@ -1138,6 +1142,8 @@ void CaptureOpenPanel::updateMRL()
else
else
if
(
dvbs
->
isChecked
()
)
mrl
=
"dvb-s://"
;
if
(
dvbs
->
isChecked
()
)
mrl
=
"dvb-s://"
;
else
else
if
(
dvbs2
->
isChecked
()
)
mrl
=
"dvb-s2://"
;
else
if
(
dvbt
->
isChecked
()
)
mrl
=
"dvb-t://"
;
if
(
dvbt
->
isChecked
()
)
mrl
=
"dvb-t://"
;
else
else
if
(
atsc
->
isChecked
()
)
mrl
=
"atsc://"
;
if
(
atsc
->
isChecked
()
)
mrl
=
"atsc://"
;
...
@@ -1154,7 +1160,7 @@ void CaptureOpenPanel::updateMRL()
...
@@ -1154,7 +1160,7 @@ void CaptureOpenPanel::updateMRL()
mrl
+=
":modulation="
+
QString
::
number
(
qam
)
+
"QAM"
;
mrl
+=
":modulation="
+
QString
::
number
(
qam
)
+
"QAM"
;
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
}
}
if
(
dvbc
->
isChecked
()
||
dvbs
->
isChecked
()
)
if
(
dvbc
->
isChecked
()
||
dvbs
->
isChecked
()
||
dvbs2
->
isChecked
()
)
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
if
(
dvbt
->
isChecked
()
)
if
(
dvbt
->
isChecked
()
)
mrl
+=
":bandwidth="
+
mrl
+=
":bandwidth="
+
...
@@ -1215,6 +1221,11 @@ void CaptureOpenPanel::updateButtons()
...
@@ -1215,6 +1221,11 @@ void CaptureOpenPanel::updateButtons()
dvbSrate
->
show
();
dvbSrate
->
show
();
dvbSrateLabel
->
show
();
dvbSrateLabel
->
show
();
}
}
else
if
(
dvbs2
->
isChecked
()
)
{
dvbSrate
->
show
();
dvbSrateLabel
->
show
();
}
else
if
(
dvbt
->
isChecked
()
)
else
if
(
dvbt
->
isChecked
()
)
{
{
dvbBandBox
->
show
();
dvbBandBox
->
show
();
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
4eb307c4
...
@@ -213,7 +213,7 @@ private:
...
@@ -213,7 +213,7 @@ private:
QLineEdit
*
jackPortsSelected
;
QLineEdit
*
jackPortsSelected
;
# define DTV_PLUGIN "dtv"
# define DTV_PLUGIN "dtv"
#endif
#endif
QRadioButton
*
dvb
s
,
*
dvbt
,
*
dvbc
,
*
atsc
,
*
cqam
;
QRadioButton
*
dvb
c
,
*
dvbs
,
*
dvbs2
,
*
dvbt
,
*
atsc
,
*
cqam
;
QLabel
*
dvbBandLabel
,
*
dvbSrateLabel
,
*
dvbModLabel
;
QLabel
*
dvbBandLabel
,
*
dvbSrateLabel
,
*
dvbModLabel
;
QComboBox
*
dvbQamBox
,
*
dvbBandBox
;
QComboBox
*
dvbQamBox
,
*
dvbBandBox
;
QSpinBox
*
dvbCard
,
*
dvbFE
,
*
dvbFreq
,
*
dvbSrate
;
QSpinBox
*
dvbCard
,
*
dvbFE
,
*
dvbFreq
,
*
dvbSrate
;
...
...
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