You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koffice/kplato/kptdurationwidget.ui

421 lines
16 KiB

<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KPlato::DurationWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>DurationWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>240</width>
<height>22</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>32767</width>
<height>32767</height>
</size>
</property>
<property name="caption">
<string>DurationWidget</string>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQFrame">
<property name="name">
<cstring>m_frame</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32676</width>
<height>20</height>
</size>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="frameShape">
<enum>LineEditPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="toolTip" stdset="0">
<string>Use whole numbers or decimal fractions</string>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>1</number>
</property>
<widget class="TQLabel">
<property name="name">
<cstring>m_hhSpace</cstring>
</property>
<property name="text">
<string></string>
</property>
<property name="buddy" stdset="0">
<cstring>m_ddd</cstring>
</property>
</widget>
<widget class="TQLineEdit">
<property name="name">
<cstring>m_ddd</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>2</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>70</width>
<height>32767</height>
</size>
</property>
<property name="text">
<string>0</string>
<comment>AAA</comment>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="tqalignment">
<set>AlignRight</set>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_ddUnit</cstring>
</property>
<property name="text">
<string>d</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_ddd</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_mmColon</cstring>
</property>
<property name="text">
<string>:</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_hh</cstring>
</property>
</widget>
<widget class="TQLineEdit">
<property name="name">
<cstring>m_hh</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>2</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>50</width>
<height>32767</height>
</size>
</property>
<property name="text">
<string>00</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="tqalignment">
<set>AlignRight</set>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_hhUnit</cstring>
</property>
<property name="text">
<string>h</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_hh</cstring>
</property>
</widget>
<widget class="TQLineEdit">
<property name="name">
<cstring>m_mm</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>2</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>50</width>
<height>32767</height>
</size>
</property>
<property name="text">
<string>00</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="tqalignment">
<set>AlignRight</set>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_mmUnit</cstring>
</property>
<property name="text">
<string>m</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_mm</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_ssColon</cstring>
</property>
<property name="text">
<string>:</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_ss</cstring>
</property>
</widget>
<widget class="TQLineEdit">
<property name="name">
<cstring>m_ss</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>2</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>50</width>
<height>32767</height>
</size>
</property>
<property name="text">
<string>00</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="tqalignment">
<set>AlignRight</set>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_ssUnit</cstring>
</property>
<property name="text">
<string>s</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_ss</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_dot</cstring>
</property>
<property name="text">
<string>.</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_ms</cstring>
</property>
</widget>
<widget class="TQLineEdit">
<property name="name">
<cstring>m_ms</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>2</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>32</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>50</width>
<height>32767</height>
</size>
</property>
<property name="text">
<string>000</string>
</property>
<property name="frame">
<bool>false</bool>
</property>
<property name="tqalignment">
<set>AlignRight</set>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>m_msUnit</cstring>
</property>
<property name="text">
<string>ms</string>
</property>
<property name="buddy" stdset="0">
<cstring>m_ms</cstring>
</property>
</widget>
</hbox>
</widget>
</hbox>
</widget>
<connections>
<connection>
<sender>m_ddd</sender>
<signal>lostFocus()</signal>
<receiver>DurationWidget</receiver>
<slot>dddLostFocus()</slot>
</connection>
<connection>
<sender>m_hh</sender>
<signal>lostFocus()</signal>
<receiver>DurationWidget</receiver>
<slot>hhLostFocus()</slot>
</connection>
<connection>
<sender>m_mm</sender>
<signal>lostFocus()</signal>
<receiver>DurationWidget</receiver>
<slot>mmLostFocus()</slot>
</connection>
<connection>
<sender>m_ss</sender>
<signal>lostFocus()</signal>
<receiver>DurationWidget</receiver>
<slot>ssLostFocus()</slot>
</connection>
<connection>
<sender>m_ms</sender>
<signal>lostFocus()</signal>
<receiver>DurationWidget</receiver>
<slot>msLostFocus()</slot>
</connection>
</connections>
<includes>
<include location="local" impldecl="in declaration">kptduration.h</include>
<include location="global" impldecl="in implementation">tqvalidator.h</include>
<include location="global" impldecl="in implementation">tqregexp.h</include>
<include location="local" impldecl="in implementation">kptdurationwidget.ui.h</include>
</includes>
<forwards>
<forward>class TQRegExpValidator</forward>
</forwards>
<variables>
<variable access="public">enum { Days = 0x1, Hours = 0x2, Minutes = 0x4, Seconds = 0x8, Milliseconds = 0x10 } Fields;</variable>
<variable access="private">TQString m_decimalPoint;</variable>
<variable access="private">TQRegExpValidator *m_validator;</variable>
<variable access="private">struct FieldDescriptor *m_fields;</variable>
</variables>
<Q_SIGNALS>
<signal>valueChanged()</signal>
</Q_SIGNALS>
<Q_SLOTS>
<slot>setValue( const KPlato::Duration &amp; newDuration )</slot>
<slot access="private">dddLostFocus()</slot>
<slot access="private">hhLostFocus()</slot>
<slot access="private">mmLostFocus()</slot>
<slot access="private">ssLostFocus()</slot>
<slot access="private">msLostFocus()</slot>
<slot>handleLostFocus( int field )</slot>
</Q_SLOTS>
<functions>
<function access="private">init()</function>
<function access="private" specifier="non virtual">destroy()</function>
<function access="private" specifier="non virtual" returnType="Q_INT64">setValueMilliseconds( Q_INT64 milliseconds )</function>
<function access="private" specifier="non virtual" returnType="Q_INT64">setValueSeconds( Q_INT64 seconds )</function>
<function access="private" specifier="non virtual" returnType="Q_INT64">setValueMinutes( Q_INT64 mins )</function>
<function access="private" specifier="non virtual" returnType="Q_INT64">setValueHours( Q_INT64 mins )</function>
<function access="private" specifier="non virtual" returnType="Q_INT64">setValueDays( Q_INT64 mins )</function>
<function returnType="Duration">value() const</function>
<function>setVisibleFields( int fieldMask )</function>
<function returnType="int">visibleFields()</function>
<function>setFieldLeftscale( int f, double ls )</function>
<function>setFieldRightscale( int f, double rs )</function>
<function>setFieldScale( int f, double scale )</function>
<function>setFieldUnit( int f, TQString unit )</function>
<function access="private" specifier="non virtual" returnType="double">power( double m, int e )</function>
<function access="private" specifier="non virtual" returnType="double">fraction( TQString number, int * exp )</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
</UI>