Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
525538b7
Commit
525538b7
authored
Jun 06, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Open Capture: add screen://
parent
0884ede0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+31
-3
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+1
-0
No files found.
modules/gui/qt4/components/open.cpp
View file @
525538b7
...
...
@@ -474,7 +474,6 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
#define CuMRL( widget, slot ) CONNECT( widget , slot , this, updateMRL() );
/*******
* V4L *
*******/
...
...
@@ -727,12 +726,24 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
BUTTONACT
(
dvbt
,
updateButtons
()
);
BUTTONACT
(
dvbc
,
updateButtons
()
);
/**********
* Screen *
**********/
addModuleAndLayouts
(
SCREEN_DEVICE
,
screen
,
"Desktop"
);
QLabel
*
screenLabel
=
new
QLabel
(
"This option will open your own "
"desktop in order to save or stream it."
);
screenLabel
->
setWordWrap
(
true
);
screenDevLayout
->
addWidget
(
screenLabel
,
0
,
0
);
/* General connects */
connect
(
ui
.
deviceCombo
,
SIGNAL
(
activated
(
int
)
),
stackedDevLayout
,
SLOT
(
setCurrentIndex
(
int
)
)
);
connect
(
ui
.
deviceCombo
,
SIGNAL
(
activated
(
int
)
),
stackedPropLayout
,
SLOT
(
setCurrentIndex
(
int
)
)
);
CONNECT
(
ui
.
deviceCombo
,
activated
(
int
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
deviceCombo
,
activated
(
int
),
this
,
updateButtons
()
);
#undef addModule
}
...
...
@@ -787,16 +798,29 @@ void CaptureOpenPanel::updateMRL()
QString
(
"%1"
).
arg
(
bdaBandBox
->
itemData
(
bdaBandBox
->
currentIndex
()
).
toInt
()
);
break
;
case
DSHOW_DEVICE
:
case
DSHOW_DEVICE
:
break
;
case
SCREEN_DEVICE
:
mrl
=
"screen://"
;
updateButtons
();
break
;
}
emit
mrlUpdated
(
mrl
);
}
/**
* Update the Buttons (show/hide) for the GUI as all device type don't
* use the same ui. elements.
**/
void
CaptureOpenPanel
::
updateButtons
()
{
/* Be sure to display the ui Elements in case they were hidden by
* some Device Type (like Screen://) */
ui
.
optionsBox
->
show
();
ui
.
advancedButton
->
show
();
/* Get the current Device Number */
int
i_devicetype
=
ui
.
deviceCombo
->
itemData
(
ui
.
deviceCombo
->
currentIndex
()
).
toInt
();
ui
.
deviceCombo
->
currentIndex
()
).
toInt
();
msg_Dbg
(
p_intf
,
"Capture Type: %i"
,
i_devicetype
);
switch
(
i_devicetype
)
{
...
...
@@ -820,5 +844,9 @@ void CaptureOpenPanel::updateButtons()
bdaBandLabel
->
show
();
}
break
;
case
SCREEN_DEVICE
:
ui
.
optionsBox
->
hide
();
ui
.
advancedButton
->
hide
();
break
;
}
}
modules/gui/qt4/components/open.hpp
View file @
525538b7
...
...
@@ -46,6 +46,7 @@
#define DVB_DEVICE 0x2
#define BDA_DEVICE 0x4
#define DSHOW_DEVICE 0x8
#define SCREEN_DEVICE 0x16
class
QWidget
;
class
QLineEdit
;
...
...
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