Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
56c88f31
Commit
56c88f31
authored
May 28, 2009
by
Francois Cartegnie
Committed by
Jean-Baptiste Kempf
Jun 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CaptureOpenPanel: allow alternative layout
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
28f24bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+12
-11
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
56c88f31
...
@@ -673,13 +673,13 @@ void CaptureOpenPanel::initialize()
...
@@ -673,13 +673,13 @@ void CaptureOpenPanel::initialize()
ui
.
optionsBox
->
setLayout
(
stackedPropLayout
);
ui
.
optionsBox
->
setLayout
(
stackedPropLayout
);
/* Creation and connections of the WIdgets in the stacked layout */
/* Creation and connections of the WIdgets in the stacked layout */
#define addModuleAndLayouts( number, name, label
)
\
#define addModuleAndLayouts( number, name, label
, layout )
\
QWidget * name ## DevPage = new QWidget( this ); \
QWidget * name ## DevPage = new QWidget( this ); \
QWidget * name ## PropPage = new QWidget( this ); \
QWidget * name ## PropPage = new QWidget( this ); \
stackedDevLayout->addWidget( name ## DevPage ); \
stackedDevLayout->addWidget( name ## DevPage ); \
stackedPropLayout->addWidget( name ## PropPage ); \
stackedPropLayout->addWidget( name ## PropPage ); \
QGridLayout * name ## DevLayout = new QGridL
ayout; \
layout * name ## DevLayout = new l
ayout; \
QGridLayout * name ## PropLayout = new QGridL
ayout; \
layout * name ## PropLayout = new l
ayout; \
name ## DevPage->setLayout( name ## DevLayout ); \
name ## DevPage->setLayout( name ## DevLayout ); \
name ## PropPage->setLayout( name ## PropLayout ); \
name ## PropPage->setLayout( name ## PropLayout ); \
ui.deviceCombo->addItem( qtr( label ), QVariant( number ) );
ui.deviceCombo->addItem( qtr( label ), QVariant( number ) );
...
@@ -691,7 +691,7 @@ void CaptureOpenPanel::initialize()
...
@@ -691,7 +691,7 @@ void CaptureOpenPanel::initialize()
* DirectShow Stuffs *
* DirectShow Stuffs *
*********************/
*********************/
if
(
module_exists
(
"dshow"
)
){
if
(
module_exists
(
"dshow"
)
){
addModuleAndLayouts
(
DSHOW_DEVICE
,
dshow
,
"DirectShow"
);
addModuleAndLayouts
(
DSHOW_DEVICE
,
dshow
,
"DirectShow"
,
QGridLayout
);
/* dshow Main */
/* dshow Main */
int
line
=
0
;
int
line
=
0
;
...
@@ -725,7 +725,7 @@ void CaptureOpenPanel::initialize()
...
@@ -725,7 +725,7 @@ void CaptureOpenPanel::initialize()
* BDA Stuffs *
* BDA Stuffs *
**************/
**************/
if
(
module_exists
(
"bda"
)
){
if
(
module_exists
(
"bda"
)
){
addModuleAndLayouts
(
BDA_DEVICE
,
bda
,
"DVB DirectShow"
);
addModuleAndLayouts
(
BDA_DEVICE
,
bda
,
"DVB DirectShow"
,
QGridLayout
);
/* bda Main */
/* bda Main */
QLabel
*
bdaTypeLabel
=
new
QLabel
(
qtr
(
"DVB Type:"
)
);
QLabel
*
bdaTypeLabel
=
new
QLabel
(
qtr
(
"DVB Type:"
)
);
...
@@ -794,7 +794,7 @@ void CaptureOpenPanel::initialize()
...
@@ -794,7 +794,7 @@ void CaptureOpenPanel::initialize()
* V4L2*
* V4L2*
*******/
*******/
if
(
module_exists
(
"v4l2"
)
){
if
(
module_exists
(
"v4l2"
)
){
addModuleAndLayouts
(
V4L2_DEVICE
,
v4l2
,
"Video for Linux 2"
);
addModuleAndLayouts
(
V4L2_DEVICE
,
v4l2
,
"Video for Linux 2"
,
QGridLayout
);
/* V4l Main panel */
/* V4l Main panel */
QLabel
*
v4l2VideoDeviceLabel
=
new
QLabel
(
qtr
(
"Video device name"
)
);
QLabel
*
v4l2VideoDeviceLabel
=
new
QLabel
(
qtr
(
"Video device name"
)
);
...
@@ -829,7 +829,7 @@ void CaptureOpenPanel::initialize()
...
@@ -829,7 +829,7 @@ void CaptureOpenPanel::initialize()
* V4L *
* V4L *
*******/
*******/
if
(
module_exists
(
"v4l"
)
){
if
(
module_exists
(
"v4l"
)
){
addModuleAndLayouts
(
V4L_DEVICE
,
v4l
,
"Video for Linux"
);
addModuleAndLayouts
(
V4L_DEVICE
,
v4l
,
"Video for Linux"
,
QGridLayout
);
/* V4l Main panel */
/* V4l Main panel */
QLabel
*
v4lVideoDeviceLabel
=
new
QLabel
(
qtr
(
"Video device name"
)
);
QLabel
*
v4lVideoDeviceLabel
=
new
QLabel
(
qtr
(
"Video device name"
)
);
...
@@ -874,7 +874,8 @@ void CaptureOpenPanel::initialize()
...
@@ -874,7 +874,8 @@ void CaptureOpenPanel::initialize()
* JACK *
* JACK *
*******/
*******/
if
(
module_exists
(
"jack"
)
){
if
(
module_exists
(
"jack"
)
){
addModuleAndLayouts
(
JACK_DEVICE
,
jack
,
"JACK Audio Connection Kit"
);
addModuleAndLayouts
(
JACK_DEVICE
,
jack
,
"JACK Audio Connection Kit"
,
QGridLayout
);
/* Jack Main panel */
/* Jack Main panel */
/* Channels */
/* Channels */
...
@@ -928,7 +929,7 @@ void CaptureOpenPanel::initialize()
...
@@ -928,7 +929,7 @@ void CaptureOpenPanel::initialize()
* PVR *
* PVR *
************/
************/
if
(
module_exists
(
"pvr"
)
){
if
(
module_exists
(
"pvr"
)
){
addModuleAndLayouts
(
PVR_DEVICE
,
pvr
,
"PVR"
);
addModuleAndLayouts
(
PVR_DEVICE
,
pvr
,
"PVR"
,
QGridLayout
);
/* PVR Main panel */
/* PVR Main panel */
QLabel
*
pvrDeviceLabel
=
new
QLabel
(
qtr
(
"Device name"
)
);
QLabel
*
pvrDeviceLabel
=
new
QLabel
(
qtr
(
"Device name"
)
);
...
@@ -984,7 +985,7 @@ void CaptureOpenPanel::initialize()
...
@@ -984,7 +985,7 @@ void CaptureOpenPanel::initialize()
* DVB Stuffs *
* DVB Stuffs *
**************/
**************/
if
(
module_exists
(
"dvb"
)
){
if
(
module_exists
(
"dvb"
)
){
addModuleAndLayouts
(
DVB_DEVICE
,
dvb
,
"DVB"
);
addModuleAndLayouts
(
DVB_DEVICE
,
dvb
,
"DVB"
,
QGridLayout
);
/* DVB Main */
/* DVB Main */
QLabel
*
dvbDeviceLabel
=
new
QLabel
(
qtr
(
"Adapter card to tune"
)
);
QLabel
*
dvbDeviceLabel
=
new
QLabel
(
qtr
(
"Adapter card to tune"
)
);
...
@@ -1068,7 +1069,7 @@ void CaptureOpenPanel::initialize()
...
@@ -1068,7 +1069,7 @@ void CaptureOpenPanel::initialize()
/**********
/**********
* Screen *
* Screen *
**********/
**********/
addModuleAndLayouts
(
SCREEN_DEVICE
,
screen
,
"Desktop"
);
addModuleAndLayouts
(
SCREEN_DEVICE
,
screen
,
"Desktop"
,
QGridLayout
);
QLabel
*
screenLabel
=
new
QLabel
(
qtr
(
"Your display will be "
QLabel
*
screenLabel
=
new
QLabel
(
qtr
(
"Your display will be "
"opened and played in order to stream or save it."
)
);
"opened and played in order to stream or save it."
)
);
screenLabel
->
setWordWrap
(
true
);
screenLabel
->
setWordWrap
(
true
);
...
...
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