Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e17ee1aa
Commit
e17ee1aa
authored
Mar 12, 2010
by
Francois Cartegnie
Committed by
Jean-Baptiste Kempf
Mar 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Fix simple preferences according to new ui modes
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b56560d7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
56 deletions
+50
-56
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+28
-10
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+6
-5
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+5
-5
modules/gui/qt4/ui/sprefs_interface.ui
modules/gui/qt4/ui/sprefs_interface.ui
+11
-36
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
e17ee1aa
...
@@ -205,16 +205,34 @@ InterfacePreviewWidget::InterfacePreviewWidget ( QWidget *parent ) : QLabel( par
...
@@ -205,16 +205,34 @@ InterfacePreviewWidget::InterfacePreviewWidget ( QWidget *parent ) : QLabel( par
setSizePolicy
(
QSizePolicy
::
Fixed
,
QSizePolicy
::
Fixed
);
setSizePolicy
(
QSizePolicy
::
Fixed
,
QSizePolicy
::
Fixed
);
}
}
void
InterfacePreviewWidget
::
set
Preview
(
int
comboid
)
void
InterfacePreviewWidget
::
set
NormalPreview
(
bool
b_minimal
)
{
{
/* Need to move resources references as soon as qt4.cpp
setPreview
(
(
b_minimal
)
?
MINIMAL
:
COMPLETE
);
local defines has been moved somewhere else
}
*/
static
const
char
pixmaps
[][
28
]
=
{
":/prefsmenu/sample_classic"
,
void
InterfacePreviewWidget
::
setPreview
(
enum_style
e_style
)
":/prefsmenu/sample_complete"
,
{
":/prefsmenu/sample_minimal"
,
QString
pixmapLocationString
(
":/prefsmenu/"
);
":/prefsmenu/sample_skins"
};
setPixmap
(
QPixmap
(
pixmaps
[
comboid
]
)
);
switch
(
e_style
)
{
default:
case
CLASSIC
:
pixmapLocationString
+=
"sample_classic"
;
break
;
case
COMPLETE
:
pixmapLocationString
+=
"sample_complete"
;
break
;
case
MINIMAL
:
pixmapLocationString
+=
"sample_minimal"
;
break
;
case
SKINS
:
pixmapLocationString
+=
"sample_skins"
;
break
;
}
setPixmap
(
QPixmap
(
pixmapLocationString
)
);
update
();
}
}
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
e17ee1aa
...
@@ -63,12 +63,13 @@ class InterfacePreviewWidget : public QLabel
...
@@ -63,12 +63,13 @@ class InterfacePreviewWidget : public QLabel
Q_OBJECT
Q_OBJECT
public:
public:
InterfacePreviewWidget
(
QWidget
*
);
InterfacePreviewWidget
(
QWidget
*
);
enum
enum_style
{
CLASSIC
,
// aka VLC 0.8.6
COMPLETE
,
// aka MPC
MINIMAL
,
// aka WMP12 minimal
SKINS
};
public
slots
:
public
slots
:
/* 0: sample_classic, aka VLC 0.8.6
void
setPreview
(
enum_style
);
1: sample_complete, aka MPC
void
setNormalPreview
(
bool
b_minimal
);
2: sample_minimal, aka WMP12 minimal
3: sample_skins */
void
setPreview
(
int
);
};
};
/*******************************************************
/*******************************************************
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
e17ee1aa
...
@@ -564,12 +564,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -564,12 +564,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui
.
native_zone
->
setEnabled
(
ui
.
qt4
->
isChecked
()
);
ui
.
native_zone
->
setEnabled
(
ui
.
qt4
->
isChecked
()
);
CONNECT
(
ui
.
qt4
,
toggled
(
bool
),
ui
.
native_zone
,
setEnabled
(
bool
)
);
CONNECT
(
ui
.
qt4
,
toggled
(
bool
),
ui
.
native_zone
,
setEnabled
(
bool
)
);
CONNECT
(
ui
.
displayModeBox
,
currentIndexChanged
(
int
),
CONNECT
(
ui
.
minimalviewBox
,
toggled
(
bool
),
ui
.
mainPreview
,
setPreview
(
int
)
);
ui
.
mainPreview
,
setNormalPreview
(
bool
)
);
ui
.
skinsPreview
->
setPreview
(
3
);
/* skins_preview resource index */
CONFIG_BOOL
(
"qt-minimal-view"
,
minimalviewBox
);
ui
.
mainPreview
->
setNormalPreview
(
ui
.
minimalviewBox
->
isChecked
()
);
ui
.
skinsPreview
->
setPreview
(
InterfacePreviewWidget
::
SKINS
);
CONFIG_GENERIC
(
"qt-display-mode"
,
IntegerList
,
ui
.
displayLabel
,
displayModeBox
);
CONFIG_BOOL
(
"embedded-video"
,
embedVideo
);
CONFIG_BOOL
(
"embedded-video"
,
embedVideo
);
CONFIG_BOOL
(
"qt-fs-controller"
,
fsController
);
CONFIG_BOOL
(
"qt-fs-controller"
,
fsController
);
CONFIG_BOOL
(
"qt-system-tray"
,
systrayBox
);
CONFIG_BOOL
(
"qt-system-tray"
,
systrayBox
);
...
...
modules/gui/qt4/ui/sprefs_interface.ui
View file @
e17ee1aa
...
@@ -342,35 +342,6 @@
...
@@ -342,35 +342,6 @@
<property
name=
"margin"
>
<property
name=
"margin"
>
<number>
0
</number>
<number>
0
</number>
</property>
</property>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QComboBox"
name=
"displayModeBox"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"displayLabel"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"layoutDirection"
>
<enum>
Qt::LeftToRight
</enum>
</property>
<property
name=
"text"
>
<string>
Display mode:
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"4"
column=
"0"
>
<item
row=
"4"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"resizingBox"
>
<widget
class=
"QCheckBox"
name=
"resizingBox"
>
<property
name=
"text"
>
<property
name=
"text"
>
...
@@ -405,17 +376,24 @@
...
@@ -405,17 +376,24 @@
</property>
</property>
</widget>
</widget>
</item>
</item>
<item
row=
"6"
column=
"0"
>
<item
row=
"5"
column=
"1"
>
<widget
class=
"QCheckBox"
name=
"sysPop"
>
<property
name=
"text"
>
<string>
Systray popup when minimized
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QCheckBox"
name=
"fsController"
>
<widget
class=
"QCheckBox"
name=
"fsController"
>
<property
name=
"text"
>
<property
name=
"text"
>
<string>
Show controls in full screen mode
</string>
<string>
Show controls in full screen mode
</string>
</property>
</property>
</widget>
</widget>
</item>
</item>
<item
row=
"
5"
column=
"1
"
>
<item
row=
"
0"
column=
"0
"
>
<widget
class=
"QCheckBox"
name=
"
sysPop
"
>
<widget
class=
"QCheckBox"
name=
"
minimalviewBox
"
>
<property
name=
"text"
>
<property
name=
"text"
>
<string>
Systray popup when minimized
</string>
<string>
Minimal view mode (no toolbars)
</string>
</property>
</property>
</widget>
</widget>
</item>
</item>
...
@@ -446,9 +424,6 @@
...
@@ -446,9 +424,6 @@
<property
name=
"alignment"
>
<property
name=
"alignment"
>
<set>
Qt::AlignHCenter|Qt::AlignTop
</set>
<set>
Qt::AlignHCenter|Qt::AlignTop
</set>
</property>
</property>
<property
name=
"buddy"
>
<cstring>
displayModeBox
</cstring>
</property>
</widget>
</widget>
</item>
</item>
<item
row=
"8"
column=
"0"
colspan=
"2"
>
<item
row=
"8"
column=
"0"
colspan=
"2"
>
...
...
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