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
79638a06
Commit
79638a06
authored
May 26, 2007
by
Ken Self
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bda qt4 gui: add combobox to select bandwidth on dvb-t
parent
e98f5605
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+20
-0
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+2
-2
No files found.
modules/gui/qt4/components/open.cpp
View file @
79638a06
...
@@ -629,9 +629,21 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -629,9 +629,21 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
bdaPropLayout
->
addWidget
(
bdaSrateLabel
,
1
,
0
);
bdaPropLayout
->
addWidget
(
bdaSrateLabel
,
1
,
0
);
bdaPropLayout
->
addWidget
(
bdaSrate
,
1
,
1
);
bdaPropLayout
->
addWidget
(
bdaSrate
,
1
,
1
);
bdaBandLabel
=
new
QLabel
(
qtr
(
"Bandwidth"
)
);
bdaBandBox
=
new
QComboBox
;
bdaBandBox
->
insertItem
(
0
,
qtr
(
"Automatic"
),
QVariant
(
-
1
)
);
bdaBandBox
->
insertItem
(
1
,
"6 MHz"
,
QVariant
(
6
)
);
bdaBandBox
->
insertItem
(
2
,
"7 MHz"
,
QVariant
(
7
)
);
bdaBandBox
->
insertItem
(
3
,
"8 MHz"
,
QVariant
(
8
)
);
bdaPropLayout
->
addWidget
(
bdaBandLabel
,
2
,
0
);
bdaPropLayout
->
addWidget
(
bdaBandBox
,
2
,
1
);
bdaBandLabel
->
hide
();
bdaBandBox
->
hide
();
/* bda CONNECTs */
/* bda CONNECTs */
CuMRL
(
bdaFreq
,
valueChanged
(
int
)
);
CuMRL
(
bdaFreq
,
valueChanged
(
int
)
);
CuMRL
(
bdaSrate
,
valueChanged
(
int
)
);
CuMRL
(
bdaSrate
,
valueChanged
(
int
)
);
CuMRL
(
bdaBandBox
,
currentIndexChanged
(
int
)
);
BUTTONACT
(
bdas
,
updateButtons
()
);
BUTTONACT
(
bdas
,
updateButtons
()
);
BUTTONACT
(
bdat
,
updateButtons
()
);
BUTTONACT
(
bdat
,
updateButtons
()
);
BUTTONACT
(
bdac
,
updateButtons
()
);
BUTTONACT
(
bdac
,
updateButtons
()
);
...
@@ -746,6 +758,10 @@ void CaptureOpenPanel::updateMRL()
...
@@ -746,6 +758,10 @@ void CaptureOpenPanel::updateMRL()
mrl
+=
" :dvb-frequency="
+
QString
(
"%1"
).
arg
(
bdaFreq
->
value
()
);
mrl
+=
" :dvb-frequency="
+
QString
(
"%1"
).
arg
(
bdaFreq
->
value
()
);
if
(
bdas
->
isChecked
()
||
bdac
->
isChecked
()
)
if
(
bdas
->
isChecked
()
||
bdac
->
isChecked
()
)
mrl
+=
" :dvb-srate="
+
QString
(
"%1"
).
arg
(
bdaSrate
->
value
()
);
mrl
+=
" :dvb-srate="
+
QString
(
"%1"
).
arg
(
bdaSrate
->
value
()
);
else
mrl
+=
" :dvb-bandwidth="
+
QString
(
"%1"
).
arg
(
bdaBandBox
->
itemData
(
bdaBandBox
->
currentIndex
()
).
toInt
()
);
break
;
break
;
case
DSHOW_DEVICE
:
case
DSHOW_DEVICE
:
break
;
break
;
...
@@ -770,11 +786,15 @@ void CaptureOpenPanel::updateButtons()
...
@@ -770,11 +786,15 @@ void CaptureOpenPanel::updateButtons()
{
{
bdaSrate
->
show
();
bdaSrate
->
show
();
bdaSrateLabel
->
show
();
bdaSrateLabel
->
show
();
bdaBandBox
->
hide
();
bdaBandLabel
->
hide
();
}
}
else
else
{
{
bdaSrate
->
hide
();
bdaSrate
->
hide
();
bdaSrateLabel
->
hide
();
bdaSrateLabel
->
hide
();
bdaBandBox
->
show
();
bdaBandLabel
->
show
();
}
}
break
;
break
;
}
}
...
...
modules/gui/qt4/components/open.hpp
View file @
79638a06
...
@@ -139,11 +139,11 @@ private:
...
@@ -139,11 +139,11 @@ private:
QSpinBox
*
v4lFreq
,
*
pvrFreq
,
*
pvrBitr
;
QSpinBox
*
v4lFreq
,
*
pvrFreq
,
*
pvrBitr
;
QLineEdit
*
v4lVideoDevice
,
*
v4lAudioDevice
;
QLineEdit
*
v4lVideoDevice
,
*
v4lAudioDevice
;
QLineEdit
*
pvrDevice
,
*
pvrRadioDevice
;
QLineEdit
*
pvrDevice
,
*
pvrRadioDevice
;
QComboBox
*
v4lNormBox
,
*
pvrNormBox
;
QComboBox
*
v4lNormBox
,
*
pvrNormBox
,
*
bdaBandBox
;
QSpinBox
*
dvbCard
,
*
dvbFreq
,
*
dvbSrate
;
QSpinBox
*
dvbCard
,
*
dvbFreq
,
*
dvbSrate
;
QSpinBox
*
bdaCard
,
*
bdaFreq
,
*
bdaSrate
;
QSpinBox
*
bdaCard
,
*
bdaFreq
,
*
bdaSrate
;
QLabel
*
bdaSrateLabel
;
QLabel
*
bdaSrateLabel
,
*
bdaBandLabel
;
public
slots
:
public
slots
:
virtual
void
updateMRL
();
virtual
void
updateMRL
();
...
...
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