Commit 4b5e7346 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Allow to select the style of Qt in Simple preferences.

parent 93f25799
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QScrollArea> #include <QScrollArea>
#include <QStyleFactory>
#include <QSettings>
#include <QtAlgorithms> #include <QtAlgorithms>
#include <string> #include <string>
...@@ -482,7 +484,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -482,7 +484,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
* Interface Panel * * Interface Panel *
*******************/ *******************/
START_SPREFS_CAT( Interface, qtr("Interface Settings") ); START_SPREFS_CAT( Interface, qtr("Interface Settings") );
ui.defaultLabel->setFont( italicFont ); // ui.defaultLabel->setFont( italicFont );
ui.skinsLabel->setText( ui.skinsLabel->setText(
qtr( "This is VLC's skinnable interface. You can download other skins at" ) qtr( "This is VLC's skinnable interface. You can download other skins at" )
+ QString( " <a href=\"http://www.videolan.org/vlc/skins.php\">VLC skins website</a>." ) ); + QString( " <a href=\"http://www.videolan.org/vlc/skins.php\">VLC skins website</a>." ) );
...@@ -495,6 +497,13 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -495,6 +497,13 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui.languageBox->hide(); ui.languageBox->hide();
ui.assoBox->hide(); ui.assoBox->hide();
#endif #endif
ui.stylesCombo->addItems( QStyleFactory::keys() );
ui.stylesCombo->setCurrentIndex( ui.stylesCombo->findText(
getSettings()->value( "MainWindow/QtStyle", "" ).toString() ) );
ui.stylesCombo->insertSeparator( 1 );
CONNECT( ui.stylesCombo, currentIndexChanged( QString ), this, changeStyle( QString ) );
/* interface */ /* interface */
char *psz_intf = config_GetPsz( p_intf, "intf" ); char *psz_intf = config_GetPsz( p_intf, "intf" );
...@@ -510,6 +519,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -510,6 +519,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( ui.skins ); optionWidgets.append( ui.skins );
optionWidgets.append( ui.qt4 ); optionWidgets.append( ui.qt4 );
optionWidgets.append( ui.stylesCombo );
ui.skins_zone->setEnabled( ui.skins->isChecked() ); ui.skins_zone->setEnabled( ui.skins->isChecked() );
CONNECT( ui.skins, toggled( bool ), ui.skins_zone, setEnabled( bool ) ); CONNECT( ui.skins, toggled( bool ), ui.skins_zone, setEnabled( bool ) );
...@@ -750,6 +760,9 @@ void SPrefsPanel::apply() ...@@ -750,6 +760,9 @@ void SPrefsPanel::apply()
config_PutPsz( p_intf, "intf", "skins2" ); config_PutPsz( p_intf, "intf", "skins2" );
if( qobject_cast<QRadioButton *>(optionWidgets[qtRB])->isChecked() ) if( qobject_cast<QRadioButton *>(optionWidgets[qtRB])->isChecked() )
config_PutPsz( p_intf, "intf", "qt" ); config_PutPsz( p_intf, "intf", "qt" );
getSettings()->setValue( "MainWindow/QtStyle",
qobject_cast<QComboBox *>(optionWidgets[styleCB])->currentText() );
break; break;
} }
...@@ -787,6 +800,19 @@ void SPrefsPanel::lastfm_Changed( int i_state ) ...@@ -787,6 +800,19 @@ void SPrefsPanel::lastfm_Changed( int i_state )
config_RemoveIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ); config_RemoveIntf( VLC_OBJECT( p_intf ), "audioscrobbler" );
} }
void SPrefsPanel::changeStyle( QString s_style )
{
QApplication::setStyle( s_style );
/* force refresh on all widgets */
QWidgetList widgets = QApplication::allWidgets();
QWidgetList::iterator it = widgets.begin();
while( it != widgets.end() ) {
(*it)->update();
it++;
};
}
#ifdef WIN32 #ifdef WIN32
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QHeaderView> #include <QHeaderView>
......
...@@ -78,7 +78,7 @@ enum { ...@@ -78,7 +78,7 @@ enum {
spdifChB, spdifChB,
}; };
enum { inputLE, cachingCoB }; enum { inputLE, cachingCoB };
enum { skinRB, qtRB }; enum { skinRB, qtRB, styleCB };
class ConfigControl; class ConfigControl;
class QComboBox; class QComboBox;
...@@ -136,6 +136,7 @@ private slots: ...@@ -136,6 +136,7 @@ private slots:
void assoDialog(); void assoDialog();
void saveAsso(); void saveAsso();
#endif #endif
void changeStyle( QString );
}; };
#endif #endif
...@@ -451,6 +451,12 @@ static void *Thread( void *obj ) ...@@ -451,6 +451,12 @@ static void *Thread( void *obj )
p_intf->p_sys->filepath = p_intf->p_sys->filepath =
getSettings()->value( "filedialog-path", config_GetHomeDir() ).toString(); getSettings()->value( "filedialog-path", config_GetHomeDir() ).toString();
/* Loads and tries to apply the preferred QStyle */
QString s_style = getSettings()->value( "MainWindow/QtStyle", "" ).toString();
if( s_style.compare("") != 0 )
QApplication::setStyle( s_style );
/* Launch */ /* Launch */
app.exec(); app.exec();
......
<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>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>
...@@ -10,32 +11,32 @@ ...@@ -10,32 +11,32 @@
<height>657</height> <height>657</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy vsizetype="Minimum" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<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>
...@@ -43,63 +44,63 @@ ...@@ -43,63 +44,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 vsizetype="Fixed" hsizetype="MinimumExpanding" > <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<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>
...@@ -107,35 +108,35 @@ ...@@ -107,35 +108,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 vsizetype="Fixed" hsizetype="MinimumExpanding" > <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<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>
...@@ -143,117 +144,161 @@ ...@@ -143,117 +144,161 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2" > <item row="0" column="0" colspan="2">
<widget class="QGroupBox" name="LooknfeelBox" > <widget class="QGroupBox" name="languageBox">
<property name="title" > <property name="title">
<string>Look and feel</string> <string>Language</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="languageLabel">
<property name="maximumSize">
<size>
<width>220</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Menus language:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
<layout class="QGridLayout" name="gridLayout" > </widget>
<item row="0" column="2" colspan="4" > </item>
<widget class="QLabel" name="defaultLabel" > <item>
<property name="sizePolicy" > <widget class="QComboBox" name="language"/>
<sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" > </item>
</layout>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QGroupBox" name="assoBox">
<property name="title">
<string>File associations</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="assoButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="frameShape" > <property name="minimumSize">
<enum>QFrame::NoFrame</enum> <size>
</property> <width>220</width>
<property name="text" > <height>0</height>
<string>This is VLC's default interface, with a native look and feel.</string> </size>
</property> </property>
<property name="textFormat" > <property name="text">
<enum>Qt::RichText</enum> <string>Set up associations...</string>
</property> </property>
<property name="wordWrap" > </widget>
<bool>true</bool> </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property> </property>
<property name="margin" > <property name="sizeHint" stdset="0">
<number>10</number> <size>
<width>40</width>
<height>20</height>
</size>
</property> </property>
</spacer>
</item>
</layout>
</widget> </widget>
</item> </item>
<item row="6" column="0" colspan="2" > <item row="1" column="0" colspan="2">
<widget class="QRadioButton" name="skins" > <widget class="QGroupBox" name="LooknfeelBox">
<property name="text" > <property name="title">
<string>Look and feel</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="6" column="0" colspan="2">
<widget class="QRadioButton" name="skins">
<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="2">
<widget class="QLabel" name="skinsLabel" > <widget class="QLabel" name="skinsLabel">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy vsizetype="Minimum" hsizetype="Minimum" > <sizepolicy hsizetype="Minimum" vsizetype="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="4">
<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="2">
<widget class="QWidget" native="1" name="skins_zone" > <widget class="QWidget" name="skins_zone" native="true">
<property name="enabled" > <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="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 vsizetype="Fixed" hsizetype="MinimumExpanding" > <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -261,14 +306,14 @@ ...@@ -261,14 +306,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="skinBrowse" > <widget class="QPushButton" name="skinBrowse">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" > <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<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>
...@@ -276,175 +321,118 @@ ...@@ -276,175 +321,118 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="2" > <item row="0" column="2" rowspan="2" colspan="2">
<widget class="QRadioButton" name="qt4" > <widget class="QWidget" name="native_zone" native="true">
<property name="text" > <layout class="QGridLayout" name="gridLayout_4">
<string>Use native style</string> <property name="margin">
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="2" colspan="4" >
<widget class="QWidget" native="1" name="native_zone" >
<layout class="QGridLayout" name="gridLayout_4" >
<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 vsizetype="Fixed" hsizetype="MinimumExpanding" > <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<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 vsizetype="Preferred" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="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>
</item> </item>
</layout> <item row="8" column="1">
</widget> <widget class="QComboBox" name="stylesCombo"/>
</item> </item>
<item row="7" column="0" > <item row="8" column="0">
<widget class="QLabel" name="previewSkins" > <widget class="QLabel" name="label">
<property name="text" > <property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <string>Force window style:</string>
&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> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="2" > <item row="7" column="0">
<widget class="QGroupBox" name="languageBox" > <widget class="QLabel" name="previewSkins">
<property name="title" > <property name="text">
<string>Language</string> <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
</property> &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
<layout class="QHBoxLayout" name="horizontalLayout_3" > p, li { white-space: pre-wrap; }
<item> &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
<widget class="QLabel" name="languageLabel" > &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;img src=&quot;:/prefsmenu/sample_skins&quot; /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="maximumSize" >
<size>
<width>220</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>Menus language:</string>
</property>
<property name="alignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="0" column="0" colspan="2">
<widget class="QComboBox" name="language" /> <widget class="QRadioButton" name="qt4">
</item> <property name="toolTip">
</layout> <string>This is VLC's default interface, with a native look and feel.</string>
</widget>
</item>
<item row="3" column="0" colspan="2" >
<widget class="QGroupBox" name="assoBox" >
<property name="title" >
<string>File associations</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4" >
<item>
<widget class="QPushButton" name="assoButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="minimumSize" > <property name="text">
<size> <string>Use native style</string>
<width>220</width>
<height>0</height>
</size>
</property> </property>
<property name="text" > <property name="checked">
<string>Set up associations...</string> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </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> </layout>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>qt4</tabstop>
<tabstop>OneInterfaceMode</tabstop> <tabstop>OneInterfaceMode</tabstop>
<tabstop>artFetcher</tabstop> <tabstop>artFetcher</tabstop>
<tabstop>updatesBox</tabstop> <tabstop>updatesBox</tabstop>
</tabstops> </tabstops>
<resources> <resources>
<include location="../vlc.qrc" /> <include location="../vlc.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>
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