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
a50bb327
Commit
a50bb327
authored
Jun 11, 2009
by
Francois Cartegnie
Committed by
Jean-Baptiste Kempf
Jun 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI: Sprefs_audio fixes and enhancements
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
11e07b57
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
536 additions
and
387 deletions
+536
-387
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+3
-4
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+3
-3
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+21
-9
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+1
-0
modules/gui/qt4/ui/sprefs_audio.ui
modules/gui/qt4/ui/sprefs_audio.ui
+508
-371
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
a50bb327
...
@@ -1037,7 +1037,7 @@ BoolConfigControl::BoolConfigControl( vlc_object_t *_p_this,
...
@@ -1037,7 +1037,7 @@ BoolConfigControl::BoolConfigControl( vlc_object_t *_p_this,
BoolConfigControl
::
BoolConfigControl
(
vlc_object_t
*
_p_this
,
BoolConfigControl
::
BoolConfigControl
(
vlc_object_t
*
_p_this
,
module_config_t
*
_p_item
,
module_config_t
*
_p_item
,
QLabel
*
_label
,
QLabel
*
_label
,
Q
CheckBox
*
_checkbox
,
Q
AbstractButton
*
_checkbox
,
bool
bycat
)
:
bool
bycat
)
:
VIntConfigControl
(
_p_this
,
_p_item
)
VIntConfigControl
(
_p_this
,
_p_item
)
{
{
...
@@ -1048,14 +1048,13 @@ BoolConfigControl::BoolConfigControl( vlc_object_t *_p_this,
...
@@ -1048,14 +1048,13 @@ BoolConfigControl::BoolConfigControl( vlc_object_t *_p_this,
void
BoolConfigControl
::
finish
()
void
BoolConfigControl
::
finish
()
{
{
checkbox
->
setCheckState
(
p_item
->
value
.
i
==
true
?
Qt
::
Checked
checkbox
->
setChecked
(
p_item
->
value
.
i
==
true
);
:
Qt
::
Unchecked
);
checkbox
->
setToolTip
(
formatTooltip
(
qtr
(
p_item
->
psz_longtext
))
);
checkbox
->
setToolTip
(
formatTooltip
(
qtr
(
p_item
->
psz_longtext
))
);
}
}
int
BoolConfigControl
::
getValue
()
int
BoolConfigControl
::
getValue
()
{
{
return
checkbox
->
checkState
()
==
Qt
::
Checked
?
true
:
false
;
return
checkbox
->
isChecked
()
;
}
}
/**************************************************************************
/**************************************************************************
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
a50bb327
...
@@ -201,14 +201,14 @@ public:
...
@@ -201,14 +201,14 @@ public:
BoolConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QWidget
*
,
BoolConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QWidget
*
,
QGridLayout
*
,
int
&
);
QGridLayout
*
,
int
&
);
BoolConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
BoolConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
Q
CheckBox
*
,
bool
);
QLabel
*
,
Q
AbstractButton
*
,
bool
);
virtual
~
BoolConfigControl
()
{};
virtual
~
BoolConfigControl
()
{};
virtual
int
getValue
();
virtual
int
getValue
();
virtual
void
show
()
{
checkbox
->
show
();
}
virtual
void
show
()
{
checkbox
->
show
();
}
virtual
void
hide
()
{
checkbox
->
hide
();
}
virtual
void
hide
()
{
checkbox
->
hide
();
}
virtual
int
getType
()
{
return
CONFIG_ITEM_BOOL
;
}
virtual
int
getType
()
{
return
CONFIG_ITEM_BOOL
;
}
private:
private:
Q
CheckBox
*
checkbox
;
Q
AbstractButton
*
checkbox
;
void
finish
();
void
finish
();
};
};
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
a50bb327
...
@@ -223,6 +223,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -223,6 +223,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
START_SPREFS_CAT
(
Audio
,
qtr
(
"Audio Settings"
)
);
START_SPREFS_CAT
(
Audio
,
qtr
(
"Audio Settings"
)
);
CONFIG_GENERIC
(
"audio"
,
Bool
,
NULL
,
enableAudio
);
CONFIG_GENERIC
(
"audio"
,
Bool
,
NULL
,
enableAudio
);
ui
.
SPrefsAudio_zone
->
setEnabled
(
ui
.
enableAudio
->
isChecked
()
);
CONNECT
(
ui
.
enableAudio
,
toggled
(
bool
),
ui
.
SPrefsAudio_zone
,
setEnabled
(
bool
)
);
#define audioCommon( name ) \
#define audioCommon( name ) \
QWidget * name ## Control = new QWidget( ui.outputAudioBox ); \
QWidget * name ## Control = new QWidget( ui.outputAudioBox ); \
...
@@ -230,7 +233,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -230,7 +233,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
name ## Layout->setMargin( 0 ); \
name ## Layout->setMargin( 0 ); \
name ## Layout->setSpacing( 0 ); \
name ## Layout->setSpacing( 0 ); \
QLabel * name ## Label = new QLabel( qtr( "Device:" ), name ## Control ); \
QLabel * name ## Label = new QLabel( qtr( "Device:" ), name ## Control ); \
name ## Label->setMinimumSize(QSize(
10
0, 0)); \
name ## Label->setMinimumSize(QSize(
25
0, 0)); \
name ## Layout->addWidget( name ## Label ); \
name ## Layout->addWidget( name ## Label ); \
#define audioControl( name) \
#define audioControl( name) \
...
@@ -249,12 +252,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -249,12 +252,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
name ## Layout->addWidget( name ## Browse ); \
name ## Layout->addWidget( name ## Browse ); \
outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
/* hide if necessary */
ui
.
lastfm_user_edit
->
hide
();
ui
.
lastfm_user_label
->
hide
();
ui
.
lastfm_pass_edit
->
hide
();
ui
.
lastfm_pass_label
->
hide
();
/* Build if necessary */
/* Build if necessary */
QGridLayout
*
outputAudioLayout
=
qobject_cast
<
QGridLayout
*>
(
ui
.
outputAudioBox
->
layout
());
QGridLayout
*
outputAudioLayout
=
qobject_cast
<
QGridLayout
*>
(
ui
.
outputAudioBox
->
layout
());
#ifdef WIN32
#ifdef WIN32
...
@@ -292,13 +289,17 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -292,13 +289,17 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC_NO_BOOL
(
"volume"
,
IntegerRangeSlider
,
NULL
,
CONFIG_GENERIC_NO_BOOL
(
"volume"
,
IntegerRangeSlider
,
NULL
,
defaultVolume
);
defaultVolume
);
CONNECT
(
ui
.
defaultVolume
,
valueChanged
(
int
),
CONNECT
(
ui
.
defaultVolume
,
valueChanged
(
int
),
this
,
updateAudioVolume
(
int
)
);
this
,
updateAudioVolume
(
int
)
);
CONFIG_GENERIC
(
"qt-autosave-volume"
,
Bool
,
NULL
,
keepVolumeRadio
);
ui
.
defaultVolume_zone
->
setEnabled
(
ui
.
resetVolumeRadio
->
isChecked
()
);
CONNECT
(
ui
.
resetVolumeRadio
,
toggled
(
bool
),
ui
.
defaultVolume_zone
,
setEnabled
(
bool
)
);
CONFIG_GENERIC
(
"audio-language"
,
String
,
ui
.
langLabel
,
CONFIG_GENERIC
(
"audio-language"
,
String
,
ui
.
langLabel
,
preferredAudioLanguage
);
preferredAudioLanguage
);
CONFIG_GENERIC
(
"spdif"
,
Bool
,
NULL
,
spdifBox
);
CONFIG_GENERIC
(
"spdif"
,
Bool
,
NULL
,
spdifBox
);
CONFIG_GENERIC
(
"qt-autosave-volume"
,
Bool
,
NULL
,
saveVolBox
);
CONFIG_GENERIC
(
"force-dolby-surround"
,
IntegerList
,
ui
.
dolbyLabel
,
CONFIG_GENERIC
(
"force-dolby-surround"
,
IntegerList
,
ui
.
dolbyLabel
,
detectionDolby
);
detectionDolby
);
...
@@ -326,6 +327,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -326,6 +327,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui
.
volumeValue
->
setButtonSymbols
(
QAbstractSpinBox
::
NoButtons
);
ui
.
volumeValue
->
setButtonSymbols
(
QAbstractSpinBox
::
NoButtons
);
optionWidgets
.
append
(
ui
.
volumeValue
);
optionWidgets
.
append
(
ui
.
volumeValue
);
optionWidgets
.
append
(
ui
.
headphoneEffect
);
optionWidgets
.
append
(
ui
.
headphoneEffect
);
optionWidgets
.
append
(
ui
.
spdifBox
);
updateAudioOptions
(
ui
.
outputModule
->
currentIndex
()
);
updateAudioOptions
(
ui
.
outputModule
->
currentIndex
()
);
/* LastFM */
/* LastFM */
...
@@ -340,11 +342,19 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -340,11 +342,19 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui
.
lastfm
->
setChecked
(
true
);
ui
.
lastfm
->
setChecked
(
true
);
else
else
ui
.
lastfm
->
setChecked
(
false
);
ui
.
lastfm
->
setChecked
(
false
);
ui
.
lastfm_zone
->
setEnabled
(
ui
.
lastfm
->
isChecked
()
);
CONNECT
(
ui
.
lastfm
,
toggled
(
bool
),
ui
.
lastfm_zone
,
setEnabled
(
bool
)
);
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
lastfm_Changed
(
int
)
);
this
,
lastfm_Changed
(
int
)
);
}
}
else
else
{
ui
.
lastfm
->
hide
();
ui
.
lastfm
->
hide
();
ui
.
lastfm_zone
->
hide
();
}
/* Normalizer */
/* Normalizer */
CONNECT
(
ui
.
volNormBox
,
toggled
(
bool
),
ui
.
volNormSpin
,
CONNECT
(
ui
.
volNormBox
,
toggled
(
bool
),
ui
.
volNormSpin
,
...
@@ -647,6 +657,8 @@ void SPrefsPanel::updateAudioOptions( int number)
...
@@ -647,6 +657,8 @@ void SPrefsPanel::updateAudioOptions( int number)
optionWidgets
[
alsaW
]
->
setVisible
(
(
value
==
"alsa"
)
);
optionWidgets
[
alsaW
]
->
setVisible
(
(
value
==
"alsa"
)
);
#endif
#endif
optionWidgets
[
fileW
]
->
setVisible
(
(
value
==
"aout_file"
)
);
optionWidgets
[
fileW
]
->
setVisible
(
(
value
==
"aout_file"
)
);
optionWidgets
[
spdifChB
]
->
setVisible
(
(
value
!=
"aout_file"
&&
value
!=
"dummy"
)
);
}
}
...
...
modules/gui/qt4/components/simple_preferences.hpp
View file @
a50bb327
...
@@ -75,6 +75,7 @@ enum {
...
@@ -75,6 +75,7 @@ enum {
normalizerChB
,
normalizerChB
,
volLW
,
volLW
,
headphoneB
,
headphoneB
,
spdifChB
,
};
};
enum
{
inputLE
,
cachingCoB
};
enum
{
inputLE
,
cachingCoB
};
enum
{
skinRB
,
qtRB
};
enum
{
skinRB
,
qtRB
};
...
...
modules/gui/qt4/ui/sprefs_audio.ui
View file @
a50bb327
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<author>
Jean-Baptiste Kempf
</author>
<author>
Jean-Baptiste Kempf
</author>
<class>
SPrefsAudio
</class>
<class>
SPrefsAudio
</class>
<widget class="QWidget" name="SPrefsAudio"
>
<widget
class=
"QWidget"
name=
"SPrefsAudio"
>
<property name="geometry"
>
<property
name=
"geometry"
>
<rect>
<rect>
<x>
0
</x>
<x>
0
</x>
<y>
0
</y>
<y>
0
</y>
<width>
643
</width>
<width>
643
</width>
<height>6
05
</height>
<height>
6
19
</height>
</rect>
</rect>
</property>
</property>
<property name="windowTitle"
>
<property
name=
"windowTitle"
>
<string>
Form
</string>
<string>
Form
</string>
</property>
</property>
<layout class="QVBoxLayout" name="verticalLayout"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<item>
<widget class="QCheckBox" name="enableAudio"
>
<widget
class=
"QCheckBox"
name=
"enableAudio"
>
<property name="text"
>
<property
name=
"text"
>
<string>
Enable audio
</string>
<string>
Enable audio
</string>
</property>
</property>
<property name="checked"
>
<property
name=
"checked"
>
<bool>
true
</bool>
<bool>
true
</bool>
</property>
</property>
</widget>
</widget>
</item>
</item>
<item>
<item>
<widget class="QGroupBox" name="audioBox" >
<widget
class=
"QWidget"
name=
"SPrefsAudio_zone"
native=
"true"
>
<property name="title" >
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<string>General Audio</string>
<property
name=
"leftMargin"
>
</property>
<number>
9
</number>
<layout class="QGridLayout" >
</property>
<item row="0" column="0" colspan="2" >
<property
name=
"topMargin"
>
<widget class="QLabel" name="label_2" >
<number>
0
</number>
<property name="text" >
</property>
<string>Default volume</string>
<property
name=
"bottomMargin"
>
</property>
<number>
0
</number>
</widget>
</property>
</item>
<item>
<item row="0" column="2" colspan="2" >
<widget
class=
"QGroupBox"
name=
"audioBox"
>
<widget class="QSlider" name="defaultVolume" >
<property
name=
"title"
>
<property name="sizePolicy" >
<string>
Volume
</string>
<sizepolicy vsizetype="Minimum" hsizetype="Fixed" >
</property>
<horstretch>0</horstretch>
<layout
class=
"QGridLayout"
>
<verstretch>0</verstretch>
<property
name=
"bottomMargin"
>
</sizepolicy>
<number>
0
</number>
</property>
</property>
<property name="minimumSize" >
<item
row=
"0"
column=
"0"
colspan=
"2"
>
<size>
<widget
class=
"QRadioButton"
name=
"keepVolumeRadio"
>
<width>140</width>
<property
name=
"minimumSize"
>
<height>0</height>
<size>
</size>
<width>
250
</width>
</property>
<height>
0
</height>
<property name="maximumSize" >
</size>
<size>
</property>
<width>200</width>
<property
name=
"text"
>
<height>16777215</height>
<string>
Keep audio level between sessions
</string>
</size>
</property>
</property>
</widget>
<property name="layoutDirection" >
</item>
<enum>Qt::LeftToRight</enum>
<item
row=
"1"
column=
"0"
colspan=
"2"
>
</property>
<widget
class=
"QRadioButton"
name=
"resetVolumeRadio"
>
<property name="maximum" >
<property
name=
"minimumSize"
>
<number>400</number>
<size>
</property>
<width>
250
</width>
<property name="value" >
<height>
0
</height>
<number>100</number>
</size>
</property>
</property>
<property name="orientation" >
<property
name=
"text"
>
<enum>Qt::Horizontal</enum>
<string>
Always reset audio start level to:
</string>
</property>
</property>
</widget>
<property
name=
"checked"
>
</item>
<bool>
true
</bool>
<item row="0" column="4" >
</property>
<widget class="QSpinBox" name="volumeValue" >
</widget>
<property name="toolTip" >
</item>
<string>256 corresponds to 100%, 1024 to 400%</string>
<item
row=
"1"
column=
"2"
>
</property>
<widget
class=
"QWidget"
name=
"defaultVolume_zone"
native=
"true"
>
<property name="alignment" >
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<property
name=
"spacing"
>
</property>
<number>
0
</number>
<property name="readOnly" >
</property>
<bool>true</bool>
<property
name=
"sizeConstraint"
>
</property>
<enum>
QLayout::SetDefaultConstraint
</enum>
<property name="suffix" >
</property>
<string> %</string>
<property
name=
"margin"
>
</property>
<number>
0
</number>
<property name="maximum" >
</property>
<number>400</number>
<item>
</property>
<widget
class=
"QSlider"
name=
"defaultVolume"
>
<property name="value" >
<property
name=
"sizePolicy"
>
<number>100</number>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"Minimum"
>
</property>
<horstretch>
0
</horstretch>
</widget>
<verstretch>
0
</verstretch>
</item>
</sizepolicy>
<item row="1" column="0" >
</property>
<widget class="QCheckBox" name="spdifBox" >
<property
name=
"minimumSize"
>
<property name="text" >
<size>
<string>Use S/PDIF when available</string>
<width>
140
</width>
</property>
<height>
0
</height>
</widget>
</size>
</item>
</property>
<item row="1" column="2" colspan="3" >
<property
name=
"layoutDirection"
>
<widget class="QCheckBox" name="saveVolBox" >
<enum>
Qt::LeftToRight
</enum>
<property name="text" >
</property>
<string>Save volume on exit</string>
<property
name=
"maximum"
>
</property>
<number>
200
</number>
</property>
<property
name=
"value"
>
<number>
100
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item>
<widget
class=
"QSpinBox"
name=
"volumeValue"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"wrapping"
>
<bool>
false
</bool>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
<property
name=
"readOnly"
>
<bool>
true
</bool>
</property>
<property
name=
"suffix"
>
<string>
%
</string>
</property>
<property
name=
"maximum"
>
<number>
200
</number>
</property>
<property
name=
"value"
>
<number>
100
</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</item>
<item row="2" column="0" >
<item>
<widget class="QLabel" name="dolbyLabel" >
<widget
class=
"QGroupBox"
name=
"outputAudioBox"
>
<property name="text" >
<property
name=
"title"
>
<string>Force detection of Dolby Surround</string>
<string>
Output
</string>
</property>
<property name="buddy" >
<cstring>detectionDolby</cstring>
</property>
</property>
<layout
class=
"QGridLayout"
name=
"outputAudioLayout"
>
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"outputLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
250
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Output module:
</string>
</property>
<property
name=
"buddy"
>
<cstring>
outputModule
</cstring>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QComboBox"
name=
"outputModule"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
colspan=
"2"
>
<widget
class=
"QWidget"
name=
"fileControl"
native=
"true"
>
<layout
class=
"QHBoxLayout"
>
<property
name=
"spacing"
>
<number>
0
</number>
</property>
<property
name=
"margin"
>
<number>
0
</number>
</property>
<item>
<widget
class=
"QLabel"
name=
"fileLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
256
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Destination file:
</string>
</property>
<property
name=
"buddy"
>
<cstring>
fileName
</cstring>
</property>
</widget>
</item>
<item>
<widget
class=
"QLineEdit"
name=
"fileName"
/>
</item>
<item>
<widget
class=
"QPushButton"
name=
"fileBrowseButton"
>
<property
name=
"text"
>
<string>
Browse...
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"3"
column=
"1"
>
<widget
class=
"QCheckBox"
name=
"spdifBox"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"text"
>
<string>
Use S/PDIF when available
</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</item>
<item
row="2" column="2" colspan="3"
>
<item>
<widget class="Q
ComboBox" name="detectionDolby"
>
<widget
class=
"Q
GroupBox"
name=
"groupBox_2"
>
<property name="sizePolicy"
>
<property
name=
"sizePolicy"
>
<sizepolicy
vsizetype="Fixed" hsizetype="MinimumExpanding"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</sizepolicy>
</property>
</property>
<property name="maximumSize" >
<property
name=
"title"
>
<size>
<string>
Spatialization
</string>
<width>300</width>
<height>16777215</height>
</size>
</property>
<property name="currentIndex" >
<number>-1</number>
</property>
</property>
</widget>
<property
name=
"checkable"
>
</item>
<bool>
false
</bool>
<item row="3" column="0" >
<widget class="QLabel" name="langLabel" >
<property name="text" >
<string>Preferred audio language</string>
</property>
<property name="buddy" >
<cstring>preferredAudioLanguage</cstring>
</property>
</widget>
</item>
<item row="3" column="2" colspan="3" >
<widget class="QLineEdit" name="preferredAudioLanguage" />
</item>
<item row="2" column="1" >
<spacer name="horizontalSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="outputAudioBox" >
<property name="title" >
<string>Output</string>
</property>
<layout class="QGridLayout" name="outputAudioLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="outputLabel" >
<property name="minimumSize" >
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="text" >
<string>Type</string>
</property>
<property name="buddy" >
<cstring>outputModule</cstring>
</property>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<property
name=
"leftMargin"
>
<number>
9
</number>
</property>
<property
name=
"rightMargin"
>
<number>
9
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<property
name=
"horizontalSpacing"
>
<number>
6
</number>
</property>
<item
row=
"2"
column=
"0"
colspan=
"2"
>
<widget
class=
"QCheckBox"
name=
"headphoneEffect"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"text"
>
<string>
Headphone surround effect
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QComboBox"
name=
"detectionDolby"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"currentIndex"
>
<number>
-1
</number>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"dolbyLabel"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
250
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
250
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Dolby Surround:
</string>
</property>
<property
name=
"buddy"
>
<cstring>
detectionDolby
</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</item>
<item row="0" column="1" >
<item>
<widget class="QComboBox" name="outputModule" >
<widget
class=
"QGroupBox"
name=
"groupBox"
>
<property name="enabled" >
<property
name=
"title"
>
<bool>true</bool>
<string>
Processing
</string>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</property>
</widget>
<layout
class=
"QGridLayout"
>
</item>
<property
name=
"bottomMargin"
>
<item row="1" column="0" colspan="2" >
<widget class="QWidget" native="1" name="fileControl" >
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>0</number>
</property>
<property name="margin" >
<number>
0
</number>
<number>
0
</number>
</property>
</property>
<item>
<item
row=
"4"
column=
"1"
colspan=
"2"
>
<widget class="QLabel" name="fileLabel" >
<widget
class=
"QComboBox"
name=
"visualisation"
>
<property name="minimumSize" >
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item
row=
"4"
column=
"0"
>
<widget
class=
"QLabel"
name=
"visuLabel"
>
<property
name=
"minimumSize"
>
<size>
<size>
<width>
10
0</width>
<width>
25
0
</width>
<height>
0
</height>
<height>
0
</height>
</size>
</size>
</property>
</property>
<property name="text"
>
<property
name=
"text"
>
<string>
File
</string>
<string>
Visualization:
</string>
</property>
</property>
<property name="buddy"
>
<property
name=
"buddy"
>
<cstring>
fileName
</cstring>
<cstring>
visualisation
</cstring>
</property>
</property>
</widget>
</widget>
</item>
</item>
<item>
<item
row=
"3"
column=
"0"
>
<widget class="QLineEdit" name="fileName" />
<widget
class=
"QLabel"
name=
"replayLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
250
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Replay gain mode:
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
</item>
<item>
<item
row=
"3"
column=
"1"
colspan=
"2"
>
<widget class="QPushButton" name="fileBrowseButton" >
<widget
class=
"QComboBox"
name=
"replayCombo"
>
<property name="text" >
<property
name=
"sizePolicy"
>
<string>Browse...</string>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item
row=
"2"
column=
"1"
colspan=
"2"
>
<widget
class=
"QWidget"
name=
"widget"
native=
"true"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<property
name=
"margin"
>
<number>
0
</number>
</property>
<item>
<widget
class=
"QDoubleSpinBox"
name=
"volNormSpin"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight
</set>
</property>
</widget>
</item>
<item>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"volNormBox"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
250
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
250
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Normalize volume to:
</string>
</property>
</property>
</widget>
</widget>
</item>
</item>
</layout>
</layout>
</widget>
</widget>
</item>
</item>
</layout>
<item>
</widget>
<widget
class=
"QGroupBox"
name=
"groupBox_3"
>
</item>
<property
name=
"title"
>
<item>
<string>
Tracks
</string>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Effects</string>
</property>
<layout class="QGridLayout" >
<item row="2" column="1" colspan="2" >
<widget class="QComboBox" name="visualisation" />
</item>
<item row="0" column="0" >
<widget class="QCheckBox" name="headphoneEffect" >
<property name="text" >
<string>Headphone surround effect</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QCheckBox" name="volNormBox" >
<property name="text" >
<string>Volume normalizer</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="visuLabel" >
<property name="text" >
<string>Visualization</string>
</property>
<property name="buddy" >
<cstring>visualisation</cstring>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLabel" name="replayLabel" >
<property name="text" >
<string>Replay gain mode</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QComboBox" name="replayCombo" />
</item>
<item row="1" column="2" >
<widget class="QDoubleSpinBox" name="volNormSpin" >
<property name="alignment" >
<set>Qt::AlignRight</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="lastFMBox" >
<property name="title" >
<string>last.fm</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QCheckBox" name="lastfm" >
<property name="text" >
<string>Enable last.fm submission</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="lastfm_user_label" >
<property name="text" >
<string>Username</string>
</property>
<property name="buddy" >
<cstring>lastfm_user_edit</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="lastfm_user_edit" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="lastfm_pass_label" >
<property name="text" >
<string>Password</string>
</property>
<property name="buddy" >
<cstring>lastfm_pass_edit</cstring>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QLineEdit" name="lastfm_pass_edit" >
<property name="echoMode" >
<enum>QLineEdit::Password</enum>
</property>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_3"
>
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"langLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
250
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Preferred audio language:
</string>
</property>
<property
name=
"buddy"
>
<cstring>
preferredAudioLanguage
</cstring>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"preferredAudioLanguage"
/>
</item>
<item
row=
"2"
column=
"0"
colspan=
"2"
>
<widget
class=
"QWidget"
name=
"lastfm_zone"
native=
"true"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<property
name=
"margin"
>
<number>
0
</number>
</property>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"lastfm_user_edit"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"lastfm_pass_edit"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"echoMode"
>
<enum>
QLineEdit::Password
</enum>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lastfm_pass_label"
>
<property
name=
"maximumSize"
>
<size>
<width>
250
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Password:
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
<property
name=
"buddy"
>
<cstring>
lastfm_pass_edit
</cstring>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lastfm_user_label"
>
<property
name=
"maximumSize"
>
<size>
<width>
250
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Username:
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
<property
name=
"buddy"
>
<cstring>
lastfm_user_edit
</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"1"
column=
"0"
colspan=
"2"
>
<widget
class=
"QCheckBox"
name=
"lastfm"
>
<property
name=
"text"
>
<string>
Submit played tracks stats to Last.fm
</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</item>
</layout>
</layout>
...
@@ -350,88 +564,11 @@
...
@@ -350,88 +564,11 @@
</widget>
</widget>
<tabstops>
<tabstops>
<tabstop>
enableAudio
</tabstop>
<tabstop>
enableAudio
</tabstop>
<tabstop>defaultVolume</tabstop>
<tabstop>volumeValue</tabstop>
<tabstop>spdifBox</tabstop>
<tabstop>saveVolBox</tabstop>
<tabstop>detectionDolby</tabstop>
<tabstop>preferredAudioLanguage</tabstop>
<tabstop>
outputModule
</tabstop>
<tabstop>
outputModule
</tabstop>
<tabstop>
fileName
</tabstop>
<tabstop>
fileName
</tabstop>
<tabstop>
fileBrowseButton
</tabstop>
<tabstop>
fileBrowseButton
</tabstop>
<tabstop>headphoneEffect</tabstop>
<tabstop>volNormBox</tabstop>
<tabstop>volNormSpin</tabstop>
<tabstop>
visualisation
</tabstop>
<tabstop>
visualisation
</tabstop>
<tabstop>lastfm</tabstop>
<tabstop>lastfm_user_edit</tabstop>
<tabstop>lastfm_pass_edit</tabstop>
</tabstops>
</tabstops>
<resources/>
<resources/>
<connections>
<connections/>
<connection>
<sender>lastfm</sender>
<signal>toggled(bool)</signal>
<receiver>lastfm_pass_edit</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>188</x>
<y>619</y>
</hint>
<hint type="destinationlabel" >
<x>360</x>
<y>689</y>
</hint>
</hints>
</connection>
<connection>
<sender>lastfm</sender>
<signal>toggled(bool)</signal>
<receiver>lastfm_pass_label</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>188</x>
<y>619</y>
</hint>
<hint type="destinationlabel" >
<x>102</x>
<y>689</y>
</hint>
</hints>
</connection>
<connection>
<sender>lastfm</sender>
<signal>toggled(bool)</signal>
<receiver>lastfm_user_edit</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>188</x>
<y>619</y>
</hint>
<hint type="destinationlabel" >
<x>360</x>
<y>653</y>
</hint>
</hints>
</connection>
<connection>
<sender>lastfm</sender>
<signal>toggled(bool)</signal>
<receiver>lastfm_user_label</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>188</x>
<y>619</y>
</hint>
<hint type="destinationlabel" >
<x>102</x>
<y>653</y>
</hint>
</hints>
</connection>
</connections>
</ui>
</ui>
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