zh_CN for 1.12.1

This commit is contained in:
Sinbing 2021-12-12 19:27:17 +08:00 committed by GitHub
parent 1269a07535
commit 7781b9cbdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 3301 additions and 0 deletions

View File

@ -1,3 +1,13 @@
# 汉化说明:
通过直接修改硬编码的qt file的方式实现了对软件的99%汉化
有一行我实在是不知道要怎么翻译,试了半天也没发现是什么作用的设置,不管他了。
以下为原README
# Cubiomes Viewer
Cubiomes Viewer provides a graphical interface for the efficient and flexible seed-finding utilities provided by [cubiomes](https://github.com/Cubitect/cubiomes) and a map viewer for the Minecraft biomes and structure generation.

107
aboutdialog.ui Normal file
View File

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AboutDialog</class>
<widget class="QDialog" name="AboutDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>609</width>
<height>343</height>
</rect>
</property>
<property name="windowTitle">
<string>关于</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="../icons.qrc">:/icons/map.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Cubiomes-Viewer _MAJOR_._MINOR_._PATCH_&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Built: _DATE_&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;URL: &lt;a href=&quot;https://github.com/Cubitect/cubiomes-viewer&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;https://github.com/Cubitect/cubiomes-viewer&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;汉化版 URL: &lt;a href=&quot;https://github.com/Sinbing/cubiomes-viewer&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;https://github.com/Sinbing/cubiomes-viewer&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;License: &lt;a href=&quot;https://www.gnu.org/licenses/gpl-3.0.en.html&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;GPLv3&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:600;&quot;&gt;Components and Legal Information&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt; font-weight:600;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;— Minecraft biome and structure generation from &lt;a href=&quot;https://github.com/Cubitect/cubiomes/&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;cubiomes&lt;/span&gt;&lt;/a&gt;, licensed under &lt;a href=&quot;https://mit-license.org/&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;MIT&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;— Cross platform GUI toolkit: Qt _QT_MAJOR_._QT_MINOR_, available under &lt;a href=&quot;https://www.qt.io/licensing/&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;(L)GPLv3&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif';&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;— Dark Qt theme derived from &lt;a href=&quot;https://github.com/ColinDuquesnoy/QDarkStyleSheet&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;QDarkStyleSheet&lt;/span&gt;&lt;/a&gt;, licensed under MIT.&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;— Colors and icons are inspired by &lt;a href=&quot;https://github.com/toolbox4minecraft/amidst&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; text-decoration: underline; color:#0057ae;&quot;&gt;Amidst&lt;/span&gt;&lt;/a&gt;, licensed under GPLv3.&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif';&quot;&gt;NOT APPROVED BY OR ASSOCIATED WITH MOJANG.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>AboutDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>AboutDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

269
configdialog.ui Normal file
View File

@ -0,0 +1,269 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ConfigDialog</class>
<widget class="QDialog" name="ConfigDialog">
<property name="windowTitle">
<string>偏好设定</string>
</property>
<property name="windowIcon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/map.png</normaloff>:/icons/map.png</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>搜索</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>搜索队列的大小
(限制可用进程)</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>每条线程搜索的种子数量: </string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>搜索结果的最大储存数量:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="lineMatching"/>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="cboxItemSize">
<property name="iconSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineQueueSize"/>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" rowspan="2" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>界面</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>自定义生物群系颜色:</string>
</property>
</widget>
</item>
<item row="0" column="2" colspan="2">
<widget class="QComboBox" name="comboStyle">
<property name="iconSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<item>
<property name="text">
<string>默认浅色</string>
</property>
</item>
<item>
<property name="text">
<string>深色主题</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0" colspan="4">
<widget class="QCheckBox" name="checkBBoxes">
<property name="text">
<string>Outline known bounding boxes</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>GUI 风格:</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="4">
<widget class="QCheckBox" name="checkSmooth">
<property name="toolTip">
<string>自定义网格间距</string>
</property>
<property name="text">
<string>地图平滑滚动</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="buttonBiomeColor">
<property name="text">
<string>[无]</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QPushButton" name="buttonClear">
<property name="maximumSize">
<size>
<width>20</width>
<height>16777215</height>
</size>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/clear.png</normaloff>:/icons/clear.png</iconset>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="buttonColorHelp">
<property name="maximumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/info.png</normaloff>:/icons/info.png</iconset>
</property>
<property name="iconSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="label_6">
<property name="toolTip">
<string>使用一个固定的网格距离而不是随着缩放等级调整网格大小
留空则使用默认值</string>
</property>
<property name="text">
<string>自定义网格间距:</string>
</property>
</widget>
</item>
<item row="2" column="2" colspan="2">
<widget class="QLineEdit" name="lineGridSpacing"/>
</item>
</layout>
</widget>
</item>
<item row="11" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>窗口</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0" rowspan="2" colspan="3">
<widget class="QCheckBox" name="checkRestore">
<property name="text">
<string>启动时恢复上一次的状态</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkAutosave">
<property name="text">
<string>自动保存间隔:</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QSpinBox" name="spinAutosave">
<property name="suffix">
<string> 分钟</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>120</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>ConfigDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>ConfigDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

83
extgendialog.ui Normal file
View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ExtGenDialog</class>
<widget class="QDialog" name="ExtGenDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>321</width>
<height>110</height>
</rect>
</property>
<property name="windowTitle">
<string>世界设置 (实验性功能)</string>
</property>
<property name="windowIcon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/map.png</normaloff>:/icons/map.png</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupSalts">
<property name="title">
<string>覆写盐值 (Override structure salt)</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>ExtGenDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>ExtGenDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

591
filterdialog.ui Normal file
View File

@ -0,0 +1,591 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FilterDialog</class>
<widget class="QDialog" name="FilterDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>640</height>
</rect>
</property>
<property name="windowTitle">
<string>新增筛选器</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="labelMC">
<property name="text">
<string>MC: 1.X</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QComboBox" name="comboBoxCat">
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<item>
<property name="text">
<string>选择类别</string>
</property>
</item>
<item>
<property name="text">
<string>算法助手</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/helper.png</normaloff>:/icons/helper.png</iconset>
</property>
</item>
<item>
<property name="text">
<string>四连结构</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/quad.png</normaloff>:/icons/quad.png</iconset>
</property>
</item>
<item>
<property name="text">
<string>结构</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/stronghold.png</normaloff>:/icons/stronghold.png</iconset>
</property>
</item>
<item>
<property name="text">
<string>群系筛选</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/overworld.png</normaloff>:/icons/overworld.png</iconset>
</property>
</item>
<item>
<property name="text">
<string>下界群系</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/nether.png</normaloff>:/icons/nether.png</iconset>
</property>
</item>
<item>
<property name="text">
<string>末地群系</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/the_end.png</normaloff>:/icons/the_end.png</iconset>
</property>
</item>
<item>
<property name="text">
<string>其他</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/slime.png</normaloff>:/icons/slime.png</iconset>
</property>
</item>
</widget>
</item>
<item row="0" column="4">
<widget class="QComboBox" name="comboBoxType">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>260</width>
<height>0</height>
</size>
</property>
<property name="maxVisibleItems">
<number>20</number>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<item>
<property name="text">
<string>选择筛选器</string>
</property>
</item>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="labelFilterType">
<property name="text">
<string>筛选器类型:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<widget class="Collapsible" name="collapseDescription" native="true"/>
<widget class="QWidget" name="layoutWidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBoxPosition">
<property name="title">
<string>位置</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="4" column="0">
<widget class="QLabel" name="labelRelative">
<property name="text">
<string>位置相对于:</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QSpinBox" name="spinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>99</number>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="QComboBox" name="comboBoxRelative">
<item>
<property name="text">
<string>出生点</string>
</property>
</item>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineRadius">
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QCheckBox" name="buttonArea">
<property name="toolTip">
<string>手动设定矩形区域而不是预设的正方形</string>
</property>
<property name="text">
<string>自定义范围</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelSpinBox">
<property name="text">
<string>区域内包含的结构数量:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelSquareArea">
<property name="text">
<string>从中心外延正方形区域的半径:</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="3">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="labelX1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>X&lt;sub&gt;1&lt;/sub&gt;:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditX1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelZ1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>Z&lt;sub&gt;1&lt;/sub&gt;:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditZ1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<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>
<widget class="QLabel" name="labelX2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>X&lt;sub&gt;2&lt;/sub&gt;:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditX2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelZ2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>Z&lt;sub&gt;2&lt;/sub&gt;:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditZ2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<property name="usesScrollButtons">
<bool>false</bool>
</property>
<widget class="QWidget" name="tabBiomes">
<attribute name="title">
<string>群系</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="1" column="3">
<widget class="QLineEdit" name="lineY">
<property name="toolTip">
<string>区块中的垂直高度</string>
</property>
<property name="text">
<string>63</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkApprox">
<property name="toolTip">
<string>启用模糊搜索以提高搜索速度
(但精准度会降低)</string>
</property>
<property name="text">
<string>模糊搜索</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="labelY">
<property name="text">
<string>采样高度 (Y):</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="4">
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollBiomes">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>568</width>
<height>249</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="sizeConstraint">
<enum>QLayout::SetMinAndMaxSize</enum>
</property>
<item>
<layout class="QGridLayout" name="gridLayoutBiomes"/>
</item>
</layout>
</widget>
</widget>
</item>
<item row="2" column="0" colspan="4">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QPushButton" name="buttonUncheck">
<property name="text">
<string>全不选</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonInclude">
<property name="text">
<string>全选</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonExclude">
<property name="text">
<string>全选不</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1">
<spacer name="horizontalSpacer_3">
<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="tabTemps">
<attribute name="title">
<string>温度类别</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>选择每种温度类别需要多少个群系</string>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayoutTemps"/>
</item>
<item>
<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>
</layout>
</widget>
<widget class="QWidget" name="tabVariants">
<attribute name="title">
<string>变种</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="1">
<widget class="QCheckBox" name="checkAbandoned">
<property name="text">
<string>僵尸村</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="checkStartPiece">
<property name="toolTip">
<string>仅搜索符合以下选择变种之一的结构</string>
</property>
<property name="text">
<string>搜索特定变种</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QScrollArea" name="scrollVariants">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>568</width>
<height>285</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QGridLayout" name="gridLayoutVariants"/>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer_2">
<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="QPushButton" name="buttonCancel">
<property name="text">
<string>取消</string>
</property>
<property name="icon">
<iconset theme="dialog-cancel">
<normaloff/>
</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonOk">
<property name="text">
<string>确认</string>
</property>
<property name="icon">
<iconset theme="dialog-ok">
<normaloff/>
</iconset>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Collapsible</class>
<extends>QWidget</extends>
<header>src/collapsible.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>buttonOk</tabstop>
<tabstop>buttonCancel</tabstop>
<tabstop>comboBoxCat</tabstop>
<tabstop>comboBoxType</tabstop>
<tabstop>spinBox</tabstop>
<tabstop>lineRadius</tabstop>
<tabstop>buttonArea</tabstop>
<tabstop>lineEditX1</tabstop>
<tabstop>lineEditZ1</tabstop>
<tabstop>lineEditX2</tabstop>
<tabstop>lineEditZ2</tabstop>
<tabstop>comboBoxRelative</tabstop>
<tabstop>tabWidget</tabstop>
<tabstop>buttonUncheck</tabstop>
<tabstop>buttonInclude</tabstop>
<tabstop>buttonExclude</tabstop>
<tabstop>scrollArea</tabstop>
</tabstops>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections/>
</ui>

94
formconditions.ui Normal file
View File

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FormConditions</class>
<widget class="QWidget" name="FormConditions">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>420</width>
<height>221</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</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>
<item row="1" column="0">
<widget class="QPushButton" name="buttonRemoveAll">
<property name="text">
<string>移除全部条件</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="buttonRemove">
<property name="text">
<string>移除选中的条件</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="buttonEdit">
<property name="text">
<string>编辑</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QPushButton" name="buttonAddFilter">
<property name="text">
<string>新增</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="4">
<widget class="QListWidget" name="listConditionsFull">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="movement">
<enum>QListView::Snap</enum>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

409
formgen48.ui Normal file
View File

@ -0,0 +1,409 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FormGen48</class>
<widget class="QWidget" name="FormGen48">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>435</width>
<height>182</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="widget" native="true">
<layout class="QGridLayout" name="gridLayout_2">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0" colspan="2">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tabAuto">
<attribute name="title">
<string>自动/空</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<property name="margin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="labelAutoDesc">
<property name="text">
<string>根据筛选条件自动设置结构选项。</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelAuto">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabQuadF">
<attribute name="title">
<string>四连结构特征</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_5">
<property name="margin">
<number>4</number>
</property>
<item row="1" column="0">
<widget class="QLabel" name="labelSalt">
<property name="toolTip">
<string>将值 (如一个盐值) 添加进 48-bit 种子列表。</string>
</property>
<property name="text">
<string>加盐值:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineSalt">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelLow20">
<property name="toolTip">
<string>为种子的低 20 位选择一组值,对应于与四连结构特征
只适用于区域大小=32和块状间隙=8的特征结构特别是沼泽小屋。</string>
</property>
<property name="text">
<string>限制低位:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboLow20">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
<item>
<property name="text">
<string>四连女巫小屋 (理想型)</string>
</property>
</item>
<item>
<property name="text">
<string>四连女巫小屋 (经典型)</string>
</property>
</item>
<item>
<property name="text">
<string>四连女巫小屋 (普通型)</string>
</property>
</item>
<item>
<property name="text">
<string>四连女巫小屋 (仅满足)</string>
</property>
</item>
<item>
<property name="text">
<string>四连结构特征 (ideal, custom salt)</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabQuadM">
<attribute name="title">
<string>四连海底神殿</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="labelQM">
<property name="toolTip">
<string>在中心位置128个方块内的海底神殿的平面生成空间的数量
(即这是一个在4*58*58中的测量质量)</string>
</property>
<property name="text">
<string>最小海底神殿区域:</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabList">
<attribute name="title">
<string>种子列表</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_7">
<property name="margin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="labelPath">
<property name="toolTip">
<string>使用自定义种子列表作为48位种子的候选源。</string>
</property>
<property name="text">
<string>加载48位种子列表:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineList48">
<property name="font">
<font>
<family>Monospace</family>
<pointsize>9</pointsize>
</font>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="buttonBrowse">
<property name="maximumSize">
<size>
<width>24</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelListSalt">
<property name="toolTip">
<string>将值 (如一个盐值) 添加进 48-bit 种子列表。</string>
</property>
<property name="text">
<string>加盐值:</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QLineEdit" name="lineListSalt">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="labelTranspose">
<property name="text">
<string>转置区域 (坐标x512倍):</string>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QRadioButton" name="radioAuto">
<property name="text">
<string>自动</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QRadioButton" name="radioManual">
<property name="text">
<string>手动</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="labelX1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>X&lt;sub&gt;1&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditX1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelZ1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>Z&lt;sub&gt;1&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditZ1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<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>
<widget class="QLabel" name="labelX2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>X&lt;sub&gt;2&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditX2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelZ2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>Z&lt;sub&gt;2&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditZ2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="labelSpace">
<property name="text">
<string>搜索区域内的种子:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="labelCount">
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

292
formsearchcontrol.ui Normal file
View File

@ -0,0 +1,292 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FormSearchControl</class>
<widget class="QWidget" name="FormSearchControl">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>420</width>
<height>315</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<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>
<item row="0" column="0">
<widget class="QTableWidget" name="listResults">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="horizontalHeaderDefaultSectionSize">
<number>160</number>
</attribute>
<attribute name="horizontalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderDefaultSectionSize">
<number>20</number>
</attribute>
<column>
<property name="text">
<string>十六进制Low-48|Top-16</string>
</property>
<property name="textAlignment">
<set>AlignLeading|AlignVCenter</set>
</property>
</column>
<column>
<property name="text">
<string>种子</string>
</property>
<property name="textAlignment">
<set>AlignLeading|AlignVCenter</set>
</property>
</column>
</widget>
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="4">
<widget class="QPushButton" name="buttonMore">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>24</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item row="1" column="2" colspan="2">
<widget class="QLineEdit" name="lineStart">
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QLabel" name="label_3">
<property name="text">
<string>线程数:</string>
</property>
</widget>
</item>
<item row="1" column="4" colspan="3">
<widget class="QCheckBox" name="checkStop">
<property name="toolTip">
<string>在搜索到下一个匹配条件的种子时停止。</string>
</property>
<property name="text">
<string>有结果时停止</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;searching algorithm&lt;/p&gt;&lt;p&gt;incremental: best for non-exhaustive biome searches&lt;/p&gt;&lt;p&gt;48-bit family blocks: best for searches with strong structure restrictions&lt;/p&gt;&lt;p&gt;seed list from file...: load and search through a pre-computed list of seed&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>搜索方式:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="buttonSearchHelp">
<property name="maximumSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/info.png</normaloff>:/icons/info.png</iconset>
</property>
<property name="iconSize">
<size>
<width>14</width>
<height>14</height>
</size>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>种子:</string>
</property>
</widget>
</item>
<item row="0" column="6">
<widget class="QSpinBox" name="spinThreads">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>16</number>
</property>
</widget>
</item>
<item row="0" column="2" colspan="2">
<widget class="QComboBox" name="comboSearchType">
<property name="iconSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<item>
<property name="text">
<string>递增</string>
</property>
</item>
<item>
<property name="text">
<string>48-Bit 族块</string>
</property>
</item>
<item>
<property name="text">
<string>从文件中读取种子列表...</string>
</property>
</item>
</widget>
</item>
<item row="3" column="0" colspan="7">
<widget class="QProgressBar" name="progressBar">
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="toolTip">
<string>搜索进度</string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="maximum">
<number>10000</number>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="format">
<string>0</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="7">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="buttonClear">
<property name="text">
<string>清空结果</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/clear.png</normaloff>:/icons/clear.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonStart">
<property name="text">
<string>开始搜索</string>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/search.png</normaloff>:/icons/search.png</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections/>
</ui>

122
gotodialog.ui Normal file
View File

@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>GotoDialog</class>
<widget class="QDialog" name="GotoDialog">
<property name="windowTitle">
<string>坐标</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>坐标:</string>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="frame">
<layout class="QHBoxLayout" name="horizontalLayout">
<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>
<item>
<widget class="QLabel" name="labelX">
<property name="text">
<string>X</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineX"/>
</item>
<item>
<widget class="QLabel" name="labelZ">
<property name="text">
<string>Z</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineZ"/>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>分辨率:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineScale"/>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>方块每像素</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Close|QDialogButtonBox::Ok|QDialogButtonBox::Reset</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>GotoDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>GotoDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

845
mainwindow.ui Normal file
View File

@ -0,0 +1,845 @@
<?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>1280</width>
<height>800</height>
</rect>
</property>
<property name="windowTitle">
<string>Cubiomes Viewer 汉化by: 新兵Sinbing</string>
</property>
<property name="windowIcon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/map.png</normaloff>:/icons/map.png</iconset>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QGridLayout" name="gridLayout_6">
<item row="0" column="0">
<widget class="QSplitter" name="splitterMap">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QFrame" name="controlFrame">
<layout class="QVBoxLayout" name="verticalLayout_5">
<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>
<item>
<layout class="QGridLayout" name="gridMCSeed">
<item row="0" column="3">
<widget class="QLineEdit" name="seedEdit">
<property name="toolTip">
<string>按下回车以开始搜索</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLineEdit" name="lineY">
<property name="toolTip">
<string>显示当前Y轴的地图</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="labelY">
<property name="toolTip">
<string>显示当前Y轴的地图</string>
</property>
<property name="text">
<string>Y:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="labelSeed">
<property name="toolTip">
<string>种子可以输入数字或文字,留空为随机种子。</string>
</property>
<property name="text">
<string>seed:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labeMC">
<property name="toolTip">
<string>Minecraft 游戏版本</string>
</property>
<property name="text">
<string>MC</string>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QLabel" name="labelSeedType">
<property name="minimumSize">
<size>
<width>61</width>
<height>25</height>
</size>
</property>
<property name="toolTip">
<string>种子可以输入数字或文字,留空为随机种子。</string>
</property>
<property name="text">
<string>(随机)</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboBoxMC">
<property name="toolTip">
<string>Minecraft 游戏版本</string>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
<property name="minimumContentsLength">
<number>6</number>
</property>
<property name="iconSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<item>
<property name="text">
<string>1.18</string>
</property>
</item>
<item>
<property name="text">
<string>1.17</string>
</property>
</item>
<item>
<property name="text">
<string>1.16</string>
</property>
</item>
<item>
<property name="text">
<string>1.15</string>
</property>
</item>
<item>
<property name="text">
<string>1.14</string>
</property>
</item>
<item>
<property name="text">
<string>1.13</string>
</property>
</item>
<item>
<property name="text">
<string>1.12</string>
</property>
</item>
<item>
<property name="text">
<string>1.11</string>
</property>
</item>
<item>
<property name="text">
<string>1.10</string>
</property>
</item>
<item>
<property name="text">
<string>1.9</string>
</property>
</item>
<item>
<property name="text">
<string>1.8</string>
</property>
</item>
<item>
<property name="text">
<string>1.7</string>
</property>
</item>
<item>
<property name="text">
<string>1.6</string>
</property>
</item>
<item>
<property name="text">
<string>1.5</string>
</property>
</item>
<item>
<property name="text">
<string>1.4</string>
</property>
</item>
<item>
<property name="text">
<string>1.3</string>
</property>
</item>
<item>
<property name="text">
<string>1.2</string>
</property>
</item>
<item>
<property name="text">
<string>1.1</string>
</property>
</item>
<item>
<property name="text">
<string>1.0</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="checkLarge">
<property name="text">
<string>巨型生物群系</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTabWidget" name="tabContainer">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tabSearch">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>搜索</string>
</attribute>
<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>
<item row="0" column="0">
<widget class="QScrollArea" name="scrollArea">
<property name="minimumSize">
<size>
<width>500</width>
<height>0</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QAbstractScrollArea#scrollArea {
border: 0px none;
}
QToolButton {
background-color: transparent;
}</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1232</width>
<height>669</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>440</width>
<height>0</height>
</size>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QSplitter" name="splitterSearch">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">
QSplitter {
background-color: transparent;
}</string>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<widget class="Collapsible" name="collapseConstraints" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="Collapsible" name="collapseGen48" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="Collapsible" name="collapseControl" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabAnalysis">
<attribute name="title">
<string>分析</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="lineRadius">
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QPushButton" name="buttonExport">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>导出</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="5">
<widget class="QTreeWidget" name="treeAnalysis">
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::NoDragDrop</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<property name="columnCount">
<number>2</number>
</property>
<attribute name="headerDefaultSectionSize">
<number>280</number>
</attribute>
<column>
<property name="text">
<string>类型</string>
</property>
</column>
<column>
<property name="text">
<string>数量</string>
</property>
</column>
</widget>
</item>
<item row="2" column="0" colspan="3">
<layout class="QHBoxLayout" name="layoutArea">
<item>
<widget class="QLabel" name="labelX1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>X&lt;sub&gt;1&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditX1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelZ1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>Z&lt;sub&gt;1&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditZ1">
<property name="toolTip">
<string>下限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<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>
<widget class="QLabel" name="labelX2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>X&lt;sub&gt;2&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditX2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelZ2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>Z&lt;sub&gt;2&lt;/sub&gt;=</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditZ2">
<property name="toolTip">
<string>上限(含)</string>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="3" colspan="2">
<widget class="QPushButton" name="buttonFromVisible">
<property name="text">
<string>从地图导入范围</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelSquareArea">
<property name="text">
<string>从中心点外延正方形区域的半径 =</string>
</property>
</widget>
</item>
<item row="0" column="3" colspan="2">
<widget class="QCheckBox" name="checkArea">
<property name="toolTip">
<string>手动设定矩形区域而不是预设的正方形</string>
</property>
<property name="text">
<string>自定义范围</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0" colspan="5">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="2">
<widget class="QCheckBox" name="checkConditions">
<property name="toolTip">
<string>使用[搜索]中[条件]的条件分析种子</string>
</property>
<property name="text">
<string>使用搜索条件分析</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QPushButton" name="buttonAnalysis">
<property name="text">
<string>开始分析</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QCheckBox" name="checkMapOnly">
<property name="toolTip">
<string>分析地图中显示的群系与结构</string>
</property>
<property name="text">
<string>使用地图选项分析</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="checkBiomes">
<property name="toolTip">
<string>统计区域内的生物群系</string>
</property>
<property name="text">
<string>分析生物群系</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="checkStructs">
<property name="toolTip">
<string>统计区域内的结构位置</string>
</property>
<property name="text">
<string>分析结构</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QFrame" name="frameMap">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<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>
<item row="0" column="0">
<widget class="MapView" name="mapView" native="true"/>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>工具栏</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">
QToolBar {
border-radius: 5px;
padding: 0px;
spacing: 0px;
}
QToolButton {
border-radius: 5px;
padding: 2px;
border: 0px solid;
margin: 0px;
}
QToolButton:!checked {
}
QToolButton:checked {
background-color: #8a9dc4;
}</string>
</property>
<property name="movable">
<bool>true</bool>
</property>
<property name="allowedAreas">
<set>Qt::AllToolBarAreas</set>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="floatable">
<bool>true</bool>
</property>
<attribute name="toolBarArea">
<enum>RightToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1280</width>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuMap">
<property name="title">
<string>地图</string>
</property>
<addaction name="actionGo_to"/>
<addaction name="actionScan_seed_for_Quad_Huts"/>
<addaction name="actionOpen_shadow_seed"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>帮助</string>
</property>
<addaction name="actionAbout"/>
</widget>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>文件</string>
</property>
<addaction name="actionSave"/>
<addaction name="actionLoad"/>
<addaction name="separator"/>
<addaction name="actionSearch_seed_list"/>
<addaction name="actionSearch_full_seed_space"/>
<addaction name="separator"/>
<addaction name="actionQuit"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>编辑</string>
</property>
<addaction name="actionCopy"/>
<addaction name="actionPaste"/>
<addaction name="separator"/>
<addaction name="actionAddShadow"/>
<addaction name="separator"/>
<addaction name="actionExtGen"/>
<addaction name="actionPreferences"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menuMap"/>
<addaction name="menuHelp"/>
</widget>
<action name="actionGo_to">
<property name="text">
<string>定位...</string>
</property>
</action>
<action name="actionScan_seed_for_Quad_Huts">
<property name="text">
<string>搜索四连结构...</string>
</property>
</action>
<action name="actionAbout">
<property name="text">
<string>关于</string>
</property>
</action>
<action name="actionOpen_shadow_seed">
<property name="text">
<string>打开种子镜像</string>
</property>
</action>
<action name="actionSave">
<property name="text">
<string>保存进度...</string>
</property>
</action>
<action name="actionLoad">
<property name="text">
<string>打开进度...</string>
</property>
</action>
<action name="actionSearch_seed_list">
<property name="text">
<string>搜索列表中的种子</string>
</property>
<property name="toolTip">
<string>在读取的种子列表文件内进行搜索</string>
</property>
</action>
<action name="actionSearch_full_seed_space">
<property name="text">
<string>搜索列表中的种子</string>
</property>
</action>
<action name="actionCopy">
<property name="text">
<string>复制搜索结果中的种子</string>
</property>
</action>
<action name="actionPaste">
<property name="text">
<string>粘贴种子至搜索结果中</string>
</property>
</action>
<action name="actionPreferences">
<property name="text">
<string>偏好设定</string>
</property>
</action>
<action name="actionQuit">
<property name="text">
<string>退出</string>
</property>
</action>
<action name="actionAddShadow">
<property name="text">
<string>在搜索结果中添加
所有种子的镜像种子</string>
</property>
</action>
<action name="actionExtGen">
<property name="text">
<string>高级世界设定...</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>Collapsible</class>
<extends>QWidget</extends>
<header>src/collapsible.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>MapView</class>
<extends>QWidget</extends>
<header>src/mapview.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections/>
</ui>

