Commit 1b7f5b82 authored by Erwan Tulou's avatar Erwan Tulou Committed by Jean-Baptiste Kempf

qt4(preferences): add a preview image for skins (similar to qt4 native preview)

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d644a058
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0" >
<ui version="4.0">
<author>Jean-Baptiste Kempf</author> <author>Jean-Baptiste Kempf</author>
<class>SPrefsInterface</class> <class>SPrefsInterface</class>
<widget class="QWidget" name="SPrefsInterface"> <widget class="QWidget" name="SPrefsInterface" >
<property name="geometry"> <property name="geometry" >
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
...@@ -11,32 +10,32 @@ ...@@ -11,32 +10,32 @@
<height>657</height> <height>657</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="Preferred" vsizetype="Minimum"> <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="windowTitle"> <property name="windowTitle" >
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3" >
<item row="2" column="0" colspan="2"> <item row="2" column="0" colspan="2" >
<widget class="QGroupBox" name="OneInterfaceBox"> <widget class="QGroupBox" name="OneInterfaceBox" >
<property name="title"> <property name="title" >
<string>Instances</string> <string>Instances</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2" >
<item row="0" column="0"> <item row="0" column="0" >
<widget class="QCheckBox" name="OneInterfaceMode"> <widget class="QCheckBox" name="OneInterfaceMode" >
<property name="text"> <property name="text" >
<string>Allow only one instance</string> <string>Allow only one instance</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1" colspan="2"> <item row="0" column="1" colspan="2" >
<widget class="QCheckBox" name="EnqueueOneInterfaceMode"> <widget class="QCheckBox" name="EnqueueOneInterfaceMode" >
<property name="text"> <property name="text" >
<string>Enqueue files when in one instance mode</string> <string>Enqueue files when in one instance mode</string>
</property> </property>
</widget> </widget>
...@@ -44,63 +43,63 @@ ...@@ -44,63 +43,63 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="4" column="0" colspan="2"> <item row="4" column="0" colspan="2" >
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2" >
<property name="title"> <property name="title" >
<string>Privacy / Network Interaction</string> <string>Privacy / Network Interaction</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_5"> <layout class="QGridLayout" name="gridLayout_5" >
<item row="0" column="0"> <item row="0" column="0" >
<widget class="QLabel" name="artFetchLabel"> <widget class="QLabel" name="artFetchLabel" >
<property name="minimumSize"> <property name="minimumSize" >
<size> <size>
<width>220</width> <width>220</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text" >
<string>Album art download policy:</string> <string>Album art download policy:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2" colspan="2"> <item row="0" column="2" colspan="2" >
<widget class="QComboBox" name="artFetcher"/> <widget class="QComboBox" name="artFetcher" />
</item> </item>
<item row="1" column="0"> <item row="1" column="0" >
<widget class="QCheckBox" name="updatesBox"> <widget class="QCheckBox" name="updatesBox" >
<property name="text"> <property name="text" >
<string>Activate update notifier</string> <string>Activate update notifier</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="2"> <item row="1" column="2" >
<widget class="QSpinBox" name="updatesDays"> <widget class="QSpinBox" name="updatesDays" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="suffix"> <property name="suffix" >
<string> days</string> <string> days</string>
</property> </property>
<property name="prefix"> <property name="prefix" >
<string>Every </string> <string>Every </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="3"> <item row="1" column="3" >
<spacer name="horizontalSpacer_2"> <spacer name="horizontalSpacer_2" >
<property name="orientation"> <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType"> <property name="sizeType" >
<enum>QSizePolicy::Preferred</enum> <enum>QSizePolicy::Preferred</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0" >
<size> <size>
<width>200</width> <width>200</width>
<height>27</height> <height>27</height>
...@@ -108,35 +107,35 @@ ...@@ -108,35 +107,35 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="2" column="0"> <item row="2" column="0" >
<widget class="QCheckBox" name="saveRecentlyPlayed"> <widget class="QCheckBox" name="saveRecentlyPlayed" >
<property name="text"> <property name="text" >
<string>Save recently played items</string> <string>Save recently played items</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1" >
<widget class="QLabel" name="filterLabel"> <widget class="QLabel" name="filterLabel" >
<property name="text"> <property name="text" >
<string>Filter:</string> <string>Filter:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="margin"> <property name="margin" >
<number>5</number> <number>5</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2" colspan="2"> <item row="2" column="2" colspan="2" >
<widget class="QLineEdit" name="recentlyPlayedFilters"> <widget class="QLineEdit" name="recentlyPlayedFilters" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip"> <property name="toolTip" >
<string>Separate words by | (without space)</string> <string>Separate words by | (without space)</string>
</property> </property>
</widget> </widget>
...@@ -144,117 +143,117 @@ ...@@ -144,117 +143,117 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2"> <item row="1" column="0" colspan="2" >
<widget class="QGroupBox" name="LooknfeelBox"> <widget class="QGroupBox" name="LooknfeelBox" >
<property name="title"> <property name="title" >
<string>Look and feel</string> <string>Look and feel</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout" >
<item row="0" column="2" colspan="4"> <item row="0" column="2" colspan="4" >
<widget class="QLabel" name="defaultLabel"> <widget class="QLabel" name="defaultLabel" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="frameShape"> <property name="frameShape" >
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="text"> <property name="text" >
<string>This is VLC's default interface, with a native look and feel.</string> <string>This is VLC's default interface, with a native look and feel.</string>
</property> </property>
<property name="textFormat"> <property name="textFormat" >
<enum>Qt::RichText</enum> <enum>Qt::RichText</enum>
</property> </property>
<property name="wordWrap"> <property name="wordWrap" >
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="margin"> <property name="margin" >
<number>10</number> <number>10</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0" colspan="2"> <item row="6" column="0" colspan="2" >
<widget class="QRadioButton" name="skins"> <widget class="QRadioButton" name="skins" >
<property name="text"> <property name="text" >
<string>Use custom skin</string> <string>Use custom skin</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="2" colspan="4"> <item row="6" column="2" colspan="4" >
<widget class="QLabel" name="skinsLabel"> <widget class="QLabel" name="skinsLabel" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="frameShape"> <property name="frameShape" >
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="text"> <property name="text" >
<string/> <string/>
</property> </property>
<property name="textFormat"> <property name="textFormat" >
<enum>Qt::RichText</enum> <enum>Qt::RichText</enum>
</property> </property>
<property name="scaledContents"> <property name="scaledContents" >
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property> </property>
<property name="wordWrap"> <property name="wordWrap" >
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="margin"> <property name="margin" >
<number>5</number> <number>5</number>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks" >
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0" colspan="6"> <item row="5" column="0" colspan="6" >
<widget class="Line" name="line"> <widget class="Line" name="line" >
<property name="orientation"> <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="2" colspan="4"> <item row="7" column="2" colspan="4" >
<widget class="QWidget" name="skins_zone" native="true"> <widget class="QWidget" native="1" name="skins_zone" >
<property name="enabled"> <property name="enabled" >
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2" >
<property name="margin"> <property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="skinFileLabel"> <widget class="QLabel" name="skinFileLabel" >
<property name="text"> <property name="text" >
<string>Skin resource file:</string> <string>Skin resource file:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="buddy"> <property name="buddy" >
<cstring>fileSkin</cstring> <cstring>fileSkin</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="fileSkin"> <widget class="QLineEdit" name="fileSkin" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -262,14 +261,14 @@ ...@@ -262,14 +261,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="skinBrowse"> <widget class="QPushButton" name="skinBrowse" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text" >
<string>Choose...</string> <string>Choose...</string>
</property> </property>
</widget> </widget>
...@@ -277,75 +276,75 @@ ...@@ -277,75 +276,75 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="2"> <item row="0" column="0" colspan="2" >
<widget class="QRadioButton" name="qt4"> <widget class="QRadioButton" name="qt4" >
<property name="text"> <property name="text" >
<string>Use native style</string> <string>Use native style</string>
</property> </property>
<property name="checked"> <property name="checked" >
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="2" colspan="4"> <item row="1" column="2" colspan="4" >
<widget class="QWidget" name="native_zone" native="true"> <widget class="QWidget" native="1" name="native_zone" >
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4" >
<property name="margin"> <property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="1"> <item row="0" column="1" >
<widget class="QComboBox" name="displayModeBox"> <widget class="QComboBox" name="displayModeBox" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="7" 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="0" column="0"> <item row="0" column="0" >
<widget class="QLabel" name="displayLabel"> <widget class="QLabel" name="displayLabel" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="layoutDirection"> <property name="layoutDirection" >
<enum>Qt::LeftToRight</enum> <enum>Qt::LeftToRight</enum>
</property> </property>
<property name="text"> <property name="text" >
<string>Display mode:</string> <string>Display mode:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1" >
<widget class="QCheckBox" name="systrayBox"> <widget class="QCheckBox" name="systrayBox" >
<property name="text"> <property name="text" >
<string>Show systray icon</string> <string>Show systray icon</string>
</property> </property>
</widget> </widget>
</item> </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" >
<string>Resize interface to video size</string> <string>Resize interface to video size</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0"> <item row="7" column="0" >
<widget class="QCheckBox" name="embedVideo"> <widget class="QCheckBox" name="embedVideo" >
<property name="text"> <property name="text" >
<string>Embed video in interface</string> <string>Embed video in interface</string>
</property> </property>
</widget> </widget>
...@@ -353,68 +352,79 @@ ...@@ -353,68 +352,79 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="7" column="0" >
<widget class="QLabel" name="previewSkins" >
<property name="text" >
<string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;img src=":/prefsmenu/sample_skins" />&lt;/p>&lt;/body>&lt;/html></string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="2"> <item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="languageBox"> <widget class="QGroupBox" name="languageBox" >
<property name="title"> <property name="title" >
<string>Language</string> <string>Language</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QHBoxLayout" name="horizontalLayout_3" >
<item> <item>
<widget class="QLabel" name="languageLabel"> <widget class="QLabel" name="languageLabel" >
<property name="maximumSize"> <property name="maximumSize" >
<size> <size>
<width>220</width> <width>220</width>
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text" >
<string>Menus language:</string> <string>Menus language:</string>
</property> </property>
<property name="alignment"> <property name="alignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="language"/> <widget class="QComboBox" name="language" />
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="2"> <item row="3" column="0" colspan="2" >
<widget class="QGroupBox" name="assoBox"> <widget class="QGroupBox" name="assoBox" >
<property name="title"> <property name="title" >
<string>File associations</string> <string>File associations</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_4" >
<item> <item>
<widget class="QPushButton" name="assoButton"> <widget class="QPushButton" name="assoButton" >
<property name="sizePolicy"> <property name="sizePolicy" >
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="minimumSize" >
<size> <size>
<width>220</width> <width>220</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text" >
<string>Set up associations...</string> <string>Set up associations...</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer" >
<property name="orientation"> <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0" >
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
...@@ -433,6 +443,8 @@ ...@@ -433,6 +443,8 @@
<tabstop>artFetcher</tabstop> <tabstop>artFetcher</tabstop>
<tabstop>updatesBox</tabstop> <tabstop>updatesBox</tabstop>
</tabstops> </tabstops>
<resources/> <resources>
<include location="../vlc.qrc" />
</resources>
<connections/> <connections/>
</ui> </ui>
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
<file alias="sample_classic" >pixmaps/sample_classic.png</file> <file alias="sample_classic" >pixmaps/sample_classic.png</file>
<file alias="sample_complete" >pixmaps/sample_complete.png</file> <file alias="sample_complete" >pixmaps/sample_complete.png</file>
<file alias="sample_minimal" >pixmaps/sample_minimal.png</file> <file alias="sample_minimal" >pixmaps/sample_minimal.png</file>
<file alias="sample_skins" >pixmaps/sample_skins.png</file>
</qresource> </qresource>
<qresource prefix="/prefsmenu/advanced" > <qresource prefix="/prefsmenu/advanced" >
<file alias="audio" >pixmaps/prefs/advprefs_audio.png</file> <file alias="audio" >pixmaps/prefs/advprefs_audio.png</file>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment