Vessel edit dialog

This commit is contained in:
Andrew nuark G 2020-12-23 18:43:41 +07:00
parent 9686b96d8a
commit eb097588ba
21 changed files with 589 additions and 97 deletions

View file

@ -10,100 +10,146 @@
<height>425</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>361</width>
<height>425</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>361</width>
<height>425</height>
</size>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<property name="horizontalSpacing">
<number>24</number>
</property>
<property name="verticalSpacing">
<number>8</number>
</property>
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Vessel num.:</string>
<string>Skipper:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="et_vessel_num"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Home port:</string>
<string>Harbor:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="btn_choose_home_port">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Choose...</string>
</property>
</widget>
<widget class="QComboBox" name="cb_port"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Max. capacity:</string>
<string>Capacity (new):</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="cb_skippers"/>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="et_max_capacity"/>
<widget class="QSpinBox" name="sb_capacity">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>50000</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Capacity (current):</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="lab_capacity_current">
<property name="text">
<string>50000</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QListView" name="listView"/>
<widget class="QTableView" name="tv_cargo">
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QPushButton" name="pb_cargo_remove">
<property name="text">
<string>Remove cargo</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_add_cargo">
<item row="0" column="0">
<widget class="QPushButton" name="pb_cargo_add">
<property name="text">
<string>Add cargo</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pb_withdraw_from_harbor">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Get from harbor</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="pb_withdraw_from_vessel">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Move to harbor</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>64</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="btn_discard">
<widget class="QPushButton" name="pb_discard">
<property name="text">
<string>Discard</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_save">
<widget class="QPushButton" name="pb_save">
<property name="text">
<string>Save</string>
</property>