88
protobasedialog.ui Normal file
View File

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ProtoBaseDialog</class>
<widget class="QDialog" name="ProtoBaseDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>627</width>
<height>113</height>
</rect>
</property>
<property name="windowTitle">
<string>生成模型</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:12pt; font-weight:600;&quot;&gt;请稍后: 生成模型中...&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>这会需要一点时间。 模型将被保存到 _PATH_ 以便更快速的搜索。</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>处理完成后自动关闭窗口。</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>ProtoBaseDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>ProtoBaseDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

295
quadlistdialog.ui Normal file
View File

@ -0,0 +1,295 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QuadListDialog</class>
<widget class="QDialog" name="QuadListDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>700</width>
<height>321</height>
</rect>
</property>
<property name="windowTitle">
<string>搜索四连结构</string>
</property>
<property name="windowIcon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/quad.png</normaloff>:/icons/quad.png</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>四连结构</string>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="0">
<widget class="QTableWidget" name="listQuadStruct">
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="horizontalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="horizontalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<column>
<property name="text">
<string>结构名称</string>
</property>
<property name="toolTip">
<string>四连结构种类</string>
</property>
<property name="textAlignment">
<set>AlignLeft|AlignVCenter</set>
</property>
</column>
<column>
<property name="text">
<string>距离</string>
</property>
<property name="toolTip">
<string>到世界原点的距离</string>
</property>
<property name="textAlignment">
<set>AlignLeft|AlignVCenter</set>
</property>
</column>
<column>
<property name="text">
<string>最优中心</string>
</property>
<property name="toolTip">
<string>最优挂机坐标</string>
</property>
<property name="textAlignment">
<set>AlignLeft|AlignVCenter</set>
</property>
</column>
<column>
<property name="text">
<string>结构外接圆半径</string>
</property>
<property name="toolTip">
<string>[最优挂机坐标] 与 [最远刷怪位置] 之间的距离</string>
</property>
<property name="textAlignment">
<set>AlignLeft|AlignVCenter</set>
</property>
</column>
<column>
<property name="text">
<string>刷怪范围</string>
</property>
<property name="toolTip">
<string>128格范围内的有效刷怪面积</string>
</property>
<property name="textAlignment">
<set>AlignLeft|AlignVCenter</set>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelMsg">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="gridMCSeed">
<item row="0" column="2">
<widget class="QLabel" name="labelSeed">
<property name="toolTip">
<string>种子可以输入数字或文字,留空为随机种子。</string>
</property>
<property name="text">
<string>种子:</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLineEdit" name="lineSeed">
<property name="toolTip">
<string>按下回车以开始搜索</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labeMC">
<property name="toolTip">
<string>Minecraft 游戏版本</string>
</property>
<property name="text">
<string>版本</string>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QPushButton" name="buttonGo">
<property name="text">
<string>搜索</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboBoxMC">
<property name="toolTip">
<string>Minecraft 游戏版本</string>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
<property name="minimumContentsLength">
<number>6</number>
</property>
<property name="iconSize">
<size>
<width>0</width>
<height>16</height>
</size>
</property>
<item>
<property name="text">
<string>1.18</string>
</property>
</item>
<item>
<property name="text">
<string>1.17</string>
</property>
</item>
<item>
<property name="text">
<string>1.16</string>
</property>
</item>
<item>
<property name="text">
<string>1.15</string>
</property>
</item>
<item>
<property name="text">
<string>1.14</string>
</property>
</item>
<item>
<property name="text">
<string>1.13</string>
</property>
</item>
<item>
<property name="text">
<string>1.12</string>
</property>
</item>
<item>
<property name="text">
<string>1.11</string>
</property>
</item>
<item>
<property name="text">
<string>1.10</string>
</property>
</item>
<item>
<property name="text">
<string>1.9</string>
</property>
</item>
<item>
<property name="text">
<string>1.8</string>
</property>
</item>
<item>
<property name="text">
<string>1.7</string>
</property>
</item>
<item>
<property name="text">
<string>1.6</string>
</property>
</item>
<item>
<property name="text">
<string>1.5</string>
</property>
</item>
<item>
<property name="text">
<string>1.4</string>
</property>
</item>
<item>
<property name="text">
<string>1.3</string>
</property>
</item>
<item>
<property name="text">
<string>1.2</string>
</property>
</item>
<item>
<property name="text">
<string>1.1</string>
</property>
</item>
<item>
<property name="text">
<string>1.0</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item row="3" column="0" alignment="Qt::AlignRight">
<widget class="QPushButton" name="buttonClose">
<property name="text">
<string>关闭</string>
</property>
<property name="icon">
<iconset theme="window-close">
<normaloff/>
</iconset>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections/>
</ui>

96
rangedialog.ui Normal file
View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RangeDialog</class>
<widget class="QDialog" name="RangeDialog">
<property name="windowTitle">
<string>设定搜索范围</string>
</property>
<property name="windowIcon">
<iconset resource="../icons.qrc">
<normaloff>:/icons/map.png</normaloff>:/icons/map.png</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="4" column="2">
<widget class="QCheckBox" name="checkHex">
<property name="text">
<string>十六进制</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>最大值:</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="3">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
</property>
</widget>
</item>
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;设定递增搜索的种子范围 &lt;/p&gt;&lt;p&gt;最小值与最大值均为(不含)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>最小值:</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLineEdit" name="lineMax"/>
</item>
<item row="2" column="2">
<widget class="QLineEdit" name="lineMin"/>
</item>
</layout>
</widget>
<resources>
<include location="../icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>RangeDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>RangeDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>