Commit d6f7fd60 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Qt: add deinterlace and deinterlace-mode to simple preferences.

Minor changes by jb@videolan.org
parent 03d6f436
...@@ -209,7 +209,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -209,7 +209,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui.hwYUVBox->setVisible( false ); ui.hwYUVBox->setVisible( false );
#endif #endif
CONFIG_GENERIC( "deinterlace-mode", StringList, ui.deinterLabel, deinterlaceBox ); CONFIG_GENERIC( "deinterlace", IntegerList, ui.deinterLabel, deinterlaceBox );
CONFIG_GENERIC( "deinterlace-mode", StringList, ui.deinterModeLabel, deinterlaceModeBox );
CONFIG_GENERIC( "aspect-ratio", String, ui.arLabel, arLine ); CONFIG_GENERIC( "aspect-ratio", String, ui.arLabel, arLine );
CONFIG_GENERIC_FILE( "snapshot-path", Directory, ui.dirLabel, CONFIG_GENERIC_FILE( "snapshot-path", Directory, ui.dirLabel,
......
<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>SPrefsVideo</class> <class>SPrefsVideo</class>
<widget class="QWidget" name="SPrefsVideo" > <widget class="QWidget" name="SPrefsVideo">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>647</width> <width>514</width>
<height>682</height> <height>606</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout">
<property name="spacing" > <property name="spacing">
<number>10</number> <number>10</number>
</property> </property>
<property name="margin" > <property name="margin">
<number>9</number> <number>9</number>
</property> </property>
<item> <item>
<widget class="QCheckBox" name="enableVideo" > <widget class="QCheckBox" name="enableVideo">
<property name="text" > <property name="text">
<string>Enable video</string> <string>Enable video</string>
</property> </property>
<property name="checked" > <property name="checked">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="displayBox" > <widget class="QGroupBox" name="displayBox">
<property name="title" > <property name="title">
<string>Display</string> <string>Display</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout">
<property name="margin" > <property name="margin">
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<item row="1" column="2" > <item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="windowDecorations" > <widget class="QCheckBox" name="fullscreen">
<property name="text" > <property name="text">
<string>Window decorations</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QCheckBox" name="fullscreen" >
<property name="text" >
<string>Fullscreen</string> <string>Fullscreen</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2" > <item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="alwaysOnTop" > <widget class="QCheckBox" name="alwaysOnTop">
<property name="text" > <property name="text">
<string>Always on top</string> <string>Always on top</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1" colspan="2" > <item row="5" column="1" colspan="2">
<widget class="QComboBox" name="outputModule" /> <widget class="QComboBox" name="outputModule"/>
</item> </item>
<item row="3" column="0" > <item row="5" column="0">
<widget class="QLabel" name="voutLabel" > <widget class="QLabel" name="voutLabel">
<property name="text" > <property name="text">
<string>Output</string> <string>Output</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>outputModule</cstring> <cstring>outputModule</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2" > <item row="0" column="2">
<widget class="QCheckBox" name="overlay" > <widget class="QCheckBox" name="overlay">
<property name="text" > <property name="text">
<string>Accelerated video output (Overlay)</string> <string>Accelerated video output (Overlay)</string>
</property> </property>
<property name="checked" > <property name="checked">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2" > <item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="skipFrames" > <widget class="QCheckBox" name="skipFrames">
<property name="text" > <property name="text">
<string>Skip frames</string> <string>Skip frames</string>
</property> </property>
<property name="checked" > <property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="windowDecorations">
<property name="text">
<string>Window decorations</string>
</property>
<property name="checked">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2" > <item row="2" column="2">
<widget class="QCheckBox" name="hwYUVBox" > <widget class="QCheckBox" name="hwYUVBox">
<property name="text" > <property name="text">
<string>Use hardware YUV->RGB conversions</string> <string>Use hardware YUV-&gt;RGB conversions</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -110,33 +111,33 @@ ...@@ -110,33 +111,33 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="directXBox" > <widget class="QGroupBox" name="directXBox">
<property name="title" > <property name="title">
<string>DirectX</string> <string>DirectX</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout">
<property name="margin" > <property name="margin">
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<item row="1" column="1" colspan="2" > <item row="1" column="1" colspan="2">
<widget class="QComboBox" name="dXdisplayDevice" /> <widget class="QComboBox" name="dXdisplayDevice"/>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QLabel" name="dxDeviceLabel" > <widget class="QLabel" name="dxDeviceLabel">
<property name="text" > <property name="text">
<string>Display device</string> <string>Display device</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>dXdisplayDevice</cstring> <cstring>dXdisplayDevice</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="2" > <item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="wallpaperMode" > <widget class="QCheckBox" name="wallpaperMode">
<property name="text" > <property name="text">
<string>Enable wallpaper mode</string> <string>Enable wallpaper mode</string>
</property> </property>
</widget> </widget>
...@@ -145,99 +146,129 @@ ...@@ -145,99 +146,129 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupBox_2" > <widget class="QGroupBox" name="groupBox_2">
<property name="title" > <property name="title">
<string>Video</string> <string>Video</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout" > <layout class="QGridLayout" name="gridLayout">
<item row="0" column="1" > <item row="0" column="0">
<widget class="QComboBox" name="deinterlaceBox" /> <widget class="QLabel" name="deinterLabel">
</item> <property name="text">
<item row="0" column="0" > <string>Deinterlacing</string>
<widget class="QLabel" name="deinterLabel" >
<property name="text" >
<string>Deinterlacing Mode</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QLabel" name="arLabel" > <widget class="QLabel" name="arLabel">
<property name="text" > <property name="text">
<string>Force Aspect Ratio</string> <string>Force Aspect Ratio</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="0" column="1">
<widget class="QLineEdit" name="arLine" /> <widget class="QComboBox" name="deinterlaceBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="deinterModeLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Mode</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QComboBox" name="deinterlaceModeBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="1" colspan="3">
<widget class="QLineEdit" name="arLine"/>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupBox" > <widget class="QGroupBox" name="groupBox">
<property name="title" > <property name="title">
<string>Video snapshots</string> <string>Video snapshots</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout">
<property name="margin" > <property name="margin">
<number>9</number> <number>9</number>
</property> </property>
<property name="spacing" > <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<item row="0" column="1" colspan="2" > <item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="snapshotsDirectory" /> <widget class="QLineEdit" name="snapshotsDirectory"/>
</item> </item>
<item row="0" column="3" > <item row="0" column="3">
<widget class="QPushButton" name="snapshotsDirectoryBrowse" > <widget class="QPushButton" name="snapshotsDirectoryBrowse">
<property name="text" > <property name="text">
<string>Browse...</string> <string>Browse...</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0" > <item row="0" column="0">
<widget class="QLabel" name="dirLabel" > <widget class="QLabel" name="dirLabel">
<property name="text" > <property name="text">
<string>Directory</string> <string>Directory</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>snapshotsDirectory</cstring> <cstring>snapshotsDirectory</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QLabel" name="prefixLabel" > <widget class="QLabel" name="prefixLabel">
<property name="text" > <property name="text">
<string>Prefix</string> <string>Prefix</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>snapshotsPrefix</cstring> <cstring>snapshotsPrefix</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<widget class="QLineEdit" name="snapshotsPrefix" > <widget class="QLineEdit" name="snapshotsPrefix">
<property name="text" > <property name="text">
<string>vlc-snap</string> <string>vlc-snap</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" > <item row="2" column="0">
<widget class="QLabel" name="formatLabel" > <widget class="QLabel" name="formatLabel">
<property name="text" > <property name="text">
<string>Format</string> <string>Format</string>
</property> </property>
<property name="buddy" > <property name="buddy">
<cstring>snapshotsFormat</cstring> <cstring>snapshotsFormat</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1" colspan="3" > <item row="2" column="1" colspan="3">
<widget class="QComboBox" name="snapshotsFormat" /> <widget class="QComboBox" name="snapshotsFormat"/>
</item> </item>
<item row="1" column="2" colspan="2" > <item row="1" column="2" colspan="2">
<widget class="QCheckBox" name="snapshotsSequentialNumbering" > <widget class="QCheckBox" name="snapshotsSequentialNumbering">
<property name="text" > <property name="text">
<string>Sequential numbering</string> <string>Sequential numbering</string>
</property> </property>
</widget> </widget>
...@@ -252,7 +283,6 @@ ...@@ -252,7 +283,6 @@
<tabstop>fullscreen</tabstop> <tabstop>fullscreen</tabstop>
<tabstop>overlay</tabstop> <tabstop>overlay</tabstop>
<tabstop>alwaysOnTop</tabstop> <tabstop>alwaysOnTop</tabstop>
<tabstop>windowDecorations</tabstop>
<tabstop>skipFrames</tabstop> <tabstop>skipFrames</tabstop>
<tabstop>outputModule</tabstop> <tabstop>outputModule</tabstop>
<tabstop>wallpaperMode</tabstop> <tabstop>wallpaperMode</tabstop>
......
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