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
b6ffa9ae
Commit
b6ffa9ae
authored
Sep 01, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Jack Input UI.
parent
4070db3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
4 deletions
+85
-4
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+77
-3
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+8
-1
No files found.
modules/gui/qt4/components/open.cpp
View file @
b6ffa9ae
...
...
@@ -2,10 +2,13 @@
* open.cpp : Panels for the open dialogs
****************************************************************************
* Copyright (C) 2006-2007 the VideoLAN team
* Copyright (C) 2007 Société des arts technologiques
* Copyright (C) 2007 Savoir-faire Linux
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
* Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -87,7 +90,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Ugly hacks to get the good Widget */
//This lineEdit is the normal line in the fileDialog.
#if QT
_VERSION >= 0x040300
#if QT
43
lineFileEdit
=
findChildren
<
QLineEdit
*>
()[
2
];
#else
lineFileEdit
=
findChildren
<
QLineEdit
*>
()[
3
];
...
...
@@ -102,10 +105,10 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Change the text that was uncool in the usual box */
listLabel
[
5
]
->
setText
(
qtr
(
"Filter:"
)
);
QListView
*
fileListView
=
findChildren
<
QListView
*>
().
first
();
#if WIN32
/* QFileDialog is quite buggy make it brerable on win32 by tweaking
/* QFileDialog is quite buggy make it brerable on win32 by tweaking
the followin */
QListView
*
fileListView
=
findChildren
<
QListView
*>
().
first
();
fileListView
->
setLayoutMode
(
QListView
::
Batched
);
fileListView
->
setViewMode
(
QListView
::
ListMode
);
fileListView
->
setResizeMode
(
QListView
::
Adjust
);
...
...
@@ -128,7 +131,11 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
BUTTONACT
(
ui
.
subBrowseButton
,
browseFileSub
()
);
BUTTONACT
(
ui
.
subCheckBox
,
toggleSubtitleFrame
());
#if QT43
CONNECT
(
fileListView
,
clicked
(
QModelIndex
),
this
,
updateMRL
()
);
#else
CONNECT
(
ui
.
fileInput
,
editTextChanged
(
QString
),
this
,
updateMRL
()
);
#endif
CONNECT
(
ui
.
subInput
,
editTextChanged
(
QString
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
alignSubComboBox
,
currentIndexChanged
(
int
),
this
,
updateMRL
()
);
...
...
@@ -169,6 +176,7 @@ void FileOpenPanel::browseFileSub()
void
FileOpenPanel
::
updateMRL
()
{
msg_Dbg
(
p_intf
,
"I was here"
);
QString
mrl
=
ui
.
fileInput
->
currentText
();
if
(
ui
.
subCheckBox
->
isChecked
()
)
{
...
...
@@ -519,6 +527,58 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
CuMRL
(
v4lFreq
,
valueChanged
(
int
)
);
CuMRL
(
v4lNormBox
,
currentIndexChanged
(
int
)
);
/*******
* JACK *
*******/
addModuleAndLayouts
(
JACK_DEVICE
,
jack
,
"JACK Audio Connection Kit"
);
/* Jack Main panel */
/* Channels */
QLabel
*
jackChannelsLabel
=
new
QLabel
(
qtr
(
"Channels :"
)
);
jackDevLayout
->
addWidget
(
jackChannelsLabel
,
1
,
0
);
jackChannels
=
new
QSpinBox
;
setSpinBoxFreq
(
jackChannels
);
jackChannels
->
setMaximum
(
255
);
jackChannels
->
setValue
(
2
);
jackChannels
->
setAlignment
(
Qt
::
AlignRight
);
jackDevLayout
->
addWidget
(
jackChannels
,
1
,
1
);
/* Jack Props panel */
/* Selected ports */
QLabel
*
jackPortsLabel
=
new
QLabel
(
qtr
(
"Selected ports :"
)
);
jackPropLayout
->
addWidget
(
jackPortsLabel
,
0
,
0
);
jackPortsSelected
=
new
QLineEdit
(
qtr
(
".*"
)
);
jackPortsSelected
->
setAlignment
(
Qt
::
AlignRight
);
jackPropLayout
->
addWidget
(
jackPortsSelected
,
0
,
1
);
/* Caching */
QLabel
*
jackCachingLabel
=
new
QLabel
(
qtr
(
"Input caching :"
)
);
jackPropLayout
->
addWidget
(
jackCachingLabel
,
1
,
0
);
jackCaching
=
new
QSpinBox
;
setSpinBoxFreq
(
jackCaching
);
jackCaching
->
setSuffix
(
" ms"
);
jackCaching
->
setValue
(
1000
);
jackCaching
->
setAlignment
(
Qt
::
AlignRight
);
jackPropLayout
->
addWidget
(
jackCaching
,
1
,
1
);
/* Pace */
jackPace
=
new
QCheckBox
(
qtr
(
"Use VLC pace"
));
jackPropLayout
->
addWidget
(
jackPace
,
2
,
1
);
/* Auto Connect */
jackConnect
=
new
QCheckBox
(
qtr
(
"Auto connnection"
));
jackPropLayout
->
addWidget
(
jackConnect
,
3
,
1
);
/* Jack CONNECTs */
CuMRL
(
jackChannels
,
valueChanged
(
int
)
);
CuMRL
(
jackCaching
,
valueChanged
(
int
)
);
CuMRL
(
jackPace
,
stateChanged
(
int
)
);
CuMRL
(
jackConnect
,
stateChanged
(
int
)
);
CuMRL
(
jackPortsSelected
,
textChanged
(
QString
)
);
/************
* PVR *
************/
...
...
@@ -773,6 +833,20 @@ void CaptureOpenPanel::updateMRL()
mrl
+=
" :v4l-norm="
+
QString
(
"%1"
).
arg
(
v4lNormBox
->
currentIndex
()
);
mrl
+=
" :v4l-frequency="
+
QString
(
"%1"
).
arg
(
v4lFreq
->
value
()
);
break
;
case
JACK_DEVICE
:
mrl
=
"jack://"
;
mrl
+=
"channels="
+
QString
(
"%1"
).
arg
(
jackChannels
->
value
()
);
mrl
+=
":ports="
+
jackPortsSelected
->
text
();
mrl
+=
" --jack-input-caching="
+
QString
(
"%1"
).
arg
(
jackCaching
->
value
()
);
if
(
jackPace
->
isChecked
()
)
{
mrl
+=
" --jack-input-use-vlc-pace"
;
}
if
(
jackConnect
->
isChecked
()
)
{
mrl
+=
" --jack-input-auto-connect"
;
}
break
;
case
PVR_DEVICE
:
mrl
=
"pvr://"
;
mrl
+=
" :pvr-device="
+
pvrDevice
->
text
();
...
...
modules/gui/qt4/components/open.hpp
View file @
b6ffa9ae
...
...
@@ -2,10 +2,13 @@
* open.hpp : Panels for the open dialogs
****************************************************************************
* Copyright (C) 2006-2007 the VideoLAN team
* Copyright (C) 2007 Société des arts technologiques
* Copyright (C) 2007 Savoir-faire Linux
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
* Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -47,6 +50,7 @@
#define BDA_DEVICE 0x4
#define DSHOW_DEVICE 0x8
#define SCREEN_DEVICE 0x16
#define JACK_DEVICE 0x32
class
QWidget
;
class
QLineEdit
;
...
...
@@ -145,12 +149,15 @@ private:
Ui
::
OpenCapture
ui
;
QRadioButton
*
dvbs
,
*
dvbt
,
*
dvbc
;
QRadioButton
*
bdas
,
*
bdat
,
*
bdac
;
QSpinBox
*
v4lFreq
,
*
pvrFreq
,
*
pvrBitr
;
QSpinBox
*
v4lFreq
,
*
pvrFreq
,
*
pvrBitr
;
QLineEdit
*
v4lVideoDevice
,
*
v4lAudioDevice
;
QLineEdit
*
pvrDevice
,
*
pvrRadioDevice
;
QComboBox
*
v4lNormBox
,
*
pvrNormBox
,
*
bdaBandBox
;
QSpinBox
*
dvbCard
,
*
dvbFreq
,
*
dvbSrate
;
QSpinBox
*
bdaCard
,
*
bdaFreq
,
*
bdaSrate
;
QSpinBox
*
jackChannels
,
*
jackCaching
;
QCheckBox
*
jackPace
,
*
jackConnect
;
QLineEdit
*
jackPortsSelected
;
QLabel
*
bdaSrateLabel
,
*
bdaBandLabel
;
...
...
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