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
7294042b
Commit
7294042b
authored
Oct 02, 2010
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: sinput_pref: add dvd/cd devices listing
parent
e6e4cb89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
23 deletions
+39
-23
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+16
-6
modules/gui/qt4/ui/sprefs_input.ui
modules/gui/qt4/ui/sprefs_input.ui
+23
-17
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
7294042b
...
...
@@ -43,6 +43,7 @@
#include <QStyleFactory>
#include <QSettings>
#include <QtAlgorithms>
#include <QDir>
#define ICON_HEIGHT 64
...
...
@@ -407,7 +408,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/* Disk Devices */
{
ui
.
DVDDevice
->
setToolTip
(
ui
.
DVDDevice
ComboBox
->
setToolTip
(
qtr
(
"If this property is blank, different values
\n
"
"for DVD, VCD, and CDDA are set.
\n
"
"You can define a unique one or configure them
\n
"
...
...
@@ -419,14 +420,23 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
if
(
!
strcmp
(
psz_cddadiscpath
,
psz_dvddiscpath
)
&&
!
strcmp
(
psz_dvddiscpath
,
psz_vcddiscpath
)
)
{
ui
.
DVDDevice
->
se
tText
(
qfu
(
psz_dvddiscpath
)
);
ui
.
DVDDevice
ComboBox
->
setEdi
tText
(
qfu
(
psz_dvddiscpath
)
);
}
free
(
psz_cddadiscpath
);
free
(
psz_dvddiscpath
);
free
(
psz_vcddiscpath
);
}
CONFIG_GENERIC_FILE
(
"dvd"
,
File
,
ui
.
DVDLabel
,
ui
.
DVDDevice
,
ui
.
DVDBrowse
);
#ifndef WIN32
QStringList
DVDDeviceComboBoxStringList
=
QStringList
();
DVDDeviceComboBoxStringList
<<
"dvd*"
<<
"scd*"
<<
"sr*"
<<
"sg*"
<<
"cd*"
;
ui
.
DVDDeviceComboBox
->
addItems
(
QDir
(
"/dev/"
)
.
entryList
(
DVDDeviceComboBoxStringList
,
QDir
::
System
)
.
replaceInStrings
(
QRegExp
(
"^"
),
"/dev/"
)
);
#endif
CONFIG_GENERIC
(
"dvd"
,
String
,
ui
.
DVDLabel
,
DVDDeviceComboBox
->
lineEdit
()
);
CONFIG_GENERIC_FILE
(
"input-record-path"
,
Directory
,
ui
.
recordLabel
,
ui
.
recordPath
,
ui
.
recordBrowse
);
...
...
@@ -455,7 +465,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#else
ui
.
systemCodecBox
->
hide
();
#endif
optionWidgets
.
append
(
ui
.
DVDDevice
);
optionWidgets
.
append
(
ui
.
DVDDevice
ComboBox
);
optionWidgets
.
append
(
ui
.
cachingCombo
);
CONFIG_GENERIC
(
"ffmpeg-skiploopfilter"
,
IntegerList
,
ui
.
filterLabel
,
loopFilterBox
);
CONFIG_GENERIC
(
"sout-x264-tune"
,
StringList
,
ui
.
x264Label
,
tuneBox
);
...
...
@@ -752,7 +762,7 @@ void SPrefsPanel::apply()
{
/* Device default selection */
char
*
psz_devicepath
=
strdup
(
qtu
(
qobject_cast
<
Q
LineEdit
*>
(
optionWidgets
[
inputLE
]
)
->
t
ext
()
)
);
strdup
(
qtu
(
qobject_cast
<
Q
ComboBox
*>
(
optionWidgets
[
inputLE
])
->
currentT
ext
()
)
);
if
(
!
EMPTY_STR
(
psz_devicepath
)
)
{
config_PutPsz
(
p_intf
,
"dvd"
,
psz_devicepath
);
...
...
modules/gui/qt4/ui/sprefs_input.ui
View file @
7294042b
...
...
@@ -194,23 +194,22 @@
<string>
Default optical device
</string>
</property>
<property
name=
"buddy"
>
<cstring>
DVDDevice
</cstring>
<cstring>
DVDDevice
ComboBox
</cstring>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_5"
>
<item>
<widget
class=
"QLineEdit"
name=
"DVDDevice"
/>
</item>
<item>
<widget
class=
"QPushButton"
name=
"DVDBrowse"
>
<property
name=
"text"
>
<string>
Browse...
</string>
</property>
</widget>
</item>
</layout>
<widget
class=
"QComboBox"
name=
"DVDDeviceComboBox"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Expanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"editable"
>
<bool>
true
</bool>
</property>
</widget>
</item>
</layout>
</widget>
...
...
@@ -340,15 +339,22 @@
</layout>
</widget>
<tabstops>
<tabstop>
DVDDevice
</tabstop>
<tabstop>
DVDBrowse
</tabstop>
<tabstop>
hwAccelBox
</tabstop>
<tabstop>
PostProcLevel
</tabstop>
<tabstop>
loopFilterBox
</tabstop>
<tabstop>
systemCodecBox
</tabstop>
<tabstop>
presetBox
</tabstop>
<tabstop>
tuneBox
</tabstop>
<tabstop>
profileBox
</tabstop>
<tabstop>
levelBox
</tabstop>
<tabstop>
DVDDeviceComboBox
</tabstop>
<tabstop>
recordPath
</tabstop>
<tabstop>
recordBrowse
</tabstop>
<tabstop>
AviRepair
</tabstop>
<tabstop>
cachingCombo
</tabstop>
<tabstop>
proxy
</tabstop>
<tabstop>
live555TransportHTTPRadio
</tabstop>
<tabstop>
live555TransportRTSP_TCPRadio
</tabstop>
<tabstop>
hwAccelBox
</tabstop>
<tabstop>
loopFilterBox
</tabstop>
</tabstops>
<resources/>
<connections/>
...
...
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