Commit e5742793 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Add some privacy options to Simple Preferences.

parent 7793f291
...@@ -393,6 +393,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -393,6 +393,8 @@ 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 );
CONFIG_GENERIC( "album-art", IntegerList, ui.artFetchLabel, artFetcher );
CONFIG_GENERIC( "qt-updates-notif", Bool, NULL, qtUpdates );
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 );
......
...@@ -95,6 +95,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * ); ...@@ -95,6 +95,10 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
#define ERROR_TEXT N_("Show unimportant error and warnings dialogs" ) #define ERROR_TEXT N_("Show unimportant error and warnings dialogs" )
#define MINIMAL_TEXT N_("Start in minimal view (menus hidden)." ) #define MINIMAL_TEXT N_("Start in minimal view (menus hidden)." )
#define UPDATER_TEXT N_("Activate the new updates notification")
#define UPDATER_LONGTEXT N_("Activate the automatic notification of new " \
"versions of the software. It runs once a week." )
vlc_module_begin(); vlc_module_begin();
set_shortname( (char *)"Qt" ); set_shortname( (char *)"Qt" );
set_description( (char*)_("Qt interface") ); set_description( (char*)_("Qt interface") );
...@@ -137,6 +141,8 @@ vlc_module_begin(); ...@@ -137,6 +141,8 @@ vlc_module_begin();
ADVANCED_PREFS_LONGTEXT, VLC_FALSE ); ADVANCED_PREFS_LONGTEXT, VLC_FALSE );
add_bool( "qt-error-dialogs", VLC_TRUE, NULL, ERROR_TEXT, add_bool( "qt-error-dialogs", VLC_TRUE, NULL, ERROR_TEXT,
ERROR_TEXT, VLC_FALSE ); ERROR_TEXT, VLC_FALSE );
add_bool( "qt-updates-notif", VLC_TRUE, NULL, UPDATER_TEXT,
UPDATER_LONGTEXT, VLC_FALSE );
add_integer( "qt-pl-showflags", add_integer( "qt-pl-showflags",
VLC_META_ENGINE_ARTIST|VLC_META_ENGINE_TITLE| VLC_META_ENGINE_ARTIST|VLC_META_ENGINE_TITLE|
......
...@@ -6,31 +6,29 @@ ...@@ -6,31 +6,29 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>444</width> <width>444</width>
<height>362</height> <height>520</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" > <item row="0" column="0" >
<number>9</number> <widget class="QLabel" name="languageLabel" >
</property> <property name="text" >
<property name="spacing" > <string>_("Language")</string>
<number>10</number> </property>
</property> </widget>
</item>
<item row="0" column="1" >
<widget class="QComboBox" name="language" />
</item>
<item row="1" column="0" colspan="2" > <item row="1" column="0" colspan="2" >
<widget class="QGroupBox" name="groupBox" > <widget class="QGroupBox" name="groupBox" >
<property name="title" > <property name="title" >
<string>_("Default Interface")</string> <string>_("Default Interface")</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="0" colspan="3" > <item row="2" column="0" colspan="3" >
<widget class="Line" name="line" > <widget class="Line" name="line" >
<property name="orientation" > <property name="orientation" >
...@@ -41,9 +39,7 @@ ...@@ -41,9 +39,7 @@
<item row="3" column="1" colspan="2" > <item row="3" column="1" colspan="2" >
<widget class="QLabel" name="skinsLabel" > <widget class="QLabel" name="skinsLabel" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="MinimumExpanding" hsizetype="Preferred" >
<hsizetype>5</hsizetype>
<vsizetype>3</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
...@@ -128,28 +124,12 @@ ...@@ -128,28 +124,12 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="1" >
<widget class="QComboBox" name="language" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="languageLabel" >
<property name="text" >
<string>_("Language")</string>
</property>
</widget>
</item>
<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="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item> <item>
<widget class="QCheckBox" name="OneInterfaceMode" > <widget class="QCheckBox" name="OneInterfaceMode" >
<property name="text" > <property name="text" >
...@@ -167,6 +147,32 @@ ...@@ -167,6 +147,32 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="2" >
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>_("Interface / Network Interaction")</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="artFetchLabel" >
<property name="text" >
<string>_("Album art download policy")</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QComboBox" name="artFetcher" />
</item>
<item row="1" column="0" >
<widget class="QCheckBox" name="qtUpdates" >
<property name="text" >
<string>_("Activate update notifier")</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
......
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