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
03421f3e
Commit
03421f3e
authored
Dec 20, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - More Module_Exist for SPrefs.
parent
4c9b6e28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+16
-9
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
03421f3e
...
@@ -196,8 +196,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -196,8 +196,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC
(
"audio"
,
Bool
,
NULL
,
enableAudio
);
CONFIG_GENERIC
(
"audio"
,
Bool
,
NULL
,
enableAudio
);
/* and hide if necessary */
/* hide if necessary */
#ifdef WIN32
#ifdef WIN32
ui
.
OSSControl
->
hide
();
ui
.
OSSControl
->
hide
();
ui
.
alsaControl
->
hide
();
ui
.
alsaControl
->
hide
();
...
@@ -228,14 +227,20 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -228,14 +227,20 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/* Audio Output Specifics */
/* Audio Output Specifics */
CONFIG_GENERIC
(
"aout"
,
Module
,
NULL
,
outputModule
);
CONFIG_GENERIC
(
"aout"
,
Module
,
NULL
,
outputModule
);
CONNECT
(
ui
.
outputModule
,
currentIndexChanged
(
int
),
this
,
CONNECT
(
ui
.
outputModule
,
currentIndexChanged
(
int
),
updateAudioOptions
(
int
)
);
this
,
updateAudioOptions
(
int
)
);
//TODO: use modules_Exists
#ifndef WIN32
#ifndef WIN32
CONFIG_GENERIC
(
"alsadev"
,
StringList
,
ui
.
alsaLabel
,
alsaDevice
);
if
(
module_Exists
(
p_intf
,
"alsa"
)
)
{
CONFIG_GENERIC
(
"alsadev"
,
StringList
,
ui
.
alsaLabel
,
alsaDevice
);
}
if
(
module_Exists
(
p_intf
,
"oss"
)
)
{
CONFIG_GENERIC_FILE
(
"dspdev"
,
File
,
ui
.
OSSLabel
,
OSSDevice
,
CONFIG_GENERIC_FILE
(
"dspdev"
,
File
,
ui
.
OSSLabel
,
OSSDevice
,
OSSBrowse
);
OSSBrowse
);
}
#else
#else
CONFIG_GENERIC
(
"directx-audio-device"
,
IntegerList
,
CONFIG_GENERIC
(
"directx-audio-device"
,
IntegerList
,
ui
.
DirectXLabel
,
DirectXDevice
);
ui
.
DirectXLabel
,
DirectXDevice
);
...
@@ -253,7 +258,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -253,7 +258,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
updateAudioOptions
(
ui
.
outputModule
->
currentIndex
()
);
updateAudioOptions
(
ui
.
outputModule
->
currentIndex
()
);
/* LastFM */
/* LastFM */
if
(
module_Exists
(
p_intf
,
"
A
udioscrobbler"
)
)
if
(
module_Exists
(
p_intf
,
"
a
udioscrobbler"
)
)
{
{
CONFIG_GENERIC
(
"lastfm-username"
,
String
,
ui
.
lastfm_user_label
,
CONFIG_GENERIC
(
"lastfm-username"
,
String
,
ui
.
lastfm_user_label
,
lastfm_user_edit
);
lastfm_user_edit
);
...
@@ -267,6 +272,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -267,6 +272,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
lastfm_Changed
(
int
)
);
lastfm_Changed
(
int
)
);
}
}
else
ui
.
lastfm
->
hide
();
/* Normalizer */
/* Normalizer */
...
...
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