Field Calculated value.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-07-21 16:24:21 +03:00
parent 08d46c1809
commit dfc7332356
3 changed files with 27 additions and 50 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 B

View file

@ -472,13 +472,11 @@ void TMainWindow::InitWindow()
VDomDocument::UnitsToStr(m->MUnit(), true)); VDomDocument::UnitsToStr(m->MUnit(), true));
// Tab Measurements // Tab Measurements
delete ui->labelValue; delete ui->labelFormula;
delete ui->horizontalLayoutValue; delete ui->horizontalLayoutValue;
delete ui->plainTextEditFormula; delete ui->plainTextEditFormula;
delete ui->pushButtonGrowLength; delete ui->pushButtonGrowLength;
delete ui->toolButtonExprLength; delete ui->toolButtonExprLength;
delete ui->labelEqual;
delete ui->labelResultCalculation;
// Tab Information // Tab Information
delete ui->labelGivenName; delete ui->labelGivenName;

View file

@ -118,14 +118,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="5" column="0">
<widget class="QLabel" name="labelValue"> <widget class="QLabel" name="labelFormula">
<property name="text"> <property name="text">
<string>Value:</string> <string>Formula:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="5" column="1">
<layout class="QHBoxLayout" name="horizontalLayoutValue"> <layout class="QHBoxLayout" name="horizontalLayoutValue">
<item> <item>
<widget class="QPlainTextEdit" name="plainTextEditFormula"> <widget class="QPlainTextEdit" name="plainTextEditFormula">
@ -207,93 +207,58 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QLabel" name="labelEqual">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="share/resources/tapeicon.qrc">:/tapeicon/24x24/equal.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelResultCalculation">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>87</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Value of first angle</string>
</property>
<property name="whatsThis">
<string notr="true"/>
</property>
<property name="text">
<string>_</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item row="5" column="0"> <item row="6" column="0">
<widget class="QLabel" name="labelBaseValue"> <widget class="QLabel" name="labelBaseValue">
<property name="text"> <property name="text">
<string>Base value:</string> <string>Base value:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="6" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBoxBaseValue"> <widget class="QDoubleSpinBox" name="doubleSpinBoxBaseValue">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="7" column="0">
<widget class="QLabel" name="labelInSizes"> <widget class="QLabel" name="labelInSizes">
<property name="text"> <property name="text">
<string>In sizes:</string> <string>In sizes:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="7" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBoxInSizes"> <widget class="QDoubleSpinBox" name="doubleSpinBoxInSizes">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0"> <item row="8" column="0">
<widget class="QLabel" name="labelInHeights"> <widget class="QLabel" name="labelInHeights">
<property name="text"> <property name="text">
<string>In heights:</string> <string>In heights:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="8" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBoxInHeights"> <widget class="QDoubleSpinBox" name="doubleSpinBoxInHeights">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0"> <item row="9" column="0">
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_7">
<property name="text"> <property name="text">
<string>Description:</string> <string>Description:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="1"> <item row="9" column="1">
<widget class="QPlainTextEdit" name="plainTextEdit"> <widget class="QPlainTextEdit" name="plainTextEdit">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
@ -365,6 +330,20 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="4" column="0">
<widget class="QLabel" name="labelCalculated">
<property name="text">
<string>Calculated value:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="labelCalculatedValue">
<property name="text">
<string notr="true">0</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>