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
bee4d417
Commit
bee4d417
authored
Apr 29, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Simple Prefs: little adjustements.
parent
1759042f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
39 deletions
+37
-39
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+15
-18
modules/gui/qt4/ui/sprefs_audio.ui
modules/gui/qt4/ui/sprefs_audio.ui
+5
-20
modules/gui/qt4/ui/sprefs_subtitles.ui
modules/gui/qt4/ui/sprefs_subtitles.ui
+17
-1
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
bee4d417
...
@@ -208,8 +208,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -208,8 +208,8 @@ 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
);
CONFIG_GENERIC
(
"audio-language"
,
String
List
,
NULL
,
CONFIG_GENERIC
(
"audio-language"
,
String
,
NULL
,
preferredAudioLanguage
);
//FIXME
preferredAudioLanguage
);
CONFIG_GENERIC
(
"spdif"
,
Bool
,
NULL
,
spdifBox
);
CONFIG_GENERIC
(
"spdif"
,
Bool
,
NULL
,
spdifBox
);
CONFIG_GENERIC
(
"force-dolby-surround"
,
IntegerList
,
NULL
,
CONFIG_GENERIC
(
"force-dolby-surround"
,
IntegerList
,
NULL
,
...
@@ -259,27 +259,24 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -259,27 +259,24 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui
.
skinsLabel
->
setFont
(
italicFont
);
ui
.
skinsLabel
->
setFont
(
italicFont
);
#if defined( WIN32 ) || defined (__APPLE__)
#if defined( WIN32 ) || defined (__APPLE__)
CONFIG_GENERIC
(
"language"
,
StringList
,
NULL
,
language
);
//FIXME
CONFIG_GENERIC
(
"language"
,
StringList
,
NULL
,
language
);
#else
#else
ui
.
language
->
hide
();
ui
.
language
->
hide
();
ui
.
languageLabel
->
hide
();
ui
.
languageLabel
->
hide
();
#endif
#endif
/* interface */
/* interface */
/*
p_config = config_FindConfig( VLC_OBJECT(p_intf), "intf" );
p_config
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
"intf"
);
if
(
p_config
->
value
.
psz
&&
strcmp
(
p_config
->
value
.
psz
,
"qt4"
))
if
(
p_config
->
value
.
psz
&&
strcmp
(
p_config
->
value
.
psz
,
"qt4"
))
{
{
ui
.
qt4
->
setChecked
(
true
);
ui
.
qt4
->
setChecked
(
true
);
control = new StringConfigControl( VLC_OBJECT(p_intf),
p_config, NULL, ui.qt4 );
controls.append( control );
}
}
if
(
p_config
->
value
.
psz
&&
strcmp
(
p_config
->
value
.
psz
,
"skins2"
))
if
(
p_config
->
value
.
psz
&&
strcmp
(
p_config
->
value
.
psz
,
"skins2"
))
{
{
ui
.
skins
->
setChecked
(
true
);
ui
.
skins
->
setChecked
(
true
);
}*/
}
// CONFIG_GENERIC( "intf", Module, NULL, Interface );
//FIXME interface choice
//FIXME interface choice
CONFIG_GENERIC
(
"qt-always-video"
,
Bool
,
NULL
,
qtAlwaysVideo
);
CONFIG_GENERIC
(
"qt-always-video"
,
Bool
,
NULL
,
qtAlwaysVideo
);
CONFIG_GENERIC_FILE
(
"skins2-last"
,
File
,
NULL
,
fileSkin
,
CONFIG_GENERIC_FILE
(
"skins2-last"
,
File
,
NULL
,
fileSkin
,
skinBrowse
);
skinBrowse
);
...
@@ -296,7 +293,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -296,7 +293,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC
(
"osd"
,
Bool
,
NULL
,
OSDBox
);
CONFIG_GENERIC
(
"osd"
,
Bool
,
NULL
,
OSDBox
);
CONFIG_GENERIC
(
"subsdec-encoding"
,
StringList
,
NULL
,
encoding
);
CONFIG_GENERIC
(
"subsdec-encoding"
,
StringList
,
NULL
,
encoding
);
CONFIG_GENERIC
(
"sub-language"
,
String
,
NULL
,
preferredLanguage
);
//FIXME
CONFIG_GENERIC
(
"sub-language"
,
String
,
NULL
,
preferredLanguage
);
CONFIG_GENERIC_FILE
(
"freetype-font"
,
File
,
NULL
,
font
,
CONFIG_GENERIC_FILE
(
"freetype-font"
,
File
,
NULL
,
font
,
fontBrowse
);
fontBrowse
);
CONFIG_GENERIC
(
"freetype-color"
,
IntegerList
,
NULL
,
fontColor
);
CONFIG_GENERIC
(
"freetype-color"
,
IntegerList
,
NULL
,
fontColor
);
...
...
modules/gui/qt4/ui/sprefs_audio.ui
View file @
bee4d417
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<rect>
<rect>
<x>0</x>
<x>0</x>
<y>0</y>
<y>0</y>
<width>4
18
</width>
<width>4
61
</width>
<height>5
39
</height>
<height>5
54
</height>
</rect>
</rect>
</property>
</property>
<property name="windowTitle" >
<property name="windowTitle" >
...
@@ -77,24 +77,6 @@
...
@@ -77,24 +77,6 @@
</property>
</property>
</widget>
</widget>
</item>
</item>
<item row="3" column="1" >
<widget class="QComboBox" name="preferredAudioLanguage" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>300</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="3" column="0" >
<item row="3" column="0" >
<widget class="QLabel" name="label" >
<widget class="QLabel" name="label" >
<property name="text" >
<property name="text" >
...
@@ -130,6 +112,9 @@
...
@@ -130,6 +112,9 @@
</property>
</property>
</widget>
</widget>
</item>
</item>
<item row="3" column="1" >
<widget class="QLineEdit" name="preferredAudioLanguage" />
</item>
</layout>
</layout>
</widget>
</widget>
</item>
</item>
...
...
modules/gui/qt4/ui/sprefs_subtitles.ui
View file @
bee4d417
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<x>0</x>
<x>0</x>
<y>0</y>
<y>0</y>
<width>427</width>
<width>427</width>
<height>3
59
</height>
<height>3
65
</height>
</rect>
</rect>
</property>
</property>
<property name="windowTitle" >
<property name="windowTitle" >
...
@@ -49,6 +49,14 @@
...
@@ -49,6 +49,14 @@
</item>
</item>
<item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<widget class="QGroupBox" name="groupBox_2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<property name="title" >
<string>Subtitles languages</string>
<string>Subtitles languages</string>
</property>
</property>
...
@@ -68,6 +76,14 @@
...
@@ -68,6 +76,14 @@
</item>
</item>
<item row="1" column="1" >
<item row="1" column="1" >
<widget class="QComboBox" name="encoding" >
<widget class="QComboBox" name="encoding" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maxVisibleItems" >
<property name="maxVisibleItems" >
<number>12</number>
<number>12</number>
</property>
</property>
...
...
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