|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<ui version="4.0">
|
|
|
<class>MainWindow</class>
|
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
|
<property name="geometry">
|
|
|
<rect>
|
|
|
<x>0</x>
|
|
|
<y>0</y>
|
|
|
<width>1120</width>
|
|
|
<height>936</height>
|
|
|
</rect>
|
|
|
</property>
|
|
|
<property name="font">
|
|
|
<font>
|
|
|
<pointsize>11</pointsize>
|
|
|
</font>
|
|
|
</property>
|
|
|
<property name="windowTitle">
|
|
|
<string>TSP路径模拟器</string>
|
|
|
</property>
|
|
|
<widget class="QWidget" name="centralwidget">
|
|
|
<property name="font">
|
|
|
<font>
|
|
|
<family>Microsoft YaHei UI</family>
|
|
|
<pointsize>11</pointsize>
|
|
|
</font>
|
|
|
</property>
|
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
|
<item row="0" column="0">
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,0,999">
|
|
|
<property name="spacing">
|
|
|
<number>6</number>
|
|
|
</property>
|
|
|
<property name="topMargin">
|
|
|
<number>0</number>
|
|
|
</property>
|
|
|
<item>
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label_7">
|
|
|
<property name="text">
|
|
|
<string>节点数目:</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QSpinBox" name="node_num_input"/>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QPushButton" name="creat_node_bt">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>创建一个TSP问题,将在右下画布显示您填入数目的节点</p></body></html></string>
|
|
|
</property>
|
|
|
<property name="whatsThis">
|
|
|
<string><html><head/><body><p>创建一个TSP问题</p></body></html></string>
|
|
|
</property>
|
|
|
<property name="text">
|
|
|
<string>创建</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<spacer name="horizontalSpacer_2">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
<property name="sizeType">
|
|
|
<enum>QSizePolicy::Preferred</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>41</width>
|
|
|
<height>20</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label_6">
|
|
|
<property name="text">
|
|
|
<string>时间成本:</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label_time">
|
|
|
<property name="text">
|
|
|
<string><html><head/><body><p align="center">0</p></body></html></string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label">
|
|
|
<property name="text">
|
|
|
<string>分钟</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<spacer name="horizontalSpacer_3">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
<property name="sizeType">
|
|
|
<enum>QSizePolicy::Preferred</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>40</width>
|
|
|
<height>20</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label_2">
|
|
|
<property name="text">
|
|
|
<string>距离成本:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label_distance">
|
|
|
<property name="text">
|
|
|
<string>0</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label_3">
|
|
|
<property name="text">
|
|
|
<string>千米</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<spacer name="horizontalSpacer">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
<property name="sizeType">
|
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>500</width>
|
|
|
<height>20</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QPushButton" name="pushButton_ctrl_edges_lb">
|
|
|
<property name="text">
|
|
|
<string>连接标签控制</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="Line" name="line">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0,5">
|
|
|
<item>
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="0,0,0,0,0">
|
|
|
<item>
|
|
|
<spacer name="horizontalSpacer_10">
|
|
|
<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>
|
|
|
<widget class="QTabWidget" name="tabWidget">
|
|
|
<property name="currentIndex">
|
|
|
<number>0</number>
|
|
|
</property>
|
|
|
<widget class="QWidget" name="node_ac_tab">
|
|
|
<property name="tabletTracking">
|
|
|
<bool>false</bool>
|
|
|
</property>
|
|
|
<attribute name="title">
|
|
|
<string>节点</string>
|
|
|
</attribute>
|
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
|
<item row="1" column="0">
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
|
<item>
|
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
|
<item row="3" column="0">
|
|
|
<spacer name="horizontalSpacer_4">
|
|
|
<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="8" column="0" colspan="2">
|
|
|
<widget class="QPushButton" name="change_node_lb_bt">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>设置选中节点标签</p></body></html></string>
|
|
|
</property>
|
|
|
<property name="text">
|
|
|
<string>确定更改</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="5" column="0">
|
|
|
<spacer name="horizontalSpacer_5">
|
|
|
<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="7" column="0">
|
|
|
<widget class="QLabel" name="label_12">
|
|
|
<property name="text">
|
|
|
<string>更改节点标签:</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="1">
|
|
|
<widget class="QLabel" name="all_node_lb">
|
|
|
<property name="text">
|
|
|
<string>0</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="4" column="0">
|
|
|
<widget class="QLabel" name="label_10">
|
|
|
<property name="text">
|
|
|
<string>当前选中节点:</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="4" column="1">
|
|
|
<widget class="QLabel" name="selected_node_lb">
|
|
|
<property name="text">
|
|
|
<string>0</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="0">
|
|
|
<widget class="QLabel" name="label_8">
|
|
|
<property name="text">
|
|
|
<string>当前共有节点数:</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="7" column="1">
|
|
|
<widget class="QLineEdit" name="edit_node_lb_inp">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>修改当前节点的标签</p></body></html></string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="0">
|
|
|
<spacer name="horizontalSpacer_6">
|
|
|
<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="6" column="0" colspan="2">
|
|
|
<widget class="Line" name="line_9">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="Line" name="line_10">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QPushButton" name="add_node_button">
|
|
|
<property name="text">
|
|
|
<string>增加一个节点</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QPushButton" name="del_node_button">
|
|
|
<property name="text">
|
|
|
<string>删除当前节点</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QPushButton" name="set_must_button">
|
|
|
<property name="text">
|
|
|
<string>设为必经节点</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QPushButton" name="del_must_button">
|
|
|
<property name="text">
|
|
|
<string>取消必经节点</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QGroupBox" name="groupBox_3">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>如果加载了真实数据用于模拟,这里会显示城市全称,和对应城市的经纬度。</p></body></html></string>
|
|
|
</property>
|
|
|
<property name="whatsThis">
|
|
|
<string><html><head/><body><p>如果加载了真实数据用于模拟,这里会显示城市全称,和对应城市的经纬度。</p></body></html></string>
|
|
|
</property>
|
|
|
<property name="title">
|
|
|
<string>真实信息</string>
|
|
|
</property>
|
|
|
<layout class="QGridLayout" name="gridLayout_12">
|
|
|
<item row="0" column="0" alignment="Qt::AlignHCenter">
|
|
|
<widget class="QLabel" name="label_city">
|
|
|
<property name="text">
|
|
|
<string>无</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="0" alignment="Qt::AlignHCenter">
|
|
|
<widget class="QLabel" name="label_real_coord">
|
|
|
<property name="text">
|
|
|
<string>无</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
<widget class="QWidget" name="conn_ac_tab">
|
|
|
<attribute name="title">
|
|
|
<string>连接</string>
|
|
|
</attribute>
|
|
|
<layout class="QGridLayout" name="gridLayout_4">
|
|
|
<item row="4" column="1">
|
|
|
<widget class="QPushButton" name="pushButton_create_node_conn">
|
|
|
<property name="text">
|
|
|
<string>建立一个连接</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="7" column="1">
|
|
|
<spacer name="horizontalSpacer_15">
|
|
|
<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="5" column="1">
|
|
|
<spacer name="horizontalSpacer_14">
|
|
|
<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="11" column="1">
|
|
|
<spacer name="verticalSpacer_2">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>20</width>
|
|
|
<height>40</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
<item row="0" column="1">
|
|
|
<spacer name="horizontalSpacer_12">
|
|
|
<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="6" column="1">
|
|
|
<widget class="QPushButton" name="pushButton_del_node_conn">
|
|
|
<property name="text">
|
|
|
<string>删除一个连接</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="10" column="1">
|
|
|
<widget class="QPushButton" name="pushButton_set_node_conn">
|
|
|
<property name="text">
|
|
|
<string>设置连接标签</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="3" column="1">
|
|
|
<layout class="QGridLayout" name="gridLayout_5">
|
|
|
<item row="1" column="2" colspan="2">
|
|
|
<widget class="QLabel" name="count_conn_lb">
|
|
|
<property name="text">
|
|
|
<string>0</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="7" column="0" colspan="4">
|
|
|
<spacer name="horizontalSpacer_13">
|
|
|
<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="2">
|
|
|
<widget class="QLabel" name="label_16">
|
|
|
<property name="text">
|
|
|
<string>节点连接数:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="6" column="3">
|
|
|
<widget class="QComboBox" name="comboBox_node2">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>选择连接终点</p></body></html></string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="6" column="0">
|
|
|
<widget class="QLabel" name="label_14">
|
|
|
<property name="text">
|
|
|
<string>节点1</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="3" column="0" colspan="4">
|
|
|
<widget class="QGroupBox" name="groupBox">
|
|
|
<property name="title">
|
|
|
<string>当前选中连接:</string>
|
|
|
</property>
|
|
|
<layout class="QGridLayout" name="gridLayout_10">
|
|
|
<item row="0" column="1">
|
|
|
<widget class="QLabel" name="selected_conn_lb">
|
|
|
<property name="text">
|
|
|
<string/>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="0">
|
|
|
<widget class="QLabel" name="label_4">
|
|
|
<property name="text">
|
|
|
<string>连接ID:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="0">
|
|
|
<widget class="QLabel" name="label_31">
|
|
|
<property name="text">
|
|
|
<string>时间成本:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="0">
|
|
|
<widget class="QLabel" name="label_32">
|
|
|
<property name="text">
|
|
|
<string>距离成本:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="1">
|
|
|
<widget class="QLabel" name="label_conn_time">
|
|
|
<property name="text">
|
|
|
<string/>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="1">
|
|
|
<widget class="QLabel" name="label_conn_dis">
|
|
|
<property name="text">
|
|
|
<string/>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="6" column="1">
|
|
|
<widget class="QComboBox" name="comboBox_node1">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>选择连接起点</p></body></html></string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="4" column="0" colspan="4">
|
|
|
<spacer name="horizontalSpacer_16">
|
|
|
<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="5" column="0" colspan="4">
|
|
|
<widget class="QLabel" name="label_13">
|
|
|
<property name="text">
|
|
|
<string>节点连接</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="6" column="2">
|
|
|
<widget class="QLabel" name="label_15">
|
|
|
<property name="text">
|
|
|
<string>节点2</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="0">
|
|
|
<spacer name="horizontalSpacer_11">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>40</width>
|
|
|
<height>20</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
<item row="8" column="1">
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
|
<item>
|
|
|
<widget class="QLabel" name="label_5">
|
|
|
<property name="text">
|
|
|
<string>新标签:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QLineEdit" name="lineEdit_new_node_lb"/>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
<widget class="QWidget" name="tab">
|
|
|
<attribute name="title">
|
|
|
<string>路径</string>
|
|
|
</attribute>
|
|
|
<layout class="QGridLayout" name="gridLayout_9">
|
|
|
<item row="10" column="0" colspan="2">
|
|
|
<widget class="QPushButton" name="pushButton_path_to_conn">
|
|
|
<property name="text">
|
|
|
<string>取消连接路径标记</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="7" column="0" colspan="2">
|
|
|
<spacer name="horizontalSpacer_22">
|
|
|
<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="9" column="0" colspan="2">
|
|
|
<spacer name="horizontalSpacer_23">
|
|
|
<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="11" column="0" colspan="2">
|
|
|
<spacer name="horizontalSpacer_24">
|
|
|
<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="3" column="0" colspan="2">
|
|
|
<spacer name="horizontalSpacer_21">
|
|
|
<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="8" column="0" colspan="2">
|
|
|
<widget class="QPushButton" name="pushButton_conn_to_path">
|
|
|
<property name="text">
|
|
|
<string>将连接标记为路径</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="13" column="0">
|
|
|
<spacer name="verticalSpacer_3">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>20</width>
|
|
|
<height>40</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
<item row="12" column="0" colspan="2">
|
|
|
<widget class="QPushButton" name="pushButton_del_all_path">
|
|
|
<property name="text">
|
|
|
<string>取消所有路径标记</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="4" column="0" colspan="2">
|
|
|
<widget class="QGroupBox" name="groupBox_2">
|
|
|
<property name="title">
|
|
|
<string>当前选中连接:</string>
|
|
|
</property>
|
|
|
<layout class="QGridLayout" name="gridLayout_11">
|
|
|
<item row="1" column="0">
|
|
|
<widget class="QLabel" name="label_26">
|
|
|
<property name="text">
|
|
|
<string>时间成本:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="1">
|
|
|
<widget class="QLabel" name="selected_path_lb">
|
|
|
<property name="text">
|
|
|
<string/>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="0">
|
|
|
<widget class="QLabel" name="label_17">
|
|
|
<property name="text">
|
|
|
<string>当前选中ID:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="1">
|
|
|
<widget class="QLabel" name="label_path_time">
|
|
|
<property name="text">
|
|
|
<string/>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="0">
|
|
|
<widget class="QLabel" name="label_28">
|
|
|
<property name="text">
|
|
|
<string>距离成本:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="1">
|
|
|
<widget class="QLabel" name="label_path_dis">
|
|
|
<property name="text">
|
|
|
<string/>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="0">
|
|
|
<widget class="QLabel" name="label_9">
|
|
|
<property name="text">
|
|
|
<string>路径数量:</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="1">
|
|
|
<widget class="QLabel" name="label_path_num">
|
|
|
<property name="text">
|
|
|
<string>0</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="0" colspan="2">
|
|
|
<spacer name="horizontalSpacer_19">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>40</width>
|
|
|
<height>20</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
<widget class="QWidget" name="route_ac_tab">
|
|
|
<attribute name="title">
|
|
|
<string>自动判断</string>
|
|
|
</attribute>
|
|
|
<layout class="QGridLayout" name="gridLayout_7">
|
|
|
<item row="0" column="0">
|
|
|
<layout class="QGridLayout" name="gridLayout_8">
|
|
|
<item row="1" column="1">
|
|
|
<widget class="Line" name="line_4">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="0" colspan="5">
|
|
|
<widget class="QPushButton" name="pushButton_check_connectivity">
|
|
|
<property name="text">
|
|
|
<string>可达性判断</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="4" column="0">
|
|
|
<widget class="QLabel" name="label_23">
|
|
|
<property name="text">
|
|
|
<string>结果</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="4" column="2" colspan="3">
|
|
|
<widget class="QLabel" name="label_is_optimal_path">
|
|
|
<property name="styleSheet">
|
|
|
<string notr="true">
|
|
|
background-color:rgb(255, 255, 255);
|
|
|
border: 1px solid black;
|
|
|
</string>
|
|
|
</property>
|
|
|
<property name="text">
|
|
|
<string>路径未知</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="3" column="0" colspan="5">
|
|
|
<widget class="Line" name="line_6">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="2" colspan="3">
|
|
|
<widget class="QLabel" name="label_is_connectivity">
|
|
|
<property name="styleSheet">
|
|
|
<string notr="true">
|
|
|
background-color:rgb(255, 255, 255);
|
|
|
border: 1px solid black;
|
|
|
</string>
|
|
|
</property>
|
|
|
<property name="text">
|
|
|
<string>路径未知</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="8" column="1">
|
|
|
<widget class="Line" name="line_8">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="2">
|
|
|
<widget class="QComboBox" name="comboBox_start_node"/>
|
|
|
</item>
|
|
|
<item row="0" column="3">
|
|
|
<widget class="QLabel" name="label_19">
|
|
|
<property name="text">
|
|
|
<string>终点</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="0">
|
|
|
<widget class="QLabel" name="label_18">
|
|
|
<property name="text">
|
|
|
<string>起点</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="4" column="1">
|
|
|
<widget class="Line" name="line_5">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="4">
|
|
|
<widget class="QComboBox" name="comboBox_end_node"/>
|
|
|
</item>
|
|
|
<item row="9" column="0" colspan="5">
|
|
|
<widget class="QPushButton" name="pushButton_greedy_path">
|
|
|
<property name="text">
|
|
|
<string>判断贪心路径</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="0">
|
|
|
<widget class="QLabel" name="label_20">
|
|
|
<property name="text">
|
|
|
<string>结果</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="8" column="2" colspan="3">
|
|
|
<widget class="QLabel" name="label_is_greedy_path">
|
|
|
<property name="styleSheet">
|
|
|
<string notr="true">
|
|
|
background-color:rgb(255, 255, 255);
|
|
|
border: 1px solid black;
|
|
|
</string>
|
|
|
</property>
|
|
|
<property name="text">
|
|
|
<string>路径未知</string>
|
|
|
</property>
|
|
|
<property name="alignment">
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="6" column="0" colspan="5">
|
|
|
<widget class="QPushButton" name="pushButton_optimal_path">
|
|
|
<property name="text">
|
|
|
<string>判断最优路径</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="7" column="0" colspan="5">
|
|
|
<widget class="Line" name="line_7">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="8" column="0">
|
|
|
<widget class="QLabel" name="label_25">
|
|
|
<property name="text">
|
|
|
<string>结果</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<spacer name="verticalSpacer_4">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>20</width>
|
|
|
<height>40</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
<item>
|
|
|
<layout class="QGridLayout" name="gridLayout_6">
|
|
|
<item row="6" column="2">
|
|
|
<widget class="QComboBox" name="auto_solve_comboBox">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>下拉选择自动求解的方法</p></body></html></string>
|
|
|
</property>
|
|
|
<item>
|
|
|
<property name="text">
|
|
|
<string>贪心</string>
|
|
|
</property>
|
|
|
</item>
|
|
|
<item>
|
|
|
<property name="text">
|
|
|
<string>遍历</string>
|
|
|
</property>
|
|
|
</item>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="1" column="1">
|
|
|
<spacer name="horizontalSpacer_17">
|
|
|
<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="6" column="4">
|
|
|
<spacer name="horizontalSpacer_18">
|
|
|
<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="8" column="1">
|
|
|
<spacer name="verticalSpacer">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
<size>
|
|
|
<width>20</width>
|
|
|
<height>40</height>
|
|
|
</size>
|
|
|
</property>
|
|
|
</spacer>
|
|
|
</item>
|
|
|
<item row="5" column="1">
|
|
|
<spacer name="horizontalSpacer_20">
|
|
|
<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="6" column="3">
|
|
|
<widget class="QPushButton" name="pushButton_auto_solve">
|
|
|
<property name="toolTip">
|
|
|
<string><html><head/><body><p>自动求解当前链接线路</p></body></html></string>
|
|
|
</property>
|
|
|
<property name="text">
|
|
|
<string>自动求解</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="2" column="1" colspan="4">
|
|
|
<widget class="QPushButton" name="pushButton_real_city">
|
|
|
<property name="text">
|
|
|
<string>获取地图信息形成TSP问题</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="7" column="2" colspan="2">
|
|
|
<widget class="QGroupBox" name="groupBox_priority">
|
|
|
<property name="title">
|
|
|
<string>优先级:</string>
|
|
|
</property>
|
|
|
<property name="flat">
|
|
|
<bool>false</bool>
|
|
|
</property>
|
|
|
<property name="checkable">
|
|
|
<bool>false</bool>
|
|
|
</property>
|
|
|
<property name="checked">
|
|
|
<bool>false</bool>
|
|
|
</property>
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
|
<item>
|
|
|
<widget class="QRadioButton" name="radioButton_distance">
|
|
|
<property name="text">
|
|
|
<string>距离优先</string>
|
|
|
</property>
|
|
|
<property name="checked">
|
|
|
<bool>true</bool>
|
|
|
</property>
|
|
|
<property name="autoRepeat">
|
|
|
<bool>false</bool>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QRadioButton" name="radioButton_time">
|
|
|
<property name="text">
|
|
|
<string>时间优先</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item row="0" column="1" colspan="4">
|
|
|
<widget class="QPushButton" name="auto_TSP_btton">
|
|
|
<property name="text">
|
|
|
<string>自动随机产生TSP问题</string>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="Line" name="line_3">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="Line" name="line_2">
|
|
|
<property name="orientation">
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
<item>
|
|
|
<widget class="QGraphicsView" name="graphicsView">
|
|
|
<property name="font">
|
|
|
<font>
|
|
|
<family>Microsoft YaHei UI</family>
|
|
|
<pointsize>11</pointsize>
|
|
|
</font>
|
|
|
</property>
|
|
|
<property name="cursor" stdset="0">
|
|
|
<cursorShape>ArrowCursor</cursorShape>
|
|
|
</property>
|
|
|
</widget>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</item>
|
|
|
</layout>
|
|
|
</widget>
|
|
|
<widget class="QMenuBar" name="menubar">
|
|
|
<property name="geometry">
|
|
|
<rect>
|
|
|
<x>0</x>
|
|
|
<y>0</y>
|
|
|
<width>1120</width>
|
|
|
<height>26</height>
|
|
|
</rect>
|
|
|
</property>
|
|
|
<widget class="QMenu" name="menu">
|
|
|
<property name="title">
|
|
|
<string>重置和功能</string>
|
|
|
</property>
|
|
|
<addaction name="actionchognzhi"/>
|
|
|
</widget>
|
|
|
<addaction name="menu"/>
|
|
|
</widget>
|
|
|
<widget class="QStatusBar" name="statusbar"/>
|
|
|
<action name="actionchognzhi">
|
|
|
<property name="text">
|
|
|
<string>重置系统</string>
|
|
|
</property>
|
|
|
</action>
|
|
|
</widget>
|
|
|
<resources/>
|
|
|
<connections/>
|
|
|
</ui>
|