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
32daa8b9
Commit
32daa8b9
authored
Oct 29, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - whitespaces cleaning, code line size, code beautification ;)
parent
631f0bf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
34 deletions
+45
-34
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+45
-34
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
32daa8b9
...
@@ -165,7 +165,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -165,7 +165,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
switch
(
number
)
switch
(
number
)
{
{
/* Video Panel Implementation */
/******************************
* VIDEO Panel Implementation *
******************************/
START_SPREFS_CAT
(
Video
,
qtr
(
"General video settings"
)
);
START_SPREFS_CAT
(
Video
,
qtr
(
"General video settings"
)
);
CONFIG_GENERIC
(
"video"
,
Bool
,
NULL
,
enableVideo
);
CONFIG_GENERIC
(
"video"
,
Bool
,
NULL
,
enableVideo
);
...
@@ -194,11 +196,14 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -194,11 +196,14 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
snapshotsFormat
);
snapshotsFormat
);
END_SPREFS_CAT
;
END_SPREFS_CAT
;
/* Audio Panel Implementation */
/******************************
* AUDIO Panel Implementation *
******************************/
START_SPREFS_CAT
(
Audio
,
qtr
(
"General audio settings"
)
);
START_SPREFS_CAT
(
Audio
,
qtr
(
"General audio settings"
)
);
CONFIG_GENERIC
(
"audio"
,
Bool
,
NULL
,
enableAudio
);
CONFIG_GENERIC
(
"audio"
,
Bool
,
NULL
,
enableAudio
);
/* General Audio Options */
CONFIG_GENERIC_NO_BOOL
(
"volume"
,
IntegerRangeSlider
,
NULL
,
CONFIG_GENERIC_NO_BOOL
(
"volume"
,
IntegerRangeSlider
,
NULL
,
defaultVolume
);
defaultVolume
);
CONFIG_GENERIC
(
"audio-language"
,
String
,
NULL
,
CONFIG_GENERIC
(
"audio-language"
,
String
,
NULL
,
...
@@ -208,6 +213,13 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -208,6 +213,13 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC
(
"force-dolby-surround"
,
IntegerList
,
NULL
,
CONFIG_GENERIC
(
"force-dolby-surround"
,
IntegerList
,
NULL
,
detectionDolby
);
detectionDolby
);
CONFIG_GENERIC
(
"headphone-dolby"
,
Bool
,
NULL
,
headphoneEffect
);
// CONFIG_GENERIC( "" , Bool, NULL, ); activation of normalizer //FIXME
CONFIG_GENERIC_NO_BOOL
(
"norm-max-level"
,
Float
,
NULL
,
volNormalizer
);
CONFIG_GENERIC
(
"audio-visual"
,
Module
,
NULL
,
visualisation
);
/* 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
),
this
,
...
@@ -220,12 +232,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -220,12 +232,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
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
,
ui
.
DirectXLabel
,
CONFIG_GENERIC
(
"directx-audio-device"
,
IntegerList
,
DirectXDevice
);
ui
.
DirectXLabel
,
DirectXDevice
);
#endif
#endif
// File exists everywhere
// File exists everywhere
CONFIG_GENERIC_FILE
(
"audiofile-file"
,
File
,
ui
.
fileLabel
,
fileName
,
CONFIG_GENERIC_FILE
(
"audiofile-file"
,
File
,
ui
.
fileLabel
,
fileBrowseButton
);
file
Name
,
file
BrowseButton
);
alsa_options
=
ui
.
alsaControl
;
alsa_options
=
ui
.
alsaControl
;
oss_options
=
ui
.
OSSControl
;
oss_options
=
ui
.
OSSControl
;
directx_options
=
ui
.
DirectXControl
;
directx_options
=
ui
.
DirectXControl
;
...
@@ -233,34 +245,30 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -233,34 +245,30 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/* and hide if necessary */
/* and hide if necessary */
#ifdef WIN32
#ifdef WIN32
oss_options
->
hide
();
oss_options
->
hide
();
alsa_options
->
hide
();
alsa_options
->
hide
();
#else
#else
directx_options
->
hide
();
directx_options
->
hide
();
#endif
#endif
updateAudioOptions
(
audioOutput
->
currentIndex
()
);
updateAudioOptions
(
audioOutput
->
currentIndex
()
);
CONFIG_GENERIC
(
"headphone-dolby"
,
Bool
,
NULL
,
headphoneEffect
);
// CONFIG_GENERIC( "" , Bool, NULL, ); activation of normalizer //FIXME
CONFIG_GENERIC_NO_BOOL
(
"norm-max-level"
,
Float
,
NULL
,
volNormalizer
);
CONFIG_GENERIC
(
"audio-visual"
,
Module
,
NULL
,
visualisation
);
CONFIG_GENERIC
(
"lastfm-username"
,
String
,
ui
.
lastfm_user_label
,
/* LastFM */
CONFIG_GENERIC
(
"lastfm-username"
,
String
,
ui
.
lastfm_user_label
,
lastfm_user_edit
);
lastfm_user_edit
);
CONFIG_GENERIC
(
"lastfm-password"
,
String
,
ui
.
lastfm_pass_label
,
CONFIG_GENERIC
(
"lastfm-password"
,
String
,
ui
.
lastfm_pass_label
,
lastfm_pass_edit
);
lastfm_pass_edit
);
ui
.
lastfm_user_edit
->
hide
();
ui
.
lastfm_user_edit
->
hide
();
ui
.
lastfm_user_label
->
hide
();
ui
.
lastfm_user_label
->
hide
();
ui
.
lastfm_pass_edit
->
hide
();
ui
.
lastfm_pass_edit
->
hide
();
ui
.
lastfm_pass_label
->
hide
();
ui
.
lastfm_pass_label
->
hide
();
if
(
config_ExistIntf
(
VLC_OBJECT
(
p_intf
),
"audioscrobbler"
)
)
if
(
config_ExistIntf
(
VLC_OBJECT
(
p_intf
),
"audioscrobbler"
)
)
ui
.
lastfm
->
setCheckState
(
Qt
::
Checked
);
ui
.
lastfm
->
setCheckState
(
Qt
::
Checked
);
else
else
ui
.
lastfm
->
setCheckState
(
Qt
::
Unchecked
);
ui
.
lastfm
->
setCheckState
(
Qt
::
Unchecked
);
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
lastfm_Changed
(
int
)
);
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
lastfm_Changed
(
int
)
);
END_SPREFS_CAT
;
END_SPREFS_CAT
;
...
@@ -269,9 +277,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -269,9 +277,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
inputDevice
=
ui
.
DVDDevice
;
inputDevice
=
ui
.
DVDDevice
;
/* Disk Devices */
/* Disk Devices */
{
{
ui
.
DVDDevice
->
setToolTip
(
qtr
(
"If this propriety is blank, then you have
\n
"
ui
.
DVDDevice
->
setToolTip
(
"values for DVD, VCD, and CDDA.
\n
You can define"
qtr
(
"If this propriety is blank, then you have
\n
"
" a unique one or set that in the advanced preferences"
)
);
"values for DVD, VCD, and CDDA.
\n
"
"You can define a unique one or set that in"
"the advanced preferences"
)
);
char
*
psz_dvddiscpath
=
config_GetPsz
(
p_intf
,
"dvd"
);
char
*
psz_dvddiscpath
=
config_GetPsz
(
p_intf
,
"dvd"
);
char
*
psz_vcddiscpath
=
config_GetPsz
(
p_intf
,
"vcd"
);
char
*
psz_vcddiscpath
=
config_GetPsz
(
p_intf
,
"vcd"
);
char
*
psz_cddadiscpath
=
config_GetPsz
(
p_intf
,
"cd-audio"
);
char
*
psz_cddadiscpath
=
config_GetPsz
(
p_intf
,
"cd-audio"
);
...
@@ -280,7 +290,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -280,7 +290,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
{
{
ui
.
DVDDevice
->
setText
(
qfu
(
psz_dvddiscpath
)
);
ui
.
DVDDevice
->
setText
(
qfu
(
psz_dvddiscpath
)
);
}
}
delete
psz_cddadiscpath
;
delete
psz_dvddiscpath
;
delete
psz_vcddiscpath
;
delete
psz_cddadiscpath
;
delete
psz_dvddiscpath
;
delete
psz_vcddiscpath
;
}
}
CONFIG_GENERIC_NO_BOOL
(
"server-port"
,
Integer
,
NULL
,
UDPPort
);
CONFIG_GENERIC_NO_BOOL
(
"server-port"
,
Integer
,
NULL
,
UDPPort
);
...
@@ -400,7 +411,7 @@ void SPrefsPanel::apply()
...
@@ -400,7 +411,7 @@ void SPrefsPanel::apply()
ConfigControl
*
c
=
qobject_cast
<
ConfigControl
*>
(
*
i
);
ConfigControl
*
c
=
qobject_cast
<
ConfigControl
*>
(
*
i
);
c
->
doApply
(
p_intf
);
c
->
doApply
(
p_intf
);
}
}
/* Devices */
/* Devices */
//FIXME is it qta or qtu ????
//FIXME is it qta or qtu ????
char
*
psz_devicepath
=
qtu
(
inputDevice
->
text
()
);
char
*
psz_devicepath
=
qtu
(
inputDevice
->
text
()
);
...
@@ -410,7 +421,7 @@ void SPrefsPanel::apply()
...
@@ -410,7 +421,7 @@ void SPrefsPanel::apply()
config_PutPsz
(
p_intf
,
"vcd"
,
psz_devicepath
);
config_PutPsz
(
p_intf
,
"vcd"
,
psz_devicepath
);
config_PutPsz
(
p_intf
,
"cd-audio"
,
psz_devicepath
);
config_PutPsz
(
p_intf
,
"cd-audio"
,
psz_devicepath
);
}
}
/* Interfaces */
/* Interfaces */
if
(
skinInterfaceButton
->
isChecked
()
)
if
(
skinInterfaceButton
->
isChecked
()
)
config_PutPsz
(
p_intf
,
"intf"
,
"skins2"
);
config_PutPsz
(
p_intf
,
"intf"
,
"skins2"
);
...
...
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