Files
2026-11-06 01:04:35 +08:00

329 lines
9.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="windowTitle">
<string>随机抽签与分组工具</string>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1120</width>
<height>780</height>
</rect>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="rootLayout">
<property name="spacing">
<number>12</number>
</property>
<property name="leftMargin">
<number>24</number>
</property>
<property name="topMargin">
<number>24</number>
</property>
<property name="rightMargin">
<number>24</number>
</property>
<property name="bottomMargin">
<number>24</number>
</property>
<item>
<widget class="QLabel" name="titleLabel">
<property name="text">
<string>随机抽签与分组</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="subtitleLabel">
<property name="text">
<string>先应用名单,再抽签或分组。同名学生请使用“学号 姓名”区分。</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="countLabel">
<property name="text">
<string>名单待应用</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="bodyLayout">
<property name="spacing">
<number>12</number>
</property>
<item>
<widget class="QGroupBox" name="namesGroup">
<property name="title">
<string>班级名单</string>
</property>
<property name="minimumSize">
<size>
<width>310</width>
<height>0</height>
</size>
</property>
<layout class="QVBoxLayout" name="namesLayout">
<property name="spacing">
<number>12</number>
</property>
<item>
<widget class="QLabel" name="namesHelp">
<property name="text">
<string>每行一人,空行会被忽略。修改名单后需重新应用。</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="namesEdit">
<property name="placeholderText">
<string>01 张三
02 李四</string>
</property>
<property name="minimumSize">
<size>
<width>250</width>
<height>320</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="applyButton">
<property name="text">
<string>应用名单(开始新一轮)</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="sampleButton">
<property name="text">
<string>填入示例名单</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QTabWidget" name="resultTabs">
<property name="minimumSize">
<size>
<width>570</width>
<height>0</height>
</size>
</property>
<widget class="QWidget" name="drawTab">
<attribute name="title">
<string>不重复抽签</string>
</attribute>
<layout class="QVBoxLayout" name="drawLayout">
<property name="spacing">
<number>12</number>
</property>
<item>
<layout class="QHBoxLayout" name="drawControls">
<property name="spacing">
<number>12</number>
</property>
<item>
<widget class="QLabel" name="drawCountLabel">
<property name="text">
<string>本次抽取人数</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="drawCountSpin">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>5000</number>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="drawButton">
<property name="text">
<string>抽取</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="chosenLabel">
<property name="text">
<string>本次抽取</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="chosenEdit">
<property name="readOnly">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>145</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="historyLabel">
<property name="text">
<string>本轮抽签记录</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="historyList" />
</item>
<item>
<widget class="QPushButton" name="resetButton">
<property name="text">
<string>重置抽签</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="groupTab">
<attribute name="title">
<string>随机分组</string>
</attribute>
<layout class="QVBoxLayout" name="groupLayout">
<property name="spacing">
<number>12</number>
</property>
<item>
<widget class="QLabel" name="groupHelp">
<property name="text">
<string>分组使用全部已应用名单,与已抽到哪些人无关。每次点击都会重新分组。</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="groupControls">
<property name="spacing">
<number>12</number>
</property>
<item>
<widget class="QComboBox" name="groupModeCombo" />
</item>
<item>
<widget class="QSpinBox" name="groupValueSpin">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>5000</number>
</property>
<property name="value">
<number>4</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QPushButton" name="groupsButton">
<property name="text">
<string>生成分组</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="groupsEdit">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="copyGroupsButton">
<property name="text">
<string>复制分组结果</string>
</property>
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="statusLabel">
<property name="text">
<string />
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>55</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources />
<connections />
</ui>