KRestrictedLine > QLineEdit

parent 6ec5eb09
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
#include "kdenlivesettings.h" #include "kdenlivesettings.h"
#include <QMouseEvent> #include <QMouseEvent>
#include <QLineEdit>
#include <kglobal.h> #include <kglobal.h>
#include <klocale.h> #include <klocale.h>
#include <kdebug.h> #include <kdebug.h>
#include <krestrictedline.h>
#include <KColorScheme> #include <KColorScheme>
#include <KGlobalSettings> #include <KGlobalSettings>
......
...@@ -6,74 +6,74 @@ ...@@ -6,74 +6,74 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>323</width> <width>344</width>
<height>557</height> <height>720</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Clip Properties</string> <string>Clip Properties</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="4"> <item row="0" column="0" colspan="5">
<widget class="QLabel" name="clip_thumb"> <widget class="QLabel" name="clip_thumb">
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="4"> <item row="1" column="0" colspan="5">
<widget class="QLabel" name="label_path"> <widget class="QLabel" name="label_path">
<property name="text"> <property name="text">
<string>Path</string> <string>Path</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="4"> <item row="2" column="0" colspan="5">
<widget class="QLineEdit" name="clip_path"> <widget class="QLineEdit" name="clip_path">
<property name="readOnly"> <property name="readOnly">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="4"> <item row="3" column="0" colspan="5">
<widget class="QLabel" name="label_description"> <widget class="QLabel" name="label_description">
<property name="text"> <property name="text">
<string>Description</string> <string>Description</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0" colspan="4"> <item row="4" column="0" colspan="5">
<widget class="QLineEdit" name="clip_description"/> <widget class="QLineEdit" name="clip_description"/>
</item> </item>
<item row="5" column="0"> <item row="5" column="3">
<widget class="QLabel" name="label_duration"> <widget class="QLabel" name="label_size">
<property name="text"> <property name="text">
<string>Duration</string> <string>Size:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="5" column="0">
<widget class="KRestrictedLine" name="clip_duration"> <widget class="QLabel" name="label_duration">
<property name="inputMask"> <property name="text">
<string>99:99:99:99; </string> <string>Duration</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="2"> <item row="5" column="4">
<widget class="QLabel" name="label_size"> <widget class="QLabel" name="clip_filesize">
<property name="text"> <property name="text">
<string>Size:</string> <string>File size</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="3"> <item row="6" column="0" colspan="5">
<widget class="QLabel" name="clip_filesize"> <widget class="KUrlLabel" name="clip_license">
<property name="text"> <property name="text">
<string>File size</string> <string/>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0" colspan="4"> <item row="7" column="0" colspan="5">
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="tabPosition"> <property name="tabPosition">
<enum>QTabWidget::South</enum> <enum>QTabWidget::South</enum>
...@@ -226,11 +226,7 @@ ...@@ -226,11 +226,7 @@
<item row="1" column="1"> <item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<widget class="KRestrictedLine" name="slide_duration"> <widget class="QLineEdit" name="slide_duration"/>
<property name="inputMask">
<string>99:99:99:99; </string>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="slide_duration_frames"> <widget class="QSpinBox" name="slide_duration_frames">
...@@ -270,11 +266,7 @@ ...@@ -270,11 +266,7 @@
<item row="5" column="1" colspan="2"> <item row="5" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="KRestrictedLine" name="luma_duration"> <widget class="QLineEdit" name="luma_duration"/>
<property name="inputMask">
<string>99:99:99:99; </string>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="luma_duration_frames"> <widget class="QSpinBox" name="luma_duration_frames">
...@@ -487,8 +479,8 @@ ...@@ -487,8 +479,8 @@
</item> </item>
<item row="1" column="3"> <item row="1" column="3">
<widget class="KSeparator" name="kseparator"> <widget class="KSeparator" name="kseparator">
<property name="orientation"> <property name="orientation" stdset="0">
<enum>Qt::Vertical</enum> <number>5</number>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -642,7 +634,7 @@ ...@@ -642,7 +634,7 @@
<string>Advanced</string> <string>Advanced</string>
</attribute> </attribute>
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3">
<item row="13" column="2"> <item row="13" column="3">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
...@@ -662,7 +654,7 @@ ...@@ -662,7 +654,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="2"> <item row="7" column="3">
<widget class="QSpinBox" name="clip_vindex"> <widget class="QSpinBox" name="clip_vindex">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
...@@ -675,7 +667,7 @@ ...@@ -675,7 +667,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="2"> <item row="8" column="3">
<widget class="QSpinBox" name="clip_aindex"> <widget class="QSpinBox" name="clip_aindex">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
...@@ -702,14 +694,14 @@ ...@@ -702,14 +694,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="1"> <item row="3" column="1">
<widget class="QCheckBox" name="clip_force_aindex"> <widget class="QCheckBox" name="clip_force_progressive">
<property name="text"> <property name="text">
<string>Audio index</string> <string>Force scanning</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="2"> <item row="6" column="3">
<widget class="QSpinBox" name="clip_threads"> <widget class="QSpinBox" name="clip_threads">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
...@@ -722,10 +714,10 @@ ...@@ -722,10 +714,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="8" column="1">
<widget class="QCheckBox" name="clip_force_progressive"> <widget class="QCheckBox" name="clip_force_aindex">
<property name="text"> <property name="text">
<string>Force scanning</string> <string>Audio index</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -736,16 +728,6 @@ ...@@ -736,16 +728,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2">
<widget class="QDoubleSpinBox" name="clip_framerate">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximum">
<double>1000.0</double>
</property>
</widget>
</item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QCheckBox" name="clip_force_out"> <widget class="QCheckBox" name="clip_force_out">
<property name="text"> <property name="text">
...@@ -753,13 +735,13 @@ ...@@ -753,13 +735,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2"> <item row="2" column="3">
<widget class="KRestrictedLine" name="clip_out"> <widget class="QDoubleSpinBox" name="clip_framerate">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="inputMask"> <property name="maximum">
<string>99:99:99:99; </string> <double>1000.000000000000000</double>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -770,21 +752,35 @@ ...@@ -770,21 +752,35 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="9" column="2"> <item row="9" column="3">
<widget class="KComboBox" name="clip_colorspace"> <widget class="KComboBox" name="clip_colorspace">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="10" column="1" colspan="2"> <item row="5" column="1">
<widget class="QCheckBox" name="clip_force_fieldorder">
<property name="text">
<string>Force field order</string>
</property>
</widget>
</item>
<item row="10" column="1" colspan="3">
<widget class="QCheckBox" name="clip_full_luma"> <widget class="QCheckBox" name="clip_full_luma">
<property name="text"> <property name="text">
<string>Full luma range</string> <string>Full luma range</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="2"> <item row="5" column="3">
<widget class="KComboBox" name="clip_fieldorder">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="3">
<layout class="QHBoxLayout" name="horizontalLayout_aspect"> <layout class="QHBoxLayout" name="horizontalLayout_aspect">
<item> <item>
<widget class="QSpinBox" name="clip_ar_num"> <widget class="QSpinBox" name="clip_ar_num">
...@@ -827,20 +823,6 @@ ...@@ -827,20 +823,6 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="5" column="1">
<widget class="QCheckBox" name="clip_force_fieldorder">
<property name="text">
<string>Force field order</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="KComboBox" name="clip_fieldorder">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="11" column="1"> <item row="11" column="1">
<widget class="QCheckBox" name="clip_force_transparency"> <widget class="QCheckBox" name="clip_force_transparency">
<property name="text"> <property name="text">
...@@ -848,7 +830,7 @@ ...@@ -848,7 +830,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="11" column="2"> <item row="11" column="3">
<widget class="KComboBox" name="clip_transparency"> <widget class="KComboBox" name="clip_transparency">
<item> <item>
<property name="text"> <property name="text">
...@@ -862,18 +844,21 @@ ...@@ -862,18 +844,21 @@
</item> </item>
</widget> </widget>
</item> </item>
<item row="3" column="2"> <item row="3" column="3">
<widget class="KComboBox" name="clip_progressive"> <widget class="KComboBox" name="clip_progressive">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="3">
<widget class="QLineEdit" name="clip_out"/>
</item>
</layout> </layout>
</widget> </widget>
</widget> </widget>
</item> </item>
<item row="8" column="1" colspan="2"> <item row="8" column="2" colspan="2">
<spacer name="verticalSpacer_4"> <spacer name="verticalSpacer_4">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
...@@ -886,7 +871,7 @@ ...@@ -886,7 +871,7 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="9" column="0" colspan="4"> <item row="9" column="0" colspan="5">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
...@@ -896,12 +881,8 @@ ...@@ -896,12 +881,8 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0" colspan="4"> <item row="5" column="1">
<widget class="KUrlLabel" name="clip_license"> <widget class="QLineEdit" name="clip_duration"/>
<property name="text">
<string/>
</property>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>
...@@ -916,26 +897,17 @@ ...@@ -916,26 +897,17 @@
<extends>QComboBox</extends> <extends>QComboBox</extends>
<header>kcombobox.h</header> <header>kcombobox.h</header>
</customwidget> </customwidget>
<customwidget>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget> <customwidget>
<class>KSeparator</class> <class>KSeparator</class>
<extends>QFrame</extends> <extends>QFrame</extends>
<header>kseparator.h</header> <header>kseparator.h</header>
<container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>KUrlLabel</class> <class>KUrlLabel</class>
<extends>QLabel</extends> <extends>QLabel</extends>
<header>kurllabel.h</header> <header>kurllabel.h</header>
</customwidget> </customwidget>
<customwidget>
<class>KRestrictedLine</class>
<extends>QLineEdit</extends>
<header>krestrictedline.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections> <connections>
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>294</width> <width>330</width>
<height>507</height> <height>582</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QRadioButton" name="method_mime"> <widget class="QRadioButton" name="method_mime">
<property name="text"> <property name="text">
<string>Mimetype</string> <string>&amp;Mimetype</string>
</property> </property>
<property name="checked"> <property name="checked">
<bool>true</bool> <bool>true</bool>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<item row="0" column="1"> <item row="0" column="1">
<widget class="QRadioButton" name="method_pattern"> <widget class="QRadioButton" name="method_pattern">
<property name="text"> <property name="text">
<string>Filename pattern</string> <string>Fi&amp;lename pattern</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -131,11 +131,7 @@ ...@@ -131,11 +131,7 @@
<item row="2" column="2"> <item row="2" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<widget class="KRestrictedLine" name="clip_duration"> <widget class="QLineEdit" name="clip_duration"/>
<property name="inputMask">
<string>99:99:99:99; </string>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="clip_duration_frames"> <widget class="QSpinBox" name="clip_duration_frames">
...@@ -175,14 +171,7 @@ ...@@ -175,14 +171,7 @@
<item row="5" column="2" colspan="2"> <item row="5" column="2" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="KRestrictedLine" name="luma_duration"> <widget class="QLineEdit" name="luma_duration"/>
<property name="enabled">
<bool>false</bool>
</property>
<property name="inputMask">
<string>99:99:99:99; </string>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="luma_duration_frames"> <widget class="QSpinBox" name="luma_duration_frames">
...@@ -321,20 +310,11 @@ ...@@ -321,20 +310,11 @@
<extends>QComboBox</extends> <extends>QComboBox</extends>
<header>kcombobox.h</header> <header>kcombobox.h</header>
</customwidget> </customwidget>
<customwidget>
<class>QLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KRestrictedLine</class>
<extends>QLineEdit</extends>
<header>krestrictedline.h</header>
</customwidget>
<customwidget> <customwidget>
<class>KUrlRequester</class> <class>KUrlRequester</class>
<extends>QFrame</extends> <extends>QFrame</extends>
<header>kurlrequester.h</header> <header>kurlrequester.h</header>
<container>1</container>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
......
...@@ -760,28 +760,21 @@ ...@@ -760,28 +760,21 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2"> <item row="2" column="0" colspan="3">
<widget class="KRestrictedLine" name="title_duration">
<property name="inputMask">
<string>99:99:99:99</string>