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
5206e964
Commit
5206e964
authored
Mar 24, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: add ATSC and CQAM to open dialog
parent
a879bc58
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
15 deletions
+24
-15
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+23
-14
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 @
5206e964
...
...
@@ -1021,12 +1021,16 @@ void CaptureOpenPanel::initialize()
dvbc
=
new
QRadioButton
(
"DVB-C"
);
dvbs
=
new
QRadioButton
(
"DVB-S"
);
dvbt
=
new
QRadioButton
(
"DVB-T"
);
atsc
=
new
QRadioButton
(
"ATSC"
);
cqam
=
new
QRadioButton
(
"Clear QAM"
);
dvbt
->
setChecked
(
true
);
dvbDevLayout
->
addWidget
(
dvbTypeLabel
,
1
,
0
);
dvbDevLayout
->
addWidget
(
dvbc
,
1
,
1
);
dvbDevLayout
->
addWidget
(
dvbs
,
1
,
2
);
dvbDevLayout
->
addWidget
(
dvbt
,
1
,
3
);
dvbDevLayout
->
addWidget
(
atsc
,
1
,
4
);
dvbDevLayout
->
addWidget
(
cqam
,
1
,
5
);
/* DVB Props panel */
QLabel
*
dvbFreqLabel
=
...
...
@@ -1087,9 +1091,13 @@ void CaptureOpenPanel::initialize()
BUTTONACT
(
dvbs
,
updateButtons
()
);
BUTTONACT
(
dvbt
,
updateButtons
()
);
BUTTONACT
(
dvbc
,
updateButtons
()
);
BUTTONACT
(
atsc
,
updateButtons
()
);
BUTTONACT
(
cqam
,
updateButtons
()
);
BUTTONACT
(
dvbs
,
updateMRL
()
);
BUTTONACT
(
dvbt
,
updateMRL
()
);
BUTTONACT
(
dvbc
,
updateMRL
()
);
BUTTONACT
(
dvbs
,
updateMRL
()
);
BUTTONACT
(
atsc
,
updateMRL
()
);
BUTTONACT
(
cqam
,
updateMRL
()
);
}
#endif
...
...
@@ -1217,10 +1225,14 @@ void CaptureOpenPanel::updateMRL()
if
(
dvbs
->
isChecked
()
)
mrl
=
"dvb-s://"
;
else
if
(
dvbt
->
isChecked
()
)
mrl
=
"dvb-t://"
;
else
if
(
atsc
->
isChecked
()
)
mrl
=
"atsc://"
;
else
if
(
cqam
->
isChecked
()
)
mrl
=
"cqam://"
;
mrl
+=
"frequency="
+
QString
::
number
(
dvbFreq
->
value
()
);
if
(
dvbc
->
isChecked
()
)
if
(
dvbc
->
isChecked
()
||
cqam
->
isChecked
()
)
{
unsigned
qam
=
dvbModBox
->
itemData
(
dvbModBox
->
currentIndex
()
).
toInt
();
...
...
@@ -1231,9 +1243,9 @@ void CaptureOpenPanel::updateMRL()
}
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
}
else
if
(
dvbs
->
isChecked
()
)
if
(
dvbc
->
isChecked
()
||
dvbs
->
isChecked
()
)
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
else
if
(
dvbt
->
isChecked
()
)
if
(
dvbt
->
isChecked
()
)
mrl
+=
":bandwidth="
+
QString
::
number
(
dvbBandBox
->
itemData
(
dvbBandBox
->
currentIndex
()
).
toInt
()
);
...
...
@@ -1296,30 +1308,27 @@ void CaptureOpenPanel::updateButtons()
break
;
#else
case
DVB_DEVICE
:
dvbSrate
->
hide
();
dvbSrateLabel
->
hide
();
dvbModBox
->
hide
();
dvbModLabel
->
hide
();
dvbBandBox
->
hide
();
dvbBandLabel
->
hide
();
if
(
dvbc
->
isChecked
()
)
{
dvbSrate
->
show
();
dvbSrateLabel
->
show
();
dvbModBox
->
show
();
dvbModLabel
->
show
();
dvbBandBox
->
hide
();
dvbBandLabel
->
hide
();
}
else
if
(
dvbs
->
isChecked
()
)
{
dvbSrate
->
show
();
dvbSrateLabel
->
show
();
dvbModBox
->
hide
();
dvbModLabel
->
hide
();
dvbBandBox
->
hide
();
dvbBandLabel
->
hide
();
}
else
if
(
dvbt
->
isChecked
()
)
{
dvbSrate
->
hide
();
dvbSrateLabel
->
hide
();
dvbModBox
->
hide
();
dvbModLabel
->
hide
();
dvbBandBox
->
show
();
dvbBandLabel
->
show
();
}
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
5206e964
...
...
@@ -208,7 +208,7 @@ private:
StringListConfigControl
*
vdevDshowW
,
*
adevDshowW
;
QLineEdit
*
dshowVSizeLine
;
#else
QRadioButton
*
dvbs
,
*
dvbt
,
*
dvbc
;
QRadioButton
*
dvbs
,
*
dvbt
,
*
dvbc
,
*
atsc
,
*
cqam
;
QLabel
*
dvbBandLabel
,
*
dvbSrateLabel
,
*
dvbModLabel
;
QSpinBox
*
pvrFreq
,
*
pvrBitr
;
QComboBox
*
v4l2VideoDevice
,
*
v4l2AudioDevice
;
...
...
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