Add volume type ComboBox to VolumeWidget

This commit is contained in:
Chantara Tith 2016-07-03 22:42:38 +07:00 committed by Andrius Štikonas
parent 46e509ba28
commit 80f32cd53a
2 changed files with 95 additions and 68 deletions

View File

@ -44,6 +44,11 @@ public:
return *m_EditVGName;
}
QComboBox& volumeType() {
Q_ASSERT(m_ComboVolumeType);
return *m_ComboVolumeType;
}
QSpinBox& spinPESize() {
Q_ASSERT(m_SpinPESize);
return *m_SpinPESize;
@ -74,6 +79,11 @@ public:
return *m_LabelTextVGName;
}
QLabel& textVolumeType() {
Q_ASSERT(m_LabelTextVolumeType);
return *m_LabelTextVolumeType;
}
QLabel& textTotalSize() {
Q_ASSERT(m_LabelTextTotalSize);
return *m_LabelTextTotalSize;

View File

@ -20,7 +20,20 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="6" column="2">
<item row="8" column="1">
<widget class="QLabel" name="m_LabelTextTotalLV">
<property name="text">
<string>Total LV: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="8" column="2">
<widget class="QLabel" name="m_LabelTotalLV">
<property name="text">
<string>---</string>
@ -30,7 +43,50 @@
</property>
</widget>
</item>
<item row="5" column="2">
<item row="2" column="2">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLineEdit" name="m_EditVGName"/>
</item>
</layout>
</item>
<item row="6" column="1">
<widget class="QLabel" name="m_LabelTextTotalSectors">
<property name="text">
<string>Total Sectors: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLabel" name="m_LabelTextTotalSize">
<property name="text">
<string>Total Size: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="2" column="0" rowspan="7">
<widget class="ListPhysicalVolumes" name="m_ListPV" native="true">
<property name="minimumSize">
<size>
<width>250</width>
<height>400</height>
</size>
</property>
</widget>
</item>
<item row="7" column="2">
<widget class="QLabel" name="m_LabelTotalSize">
<property name="text">
<string>---</string>
@ -65,27 +121,10 @@
</property>
</widget>
</item>
<item row="2" column="0" rowspan="5">
<widget class="ListPhysicalVolumes" name="m_ListPV" native="true">
<property name="minimumSize">
<size>
<width>250</width>
<height>400</height>
</size>
</property>
</widget>
</item>
<item row="2" column="2">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLineEdit" name="m_EditVGName"/>
</item>
</layout>
</item>
<item row="4" column="1">
<widget class="QLabel" name="m_LabelTextTotalSectors">
<item row="2" column="1">
<widget class="QLabel" name="m_LabelTextVGName">
<property name="text">
<string>Total Sectors: </string>
<string>Volume Name: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -95,7 +134,17 @@
</property>
</widget>
</item>
<item row="3" column="2">
<item row="6" column="2">
<widget class="QLabel" name="m_LabelTotalSectors">
<property name="text">
<string>---</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="4" column="2">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QSpinBox" name="m_SpinPESize">
@ -106,46 +155,7 @@
</item>
</layout>
</item>
<item row="6" column="1">
<widget class="QLabel" name="m_LabelTextTotalLV">
<property name="text">
<string>Total LV: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLabel" name="m_LabelTextTotalSize">
<property name="text">
<string>Total Size: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="m_LabelTextVGName">
<property name="text">
<string>Volume Group Name: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item row="3" column="1">
<item row="4" column="1">
<widget class="QLabel" name="m_LabelTextPESize">
<property name="text">
<string>Physical Extent Size: </string>
@ -158,16 +168,23 @@
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QLabel" name="m_LabelTotalSectors">
<item row="3" column="1">
<widget class="QLabel" name="m_LabelTextVolumeType">
<property name="text">
<string>---</string>
<string>Volume Type</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="2">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QComboBox" name="m_ComboVolumeType"/>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>