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
0da1c927
Commit
0da1c927
authored
Mar 24, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: DVB-C modulation combo box
parent
fd5cf6b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
4 deletions
+41
-4
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+39
-2
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+2
-2
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
0da1c927
...
...
@@ -1049,6 +1049,21 @@ void CaptureOpenPanel::initialize()
setSpinBoxFreq
(
dvbSrate
);
dvbPropLayout
->
addWidget
(
dvbSrate
,
1
,
1
);
dvbModLabel
=
new
QLabel
(
qtr
(
"Modulation / Constellation"
)
);
dvbPropLayout
->
addWidget
(
dvbModLabel
,
2
,
0
);
dvbModBox
=
new
QComboBox
;
dvbModBox
->
addItem
(
qtr
(
"Automatic"
),
0
);
dvbModBox
->
addItem
(
qtr
(
"256-QAM"
),
256
);
dvbModBox
->
addItem
(
qtr
(
"128-QAM"
),
128
);
dvbModBox
->
addItem
(
qtr
(
"64-QAM"
),
64
);
dvbModBox
->
addItem
(
qtr
(
"32-QAM"
),
32
);
dvbModBox
->
addItem
(
qtr
(
"16-QAM"
),
16
);
dvbPropLayout
->
addWidget
(
dvbModBox
,
2
,
1
);
dvbModLabel
->
hide
();
dvbModBox
->
hide
();
dvbBandLabel
=
new
QLabel
(
qtr
(
"Bandwidth"
)
);
dvbPropLayout
->
addWidget
(
dvbBandLabel
,
2
,
0
);
...
...
@@ -1073,6 +1088,7 @@ void CaptureOpenPanel::initialize()
CuMRL
(
dvbCard
,
valueChanged
(
int
)
);
CuMRL
(
dvbFreq
,
valueChanged
(
int
)
);
CuMRL
(
dvbSrate
,
valueChanged
(
int
)
);
CuMRL
(
dvbModBox
,
currentIndexChanged
(
int
)
);
CuMRL
(
dvbBandBox
,
currentIndexChanged
(
int
)
);
BUTTONACT
(
dvbs
,
updateButtons
()
);
...
...
@@ -1210,7 +1226,15 @@ void CaptureOpenPanel::updateMRL()
fileList
<<
mrl
;
mrl
=
""
;
mrl
+=
" :dvb-adapter="
+
QString
::
number
(
dvbCard
->
value
()
);
if
(
dvbs
->
isChecked
()
||
dvbc
->
isChecked
()
)
if
(
dvbc
->
isChecked
()
)
{
unsigned
qam
=
dvbModBox
->
itemData
(
dvbModBox
->
currentIndex
()
).
toInt
();
if
(
qam
!=
0
)
mrl
+=
" :dvb-modulation="
+
QString
::
number
(
qam
);
mrl
+=
" :dvb-srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
}
else
if
(
dvbs
->
isChecked
()
)
mrl
+=
" :dvb-srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
else
if
(
dvbt
->
isChecked
()
)
mrl
+=
" :dvb-bandwidth="
+
...
...
@@ -1273,10 +1297,21 @@ void CaptureOpenPanel::updateButtons()
break
;
#else
case
DVB_DEVICE
:
if
(
dvbs
->
isChecked
()
||
dvbc
->
isChecked
()
)
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
();
}
...
...
@@ -1284,6 +1319,8 @@ void CaptureOpenPanel::updateButtons()
{
dvbSrate
->
hide
();
dvbSrateLabel
->
hide
();
dvbModBox
->
hide
();
dvbModLabel
->
hide
();
dvbBandBox
->
show
();
dvbBandLabel
->
show
();
}
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
0da1c927
...
...
@@ -209,11 +209,11 @@ private:
QLineEdit
*
dshowVSizeLine
;
#else
QRadioButton
*
dvbs
,
*
dvbt
,
*
dvbc
;
QLabel
*
dvbBandLabel
,
*
dvbSrateLabel
;
QLabel
*
dvbBandLabel
,
*
dvbSrateLabel
,
*
dvbModLabel
;
QSpinBox
*
pvrFreq
,
*
pvrBitr
;
QComboBox
*
v4l2VideoDevice
,
*
v4l2AudioDevice
;
QLineEdit
*
pvrDevice
,
*
pvrRadioDevice
;
QComboBox
*
v4l2StdBox
,
*
pvrNormBox
,
*
dvbBandBox
;
QComboBox
*
v4l2StdBox
,
*
pvrNormBox
,
*
dvb
ModBox
,
*
dvb
BandBox
;
QSpinBox
*
dvbCard
,
*
dvbFreq
,
*
dvbSrate
;
QSpinBox
*
jackChannels
,
*
jackCaching
;
QCheckBox
*
jackPace
,
*
jackConnect
;
...
...
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