604 lines
17 KiB
XML
604 lines
17 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ScheduleShiftsEditor</class>
|
|
<widget class="QWidget" name="ScheduleShiftsEditor">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>550</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QWidget" name="widget" native="true">
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<property name="horizontalSpacing">
|
|
<number>22</number>
|
|
</property>
|
|
<property name="verticalSpacing">
|
|
<number>6</number>
|
|
</property>
|
|
<item row="2" column="2">
|
|
<widget class="QPushButton" name="btnOk">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>62</width>
|
|
<height>42</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background-color: #E6F7FF;
|
|
border: 1px solid #87CEEB;
|
|
border-radius: 4px;
|
|
min-width: 60px;
|
|
min-height: 40px;
|
|
font-size: 36px;
|
|
font-family: "Ubuntu";
|
|
color: #228B22;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #D1E9FF;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #BAE7FF;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>✓</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="3">
|
|
<widget class="QPushButton" name="btnClose">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>62</width>
|
|
<height>42</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background-color: #E6F7FF;
|
|
border: 1px solid #87CEEB;
|
|
border-radius: 4px;
|
|
min-width: 60px;
|
|
min-height: 40px;
|
|
font-size: 36px;
|
|
font-family: "Ubuntu";
|
|
color: #228B22;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #D1E9FF;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #BAE7FF;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>✕</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="1" column="0" colspan="4">
|
|
<widget class="QTabWidget" name="tabWidget">
|
|
<property name="currentIndex">
|
|
<number>1</number>
|
|
</property>
|
|
<widget class="QWidget" name="generalSettingsTab">
|
|
<attribute name="title">
|
|
<string>整体设置</string>
|
|
</attribute>
|
|
</widget>
|
|
<widget class="QWidget" name="scheduleShiftsEditTab">
|
|
<property name="styleSheet">
|
|
<string notr="true"> QPushButton {
|
|
background-color: #5396C1;
|
|
color: #ffffff;
|
|
border: 1px solid #000000;
|
|
border-radius: 3px;
|
|
font-size: 18px;
|
|
font-weight:500;
|
|
width: 180px;
|
|
height: 90px;
|
|
}
|
|
|
|
QPushButton:hover {
|
|
background-color: #5396C1;
|
|
}
|
|
|
|
QPushButton:disabled {
|
|
background-color: #7C828E;
|
|
color: #606060;
|
|
border-color: #808080;
|
|
}</string>
|
|
</property>
|
|
<attribute name="title">
|
|
<string>班时编号</string>
|
|
</attribute>
|
|
<widget class="QLabel" name="label">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>83</x>
|
|
<y>11</y>
|
|
<width>91</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>班时时间</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>370</x>
|
|
<y>11</y>
|
|
<width>81</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>班时编号</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLineEdit" name="LineEditScheduleName">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>370</x>
|
|
<y>40</y>
|
|
<width>221</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QTableWidget" name="tableSchedules">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>90</y>
|
|
<width>491</width>
|
|
<height>351</height>
|
|
</rect>
|
|
</property>
|
|
<property name="verticalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::SingleSelection</enum>
|
|
</property>
|
|
<property name="selectionBehavior">
|
|
<enum>QAbstractItemView::SelectRows</enum>
|
|
</property>
|
|
<property name="rowCount">
|
|
<number>3</number>
|
|
</property>
|
|
<attribute name="horizontalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderDefaultSectionSize">
|
|
<number>25</number>
|
|
</attribute>
|
|
<row>
|
|
<property name="text">
|
|
<string>新建行</string>
|
|
</property>
|
|
</row>
|
|
<row>
|
|
<property name="text">
|
|
<string>新建行</string>
|
|
</property>
|
|
</row>
|
|
<row/>
|
|
<column>
|
|
<property name="text">
|
|
<string>标号</string>
|
|
</property>
|
|
<property name="textAlignment">
|
|
<set>AlignCenter</set>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>班时时间</string>
|
|
</property>
|
|
</column>
|
|
<column>
|
|
<property name="text">
|
|
<string>班时编号</string>
|
|
</property>
|
|
</column>
|
|
<item row="0" column="0">
|
|
<property name="text">
|
|
<string>1</string>
|
|
</property>
|
|
<property name="textAlignment">
|
|
<set>AlignCenter</set>
|
|
</property>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<property name="text">
|
|
<string>00:00</string>
|
|
</property>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<property name="text">
|
|
<string>A</string>
|
|
</property>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<property name="text">
|
|
<string>2</string>
|
|
</property>
|
|
<property name="textAlignment">
|
|
<set>AlignCenter</set>
|
|
</property>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<property name="text">
|
|
<string>08:09</string>
|
|
</property>
|
|
</item>
|
|
<item row="1" column="2">
|
|
<property name="text">
|
|
<string>B</string>
|
|
</property>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<property name="text">
|
|
<string>3</string>
|
|
</property>
|
|
<property name="textAlignment">
|
|
<set>AlignCenter</set>
|
|
</property>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<property name="text">
|
|
<string>12:00</string>
|
|
</property>
|
|
</item>
|
|
<item row="2" column="2">
|
|
<property name="text">
|
|
<string>C</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>523</x>
|
|
<y>91</y>
|
|
<width>191</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>可选用的班次时间:</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="LabNbRemains">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>603</x>
|
|
<y>131</y>
|
|
<width>61</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>15</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(0, 193, 0);</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>23</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>530</x>
|
|
<y>210</y>
|
|
<width>51</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>←</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_6">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>530</x>
|
|
<y>260</y>
|
|
<width>54</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>→</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="btnAdd">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>600</x>
|
|
<y>210</y>
|
|
<width>101</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>添加</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="btnRemove">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>600</x>
|
|
<y>260</y>
|
|
<width>101</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>移除</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="SelectedStyleTimeEdit" name="timeEdit">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>80</x>
|
|
<y>40</y>
|
|
<width>91</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="buttonSymbols">
|
|
<enum>QAbstractSpinBox::NoButtons</enum>
|
|
</property>
|
|
<property name="showGroupSeparator" stdset="0">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="minimumDate">
|
|
<date>
|
|
<year>2001</year>
|
|
<month>1</month>
|
|
<day>1</day>
|
|
</date>
|
|
</property>
|
|
<property name="maximumTime">
|
|
<time>
|
|
<hour>23</hour>
|
|
<minute>59</minute>
|
|
<second>0</second>
|
|
</time>
|
|
</property>
|
|
<property name="displayFormat">
|
|
<string>hh:mm</string>
|
|
</property>
|
|
<property name="calendarPopup">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="currentSectionIndex">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>170</x>
|
|
<y>40</y>
|
|
<width>31</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>←</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>200</x>
|
|
<y>40</y>
|
|
<width>31</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>→</string>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>SelectedStyleTimeEdit</class>
|
|
<extends>QTimeEdit</extends>
|
|
<header>scene/ScheduleShiftsEditor.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>btnOk</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ScheduleShiftsEditor</receiver>
|
|
<slot>onBtnOkClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>642</x>
|
|
<y>523</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>637</x>
|
|
<y>685</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>btnClose</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ScheduleShiftsEditor</receiver>
|
|
<slot>onBtnCloseClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>726</x>
|
|
<y>518</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>743</x>
|
|
<y>627</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>pushButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>timeEdit</receiver>
|
|
<slot>stepDown()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>196</x>
|
|
<y>82</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>140</x>
|
|
<y>80</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>pushButton_2</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>timeEdit</receiver>
|
|
<slot>stepUp()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>231</x>
|
|
<y>82</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>143</x>
|
|
<y>81</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>btnAdd</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ScheduleShiftsEditor</receiver>
|
|
<slot>onBtnAddClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>652</x>
|
|
<y>255</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>866</x>
|
|
<y>267</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>btnRemove</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ScheduleShiftsEditor</receiver>
|
|
<slot>onBtnRemoveClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>667</x>
|
|
<y>306</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>864</x>
|
|
<y>297</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
<slots>
|
|
<slot>onBtnOkClicked()</slot>
|
|
<slot>onBtnCloseClicked()</slot>
|
|
<slot>onBtnAddClicked()</slot>
|
|
<slot>onBtnRemoveClicked()</slot>
|
|
</slots>
|
|
</ui>
|