New actions.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-07-14 19:28:50 +03:00
parent 11ef76d0ae
commit e72c54318a
13 changed files with 205 additions and 24 deletions

View file

@ -5,5 +5,9 @@
<file>tapeicon/16x16/measurement.png</file> <file>tapeicon/16x16/measurement.png</file>
<file>tapeicon/24x24/equal.png</file> <file>tapeicon/24x24/equal.png</file>
<file>tapeicon/24x24/fx.png</file> <file>tapeicon/24x24/fx.png</file>
<file>tapeicon/24x24/orange_plus.png</file>
<file>tapeicon/24x24/red_plus.png</file>
<file>tapeicon/24x24/padlock_locked.png</file>
<file>tapeicon/24x24/padlock_opened.png</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

View file

@ -171,6 +171,8 @@ void TMainWindow::InitNew(MeasurementsType type)
if (type == MeasurementsType::Standard) if (type == MeasurementsType::Standard)
{ {
ui->labelMType->setText(tr("Standard measurements"));
// Tab Measurements // Tab Measurements
delete ui->labelValue; delete ui->labelValue;
delete ui->horizontalLayoutValue; delete ui->horizontalLayoutValue;
@ -189,6 +191,8 @@ void TMainWindow::InitNew(MeasurementsType type)
} }
else else
{ {
ui->labelMType->setText(tr("Individual measurements"));
// Tab Measurements // Tab Measurements
delete ui->labelBaseValue; delete ui->labelBaseValue;
delete ui->doubleSpinBoxBaseValue; delete ui->doubleSpinBoxBaseValue;

View file

@ -6,12 +6,12 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>599</width> <width>536</width>
<height>569</height> <height>694</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>TMainWindow</string> <string notr="true"/>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="share/resources/tapeicon.qrc"> <iconset resource="share/resources/tapeicon.qrc">
@ -28,6 +28,9 @@
</item> </item>
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="toolTip">
<string>Remove measurement</string>
</property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>0</number>
</property> </property>
@ -121,28 +124,28 @@
<string>Details</string> <string>Details</string>
</property> </property>
<layout class="QFormLayout" name="formLayout"> <layout class="QFormLayout" name="formLayout">
<item row="0" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Name:</string> <string>Name:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="2" column="1">
<widget class="QLineEdit" name="lineEdit"> <widget class="QLineEdit" name="lineEdit">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="4" column="0">
<widget class="QLabel" name="labelValue"> <widget class="QLabel" name="labelValue">
<property name="text"> <property name="text">
<string>Value:</string> <string>Value:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="4" column="1">
<layout class="QHBoxLayout" name="horizontalLayoutValue"> <layout class="QHBoxLayout" name="horizontalLayoutValue">
<item> <item>
<widget class="QPlainTextEdit" name="plainTextEditFormula"> <widget class="QPlainTextEdit" name="plainTextEditFormula">
@ -261,56 +264,56 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="2" column="0"> <item row="5" 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="2" column="1"> <item row="5" 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="3" column="0"> <item row="6" 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="3" column="1"> <item row="6" 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="4" column="0"> <item row="7" 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="4" column="1"> <item row="7" 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="5" column="0"> <item row="8" 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="5" column="1"> <item row="8" column="1">
<widget class="QPlainTextEdit" name="plainTextEdit"> <widget class="QPlainTextEdit" name="plainTextEdit">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
@ -323,6 +326,59 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item alignment="Qt::AlignLeft">
<widget class="QToolButton" name="toolButtonUp">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Move measurement up</string>
</property>
<property name="text">
<string notr="true">...</string>
</property>
<property name="icon">
<iconset theme="go-up"/>
</property>
</widget>
</item>
<item alignment="Qt::AlignLeft">
<widget class="QToolButton" name="toolButtonDown">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Move measurement down</string>
</property>
<property name="text">
<string notr="true">...</string>
</property>
<property name="icon">
<iconset theme="go-down"/>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item alignment="Qt::AlignRight">
<widget class="QToolButton" name="toolButtonRemove">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string notr="true">...</string>
</property>
<property name="icon">
<iconset theme="list-remove"/>
</property>
</widget>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -345,7 +401,7 @@
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="label_22"> <widget class="QLabel" name="labelMType">
<property name="text"> <property name="text">
<string>Measurement type</string> <string>Measurement type</string>
</property> </property>
@ -372,6 +428,9 @@
</item> </item>
<item alignment="Qt::AlignRight"> <item alignment="Qt::AlignRight">
<widget class="QPushButton" name="pushButtonShowInFolder"> <widget class="QPushButton" name="pushButtonShowInFolder">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text"> <property name="text">
<string>Show in folder</string> <string>Show in folder</string>
</property> </property>
@ -415,7 +474,11 @@
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<widget class="QLineEdit" name="lineEditGivenName"/> <widget class="QLineEdit" name="lineEditGivenName">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item row="5" column="0"> <item row="5" column="0">
<widget class="QLabel" name="labelFamilyName"> <widget class="QLabel" name="labelFamilyName">
@ -425,7 +488,11 @@
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="5" column="1">
<widget class="QLineEdit" name="lineEditFamilyName"/> <widget class="QLineEdit" name="lineEditFamilyName">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item row="6" column="0"> <item row="6" column="0">
<widget class="QLabel" name="labelBirthDate"> <widget class="QLabel" name="labelBirthDate">
@ -436,6 +503,9 @@
</item> </item>
<item row="6" column="1"> <item row="6" column="1">
<widget class="QDateEdit" name="dateEditBirthDate"> <widget class="QDateEdit" name="dateEditBirthDate">
<property name="enabled">
<bool>false</bool>
</property>
<property name="displayFormat"> <property name="displayFormat">
<string>yyyy-MM-dd</string> <string>yyyy-MM-dd</string>
</property> </property>
@ -449,7 +519,11 @@
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="7" column="1">
<widget class="QComboBox" name="comboBoxSex"/> <widget class="QComboBox" name="comboBoxSex">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item row="8" column="0"> <item row="8" column="0">
<widget class="QLabel" name="labelEmail"> <widget class="QLabel" name="labelEmail">
@ -459,7 +533,11 @@
</widget> </widget>
</item> </item>
<item row="8" column="1"> <item row="8" column="1">
<widget class="QLineEdit" name="lineEditEmail"/> <widget class="QLineEdit" name="lineEditEmail">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item> </item>
<item row="9" column="0"> <item row="9" column="0">
<widget class="QLabel" name="labelNotes"> <widget class="QLabel" name="labelNotes">
@ -470,6 +548,9 @@
</item> </item>
<item row="9" column="1"> <item row="9" column="1">
<widget class="QPlainTextEdit" name="plainTextEditNotes"> <widget class="QPlainTextEdit" name="plainTextEditNotes">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -489,7 +570,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>599</width> <width>536</width>
<height>25</height> <height>25</height>
</rect> </rect>
</property> </property>
@ -503,6 +584,8 @@
<addaction name="actionSave"/> <addaction name="actionSave"/>
<addaction name="actionSaveAs"/> <addaction name="actionSaveAs"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionReadOnly"/>
<addaction name="separator"/>
<addaction name="actionQuit"/> <addaction name="actionQuit"/>
</widget> </widget>
<widget class="QMenu" name="menuWindow"> <widget class="QMenu" name="menuWindow">
@ -528,30 +611,68 @@
<addaction name="menuHelp"/> <addaction name="menuHelp"/>
</widget> </widget>
<widget class="QToolBar" name="mainToolBar"> <widget class="QToolBar" name="mainToolBar">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<attribute name="toolBarArea"> <attribute name="toolBarArea">
<enum>TopToolBarArea</enum> <enum>TopToolBarArea</enum>
</attribute> </attribute>
<attribute name="toolBarBreak"> <attribute name="toolBarBreak">
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
<addaction name="actionSave"/>
<addaction name="actionAddKnown"/>
<addaction name="actionAddCustom"/>
<addaction name="actionReadOnly"/>
</widget> </widget>
<widget class="QStatusBar" name="statusBar"/> <widget class="QStatusBar" name="statusBar"/>
<action name="actionOpen"> <action name="actionOpen">
<property name="icon">
<iconset theme="document-open">
<normaloff/>
</iconset>
</property>
<property name="text"> <property name="text">
<string>Open ...</string> <string>Open ...</string>
</property> </property>
</action> </action>
<action name="actionSave"> <action name="actionSave">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset theme="document-save">
<normaloff/>
</iconset>
</property>
<property name="text"> <property name="text">
<string>Save</string> <string>Save</string>
</property> </property>
</action> </action>
<action name="actionSaveAs"> <action name="actionSaveAs">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset theme="document-save-as">
<normaloff/>
</iconset>
</property>
<property name="text"> <property name="text">
<string>Save As ...</string> <string>Save As ...</string>
</property> </property>
</action> </action>
<action name="actionQuit"> <action name="actionQuit">
<property name="icon">
<iconset theme="application-exit">
<normaloff/>
</iconset>
</property>
<property name="text"> <property name="text">
<string>Quit</string> <string>Quit</string>
</property> </property>
@ -562,15 +683,64 @@
</property> </property>
</action> </action>
<action name="actionAboutTape"> <action name="actionAboutTape">
<property name="icon">
<iconset theme="help-about">
<normaloff/>
</iconset>
</property>
<property name="text"> <property name="text">
<string>About Tape</string> <string>About Tape</string>
</property> </property>
</action> </action>
<action name="actionNew"> <action name="actionNew">
<property name="icon">
<iconset theme="document-new">
<normaloff/>
</iconset>
</property>
<property name="text"> <property name="text">
<string>New</string> <string>New</string>
</property> </property>
</action> </action>
<action name="actionAddKnown">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="share/resources/tapeicon.qrc">
<normaloff>:/tapeicon/24x24/red_plus.png</normaloff>:/tapeicon/24x24/red_plus.png</iconset>
</property>
<property name="text">
<string>Add known</string>
</property>
</action>
<action name="actionAddCustom">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="share/resources/tapeicon.qrc">
<normaloff>:/tapeicon/24x24/orange_plus.png</normaloff>:/tapeicon/24x24/orange_plus.png</iconset>
</property>
<property name="text">
<string>Add custom</string>
</property>
</action>
<action name="actionReadOnly">
<property name="checkable">
<bool>true</bool>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="share/resources/tapeicon.qrc">
<normaloff>:/tapeicon/24x24/padlock_opened.png</normaloff>:/tapeicon/24x24/padlock_opened.png</iconset>
</property>
<property name="text">
<string>Read only</string>
</property>
</action>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>
<resources> <resources>

View file

@ -39,7 +39,7 @@
<enum>QTabWidget::North</enum> <enum>QTabWidget::North</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="tabStandard"> <widget class="QWidget" name="tabStandard">
<property name="sizePolicy"> <property name="sizePolicy">
@ -118,8 +118,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>939</width> <width>559</width>
<height>411</height> <height>82</height>
</rect> </rect>
</property> </property>
<attribute name="icon"> <attribute name="icon">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -68,5 +68,8 @@
<file alias="24x24/actions/document-print-preview.png">icons/win.icon.theme/24x24/actions/document-print-preview.png</file> <file alias="24x24/actions/document-print-preview.png">icons/win.icon.theme/24x24/actions/document-print-preview.png</file>
<file alias="32x32/actions/document-print-preview.png">icons/win.icon.theme/32x32/actions/document-print-preview.png</file> <file alias="32x32/actions/document-print-preview.png">icons/win.icon.theme/32x32/actions/document-print-preview.png</file>
<file alias="32x32/emblems/emblem-system.png">icons/win.icon.theme/32x32/emblems/emblem-system.png</file> <file alias="32x32/emblems/emblem-system.png">icons/win.icon.theme/32x32/emblems/emblem-system.png</file>
<file>icons/win.icon.theme/16x16/actions/go-up.png</file>
<file>icons/win.icon.theme/24x24/actions/go-up.png</file>
<file>icons/win.icon.theme/32x32/actions/go-up.png</file>
</qresource> </qresource>
</RCC> </RCC>