Files correlati : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe Bug : Commento: Merge 1.0 libraries
333 lines
10 KiB
Groff
333 lines
10 KiB
Groff
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0" stdsetdef="1">
|
|
<author></author>
|
|
<comment></comment>
|
|
<exportmacro></exportmacro>
|
|
<class>ConversionForm</class>
|
|
<widget class="QDialog" name="ConversionForm">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>320</width>
|
|
<height>217</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Metric Conversion</string>
|
|
</property>
|
|
<property name="sizeGripEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout">
|
|
<item>
|
|
<layout class="QGridLayout">
|
|
<item row="4" column="1">
|
|
<layout class="QHBoxLayout">
|
|
<item>
|
|
<spacer name="Spacer3">
|
|
<property name="sizeHint">
|
|
<size>
|
|
<width>0</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="decimalsSpinBox">
|
|
<property name="maximum">
|
|
<number>6</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QComboBox" name="fromComboBox">
|
|
<item>
|
|
<property name="text">
|
|
<string>Kilometers</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Meters</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Centimeters</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Millimeters</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="TextLabel4">
|
|
<property name="text">
|
|
<string>Result:</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="TextLabel2">
|
|
<property name="text">
|
|
<string>Convert &From:</string>
|
|
</property>
|
|
<property name="buddy" stdset="0">
|
|
<cstring>fromComboBox</cstring>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="TextLabel3">
|
|
<property name="text">
|
|
<string>Convert &To:</string>
|
|
</property>
|
|
<property name="buddy" stdset="0">
|
|
<cstring>toComboBox</cstring>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="TextLabel1_2">
|
|
<property name="text">
|
|
<string>&Decimals:</string>
|
|
</property>
|
|
<property name="buddy" stdset="0">
|
|
<cstring>decimalsSpinBox</cstring>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="TextLabel1">
|
|
<property name="text">
|
|
<string>Enter &Number:</string>
|
|
</property>
|
|
<property name="buddy" stdset="0">
|
|
<cstring>numberLineEdit</cstring>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QLabel" name="resultLineEdit">
|
|
<property name="font">
|
|
<font>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::WinPanel</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Sunken</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignVCenter|Qt::AlignRight</set>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLineEdit" name="numberLineEdit">
|
|
<property name="font">
|
|
<font>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignRight</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QComboBox" name="toComboBox">
|
|
<item>
|
|
<property name="text">
|
|
<string>Miles</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Yards</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Feet</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Inches</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<spacer name="Spacer2">
|
|
<property name="sizeHint">
|
|
<size>
|
|
<width>20</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout">
|
|
<item>
|
|
<widget class="QPushButton" name="clearButton">
|
|
<property name="text">
|
|
<string>&Clear</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="calculateButton">
|
|
<property name="text">
|
|
<string>Calculate</string>
|
|
</property>
|
|
<property name="default">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="Spacer27">
|
|
<property name="sizeHint">
|
|
<size>
|
|
<width>0</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="quitButton">
|
|
<property name="text">
|
|
<string>&Quit</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11"/>
|
|
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
|
|
<tabstops>
|
|
<tabstop>numberLineEdit</tabstop>
|
|
<tabstop>fromComboBox</tabstop>
|
|
<tabstop>toComboBox</tabstop>
|
|
<tabstop>decimalsSpinBox</tabstop>
|
|
<tabstop>clearButton</tabstop>
|
|
<tabstop>calculateButton</tabstop>
|
|
<tabstop>quitButton</tabstop>
|
|
</tabstops>
|
|
<connections>
|
|
<connection>
|
|
<sender>clearButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>numberLineEdit</receiver>
|
|
<slot>clear()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>quitButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ConversionForm</receiver>
|
|
<slot>close()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>calculateButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ConversionForm</receiver>
|
|
<slot>convert()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>clearButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>resultLineEdit</receiver>
|
|
<slot>clear()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>decimalsSpinBox</sender>
|
|
<signal>valueChanged(int)</signal>
|
|
<receiver>ConversionForm</receiver>
|
|
<slot>convert()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>fromComboBox</sender>
|
|
<signal>activated(int)</signal>
|
|
<receiver>ConversionForm</receiver>
|
|
<slot>convert()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>toComboBox</sender>
|
|
<signal>activated(int)</signal>
|
|
<receiver>ConversionForm</receiver>
|
|
<slot>convert()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>clearButton</sender>
|
|
<signal>released()</signal>
|
|
<receiver>numberLineEdit</receiver>
|
|
<slot>setFocus()</slot>
|
|
</connection>
|
|
<connection>
|
|
<sender>calculateButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>numberLineEdit</receiver>
|
|
<slot>setFocus()</slot>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|