Ver código fonte

实现各个界面的列表添加删除功能;实现状态与效果动画表格功能;将多个ui整合至主界面便于后期数据与界面分离

Menglan_Luo 2 anos atrás
pai
commit
cb2b1218e1
15 arquivos alterados com 1897 adições e 657 exclusões
  1. 6 0
      ConfigurableTool.pro
  2. 0 6
      basicproperty.cpp
  3. 261 251
      basicproperty.ui
  4. 24 0
      changenamedialog.cpp
  5. 27 0
      changenamedialog.h
  6. 78 0
      changenamedialog.ui
  7. 64 58
      collectionwindow.ui
  8. 54 50
      containerpool.ui
  9. 162 43
      mainwindow.cpp
  10. 31 4
      mainwindow.h
  11. 837 80
      mainwindow.ui
  12. 53 0
      resfiledialog.cpp
  13. 31 0
      resfiledialog.h
  14. 94 0
      resfiledialog.ui
  15. 175 165
      statusconfiguration.ui

+ 6 - 0
ConfigurableTool.pro

@@ -10,24 +10,30 @@ CONFIG += c++11
 
 SOURCES += \
     basicproperty.cpp \
+    changenamedialog.cpp \
     collectionwindow.cpp \
     containerpool.cpp \
     main.cpp \
     mainwindow.cpp \
+    resfiledialog.cpp \
     statusconfiguration.cpp
 
 HEADERS += \
     basicproperty.h \
+    changenamedialog.h \
     collectionwindow.h \
     containerpool.h \
     mainwindow.h \
+    resfiledialog.h \
     statusconfiguration.h
 
 FORMS += \
     basicproperty.ui \
+    changenamedialog.ui \
     collectionwindow.ui \
     containerpool.ui \
     mainwindow.ui \
+    resfiledialog.ui \
     statusconfiguration.ui
 
 # Default rules for deployment.

+ 0 - 6
basicproperty.cpp

@@ -76,10 +76,4 @@ void BasicProperty::on_pushButton_addAnimation_clicked()
     ui->tableWidget_animation->setCellWidget(rowNum,1,resource);
 
 }
-void BasicProperty::printTable()
-{
-//    QWidget *w = ui->tableWidget_animation->cellWidget(0,0);
-//    std::cout<<"name:"<<qPrintable()<<std::endl;
-//    std::cout<<"resource:"<<qPrintable(resource->text())<<std::endl;
-}
 

+ 261 - 251
basicproperty.ui

@@ -6,303 +6,313 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>800</width>
-    <height>600</height>
+    <width>1014</width>
+    <height>793</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>MainWindow</string>
   </property>
   <widget class="QWidget" name="centralwidget">
-   <layout class="QVBoxLayout" name="verticalLayout_2">
-    <item>
-     <widget class="QLabel" name="label_3">
+   <widget class="QLabel" name="label_3">
+    <property name="geometry">
+     <rect>
+      <x>12</x>
+      <y>12</y>
+      <width>53</width>
+      <height>16</height>
+     </rect>
+    </property>
+    <property name="text">
+     <string>基础属性</string>
+    </property>
+   </widget>
+   <widget class="QTabWidget" name="tabWidget">
+    <property name="geometry">
+     <rect>
+      <x>12</x>
+      <y>211</y>
+      <width>751</width>
+      <height>326</height>
+     </rect>
+    </property>
+    <property name="tabShape">
+     <enum>QTabWidget::Triangular</enum>
+    </property>
+    <property name="currentIndex">
+     <number>0</number>
+    </property>
+    <property name="elideMode">
+     <enum>Qt::ElideRight</enum>
+    </property>
+    <widget class="QWidget" name="tab_effect_2">
+     <attribute name="title">
+      <string> 状态与效果动画</string>
+     </attribute>
+     <widget class="QTableWidget" name="tableWidget_animation">
+      <property name="geometry">
+       <rect>
+        <x>20</x>
+        <y>10</y>
+        <width>561</width>
+        <height>281</height>
+       </rect>
+      </property>
+      <property name="rowCount">
+       <number>0</number>
+      </property>
+      <property name="columnCount">
+       <number>4</number>
+      </property>
+      <column/>
+      <column/>
+      <column/>
+      <column/>
+     </widget>
+     <widget class="QPushButton" name="pushButton_addAnimation">
+      <property name="geometry">
+       <rect>
+        <x>620</x>
+        <y>80</y>
+        <width>113</width>
+        <height>32</height>
+       </rect>
+      </property>
       <property name="text">
-       <string>基础属性</string>
+       <string>添加新动画</string>
       </property>
      </widget>
-    </item>
-    <item>
-     <layout class="QHBoxLayout" name="horizontalLayout_7">
+    </widget>
+    <widget class="QWidget" name="tab_collection_2">
+     <attribute name="title">
+      <string>收集动画</string>
+     </attribute>
+     <layout class="QHBoxLayout" name="horizontalLayout_8">
       <item>
-       <layout class="QVBoxLayout" name="verticalLayout">
-        <item>
-         <layout class="QHBoxLayout" name="horizontalLayout">
-          <item>
-           <widget class="QLabel" name="label_name">
-            <property name="text">
-             <string>标识值:</string>
-            </property>
-           </widget>
-          </item>
-          <item>
-           <widget class="QLineEdit" name="lineEdit_name"/>
-          </item>
-         </layout>
-        </item>
-        <item>
-         <layout class="QHBoxLayout" name="horizontalLayout_2">
-          <item>
-           <widget class="QLabel" name="label_size">
-            <property name="text">
-             <string>大小:</string>
-            </property>
-           </widget>
-          </item>
-          <item>
-           <widget class="QLineEdit" name="lineEdit_size"/>
-          </item>
-         </layout>
-        </item>
-        <item>
-         <layout class="QHBoxLayout" name="horizontalLayout_3">
-          <item>
-           <widget class="QLabel" name="label_maxlayer">
-            <property name="text">
-             <string>最大层数:</string>
-            </property>
-           </widget>
-          </item>
-          <item>
-           <widget class="QLineEdit" name="lineEdit_maxlayer"/>
-          </item>
-         </layout>
-        </item>
+       <widget class="QTabWidget" name="tabWidget_collection">
+        <property name="tabPosition">
+         <enum>QTabWidget::West</enum>
+        </property>
+        <property name="tabsClosable">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <layout class="QVBoxLayout" name="verticalLayout_3">
         <item>
-         <layout class="QHBoxLayout" name="horizontalLayout_4">
-          <item>
-           <widget class="QLabel" name="label_score">
-            <property name="text">
-             <string>分数:</string>
-            </property>
-           </widget>
-          </item>
-          <item>
-           <widget class="QLineEdit" name="lineEdit_score"/>
-          </item>
-         </layout>
+         <spacer name="verticalSpacer">
+          <property name="orientation">
+           <enum>Qt::Vertical</enum>
+          </property>
+          <property name="sizeHint" stdset="0">
+           <size>
+            <width>108</width>
+            <height>228</height>
+           </size>
+          </property>
+         </spacer>
         </item>
         <item>
-         <layout class="QHBoxLayout" name="horizontalLayout_5">
-          <item>
-           <widget class="QLabel" name="label_drop">
-            <property name="text">
-             <string>掉落设定:</string>
-            </property>
-           </widget>
-          </item>
-          <item>
-           <widget class="QSpinBox" name="spinBox_drop"/>
-          </item>
-         </layout>
+         <widget class="QPushButton" name="pushButton">
+          <property name="text">
+           <string>addCollection</string>
+          </property>
+         </widget>
         </item>
        </layout>
       </item>
+     </layout>
+    </widget>
+    <widget class="QWidget" name="tab_statusConfiguration_2">
+     <attribute name="title">
+      <string>状态配置</string>
+     </attribute>
+     <layout class="QVBoxLayout" name="verticalLayout_5">
+      <item>
+       <widget class="QTabWidget" name="tabWidget_status"/>
+      </item>
+     </layout>
+    </widget>
+    <widget class="QWidget" name="tab_container_2">
+     <attribute name="title">
+      <string>容器</string>
+     </attribute>
+     <layout class="QVBoxLayout" name="verticalLayout_4">
       <item>
-       <layout class="QHBoxLayout" name="horizontalLayout_6">
+       <layout class="QHBoxLayout" name="horizontalLayout_9">
         <item>
-         <widget class="QLabel" name="label_icon">
+         <widget class="QLabel" name="label">
           <property name="text">
-           <string>图标:</string>
+           <string>容器池:</string>
           </property>
          </widget>
         </item>
         <item>
-         <widget class="QLabel" name="label_pic">
-          <property name="text">
-           <string>icon</string>
+         <spacer name="horizontalSpacer">
+          <property name="orientation">
+           <enum>Qt::Horizontal</enum>
           </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QPushButton" name="pushButton_chooseFile">
-          <property name="text">
-           <string>选择文件</string>
+          <property name="sizeHint" stdset="0">
+           <size>
+            <width>40</width>
+            <height>20</height>
+           </size>
           </property>
-         </widget>
+         </spacer>
         </item>
        </layout>
       </item>
-     </layout>
-    </item>
-    <item>
-     <widget class="QTabWidget" name="tabWidget">
-      <property name="tabShape">
-       <enum>QTabWidget::Triangular</enum>
-      </property>
-      <property name="currentIndex">
-       <number>0</number>
-      </property>
-      <property name="elideMode">
-       <enum>Qt::ElideRight</enum>
-      </property>
-      <widget class="QWidget" name="tab_effect_2">
-       <attribute name="title">
-        <string> 状态与效果动画</string>
-       </attribute>
-       <widget class="QTableWidget" name="tableWidget_animation">
-        <property name="geometry">
-         <rect>
-          <x>20</x>
-          <y>10</y>
-          <width>561</width>
-          <height>281</height>
-         </rect>
-        </property>
-        <property name="rowCount">
-         <number>0</number>
-        </property>
-        <property name="columnCount">
-         <number>4</number>
-        </property>
-        <column/>
-        <column/>
-        <column/>
-        <column/>
-       </widget>
-       <widget class="QPushButton" name="pushButton_addAnimation">
-        <property name="geometry">
-         <rect>
-          <x>620</x>
-          <y>80</y>
-          <width>113</width>
-          <height>32</height>
-         </rect>
+      <item>
+       <widget class="QTabWidget" name="tabWidget_container">
+        <property name="tabPosition">
+         <enum>QTabWidget::West</enum>
         </property>
-        <property name="text">
-         <string>添加新动画</string>
+        <property name="currentIndex">
+         <number>-1</number>
         </property>
        </widget>
-      </widget>
-      <widget class="QWidget" name="tab_collection_2">
-       <attribute name="title">
-        <string>收集动画</string>
-       </attribute>
-       <layout class="QHBoxLayout" name="horizontalLayout_8">
+      </item>
+      <item>
+       <layout class="QHBoxLayout" name="horizontalLayout_10">
         <item>
-         <widget class="QTabWidget" name="tabWidget_collection">
-          <property name="tabPosition">
-           <enum>QTabWidget::West</enum>
-          </property>
-          <property name="tabsClosable">
-           <bool>true</bool>
+         <widget class="QLabel" name="label_2">
+          <property name="text">
+           <string>子元素:</string>
           </property>
          </widget>
         </item>
         <item>
-         <layout class="QVBoxLayout" name="verticalLayout_3">
-          <item>
-           <spacer name="verticalSpacer">
-            <property name="orientation">
-             <enum>Qt::Vertical</enum>
-            </property>
-            <property name="sizeHint" stdset="0">
-             <size>
-              <width>108</width>
-              <height>228</height>
-             </size>
-            </property>
-           </spacer>
-          </item>
-          <item>
-           <widget class="QPushButton" name="pushButton">
-            <property name="text">
-             <string>addCollection</string>
-            </property>
-           </widget>
-          </item>
-         </layout>
-        </item>
-       </layout>
-      </widget>
-      <widget class="QWidget" name="tab_statusConfiguration_2">
-       <attribute name="title">
-        <string>状态配置</string>
-       </attribute>
-       <layout class="QVBoxLayout" name="verticalLayout_5">
-        <item>
-         <widget class="QTabWidget" name="tabWidget_status"/>
-        </item>
-       </layout>
-      </widget>
-      <widget class="QWidget" name="tab_container_2">
-       <attribute name="title">
-        <string>容器</string>
-       </attribute>
-       <layout class="QVBoxLayout" name="verticalLayout_4">
-        <item>
-         <layout class="QHBoxLayout" name="horizontalLayout_9">
-          <item>
-           <widget class="QLabel" name="label">
-            <property name="text">
-             <string>容器池:</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>
-         </layout>
-        </item>
-        <item>
-         <widget class="QTabWidget" name="tabWidget_container">
-          <property name="tabPosition">
-           <enum>QTabWidget::West</enum>
+         <spacer name="horizontalSpacer_2">
+          <property name="orientation">
+           <enum>Qt::Horizontal</enum>
           </property>
-          <property name="currentIndex">
-           <number>-1</number>
+          <property name="sizeHint" stdset="0">
+           <size>
+            <width>40</width>
+            <height>20</height>
+           </size>
           </property>
-         </widget>
-        </item>
-        <item>
-         <layout class="QHBoxLayout" name="horizontalLayout_10">
-          <item>
-           <widget class="QLabel" name="label_2">
-            <property name="text">
-             <string>子元素:</string>
-            </property>
-           </widget>
-          </item>
-          <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>
-         </layout>
-        </item>
-        <item>
-         <widget class="QTableWidget" name="tableWidget_container"/>
+         </spacer>
         </item>
        </layout>
-      </widget>
-     </widget>
-    </item>
-   </layout>
+      </item>
+      <item>
+       <widget class="QTableWidget" name="tableWidget_container"/>
+      </item>
+     </layout>
+    </widget>
+   </widget>
+   <widget class="QWidget" name="">
+    <layout class="QHBoxLayout" name="horizontalLayout_7">
+     <item>
+      <layout class="QVBoxLayout" name="verticalLayout">
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout">
+         <item>
+          <widget class="QLabel" name="label_name">
+           <property name="text">
+            <string>标识值:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_name"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_2">
+         <item>
+          <widget class="QLabel" name="label_size">
+           <property name="text">
+            <string>大小:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_size"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_3">
+         <item>
+          <widget class="QLabel" name="label_maxlayer">
+           <property name="text">
+            <string>最大层数:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_maxlayer"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_4">
+         <item>
+          <widget class="QLabel" name="label_score">
+           <property name="text">
+            <string>分数:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_score"/>
+         </item>
+        </layout>
+       </item>
+       <item>
+        <layout class="QHBoxLayout" name="horizontalLayout_5">
+         <item>
+          <widget class="QLabel" name="label_drop">
+           <property name="text">
+            <string>掉落设定:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QSpinBox" name="spinBox_drop"/>
+         </item>
+        </layout>
+       </item>
+      </layout>
+     </item>
+     <item>
+      <layout class="QHBoxLayout" name="horizontalLayout_6">
+       <item>
+        <widget class="QLabel" name="label_icon">
+         <property name="text">
+          <string>图标:</string>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="QLabel" name="label_pic">
+         <property name="text">
+          <string>icon</string>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="QPushButton" name="pushButton_chooseFile">
+         <property name="text">
+          <string>选择文件</string>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </item>
+    </layout>
+   </widget>
   </widget>
   <widget class="QMenuBar" name="menubar">
    <property name="geometry">
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>800</width>
+     <width>1014</width>
      <height>24</height>
     </rect>
    </property>

+ 24 - 0
changenamedialog.cpp

@@ -0,0 +1,24 @@
+#include "changenamedialog.h"
+#include "ui_changenamedialog.h"
+
+ChangeNameDialog::ChangeNameDialog(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::ChangeNameDialog)
+{
+    ui->setupUi(this);
+}
+
+ChangeNameDialog::~ChangeNameDialog()
+{
+    delete ui;
+}
+
+void ChangeNameDialog::on_buttonBox_changeName_accepted()
+{
+    newName = ui->lineEdit_newName->text();
+}
+
+QString ChangeNameDialog::getNewName()
+{
+    return newName;
+}

+ 27 - 0
changenamedialog.h

@@ -0,0 +1,27 @@
+#ifndef CHANGENAMEDIALOG_H
+#define CHANGENAMEDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+class ChangeNameDialog;
+}
+
+class ChangeNameDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit ChangeNameDialog(QWidget *parent = nullptr);
+    ~ChangeNameDialog();
+    QString getNewName();
+
+private slots:
+    void on_buttonBox_changeName_accepted();
+
+private:
+    Ui::ChangeNameDialog *ui;
+    QString newName;
+};
+
+#endif // CHANGENAMEDIALOG_H

+ 78 - 0
changenamedialog.ui

@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ChangeNameDialog</class>
+ <widget class="QDialog" name="ChangeNameDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>297</width>
+    <height>230</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <item>
+      <widget class="QLabel" name="label">
+       <property name="text">
+        <string>修改名字为:</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QLineEdit" name="lineEdit_newName"/>
+     </item>
+    </layout>
+   </item>
+   <item>
+    <widget class="QDialogButtonBox" name="buttonBox_changeName">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="standardButtons">
+      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox_changeName</sender>
+   <signal>accepted()</signal>
+   <receiver>ChangeNameDialog</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_changeName</sender>
+   <signal>rejected()</signal>
+   <receiver>ChangeNameDialog</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>

+ 64 - 58
collectionwindow.ui

@@ -13,64 +13,70 @@
   <property name="windowTitle">
    <string>Form</string>
   </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout">
-     <item>
-      <widget class="QLabel" name="label_animationType">
-       <property name="text">
-        <string>动画类型:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QComboBox" name="comboBox_animationType"/>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_2">
-     <item>
-      <widget class="QLabel" name="label_animation">
-       <property name="text">
-        <string>动画:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QComboBox" name="comboBox_animation"/>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_3">
-     <item>
-      <widget class="QLabel" name="label_node">
-       <property name="text">
-        <string>节点:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QLineEdit" name="lineEdit_node"/>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_4">
-     <item>
-      <widget class="QLabel" name="label_shadow">
-       <property name="text">
-        <string>阴影:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QLineEdit" name="lineEdit_shadow"/>
-     </item>
-    </layout>
-   </item>
-  </layout>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout">
+    <item>
+     <widget class="QLabel" name="label_animationType">
+      <property name="text">
+       <string>动画类型:</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <widget class="QComboBox" name="comboBox_animationType"/>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout_2">
+    <item>
+     <widget class="QLabel" name="label_animation">
+      <property name="text">
+       <string>动画:</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <widget class="QComboBox" name="comboBox_animation"/>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout_3">
+    <item>
+     <widget class="QLabel" name="label_node">
+      <property name="text">
+       <string>节点:</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <widget class="QLineEdit" name="lineEdit_node"/>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QWidget" name="">
+   <property name="geometry">
+    <rect>
+     <x>20</x>
+     <y>220</y>
+     <width>175</width>
+     <height>23</height>
+    </rect>
+   </property>
+   <layout class="QHBoxLayout" name="horizontalLayout_4">
+    <item>
+     <widget class="QLabel" name="label_shadow">
+      <property name="text">
+       <string>阴影:</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <widget class="QLineEdit" name="lineEdit_shadow"/>
+    </item>
+   </layout>
+  </widget>
  </widget>
  <resources/>
  <connections/>

+ 54 - 50
containerpool.ui

@@ -6,61 +6,65 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>734</width>
-    <height>331</height>
+    <width>818</width>
+    <height>451</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>Form</string>
   </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout">
-     <item>
-      <widget class="QLabel" name="label_containerType">
-       <property name="text">
-        <string>容器类型:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QComboBox" name="comboBox_container"/>
-     </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>
-    </layout>
-   </item>
-   <item>
-    <widget class="QTableWidget" name="tableWidget_containerPool">
-     <property name="rowCount">
-      <number>2</number>
-     </property>
-     <property name="columnCount">
-      <number>7</number>
-     </property>
-     <row/>
-     <row/>
-     <column/>
-     <column/>
-     <column/>
-     <column/>
-     <column/>
-     <column/>
-     <column/>
-    </widget>
-   </item>
-  </layout>
+  <widget class="QTableWidget" name="tableWidget_containerPool">
+   <property name="geometry">
+    <rect>
+     <x>12</x>
+     <y>54</y>
+     <width>256</width>
+     <height>192</height>
+    </rect>
+   </property>
+   <property name="rowCount">
+    <number>2</number>
+   </property>
+   <property name="columnCount">
+    <number>7</number>
+   </property>
+   <row/>
+   <row/>
+   <column/>
+   <column/>
+   <column/>
+   <column/>
+   <column/>
+   <column/>
+   <column/>
+  </widget>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout">
+    <item>
+     <widget class="QLabel" name="label_containerType">
+      <property name="text">
+       <string>容器类型:</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <widget class="QComboBox" name="comboBox_container"/>
+    </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>
+   </layout>
+  </widget>
  </widget>
  <resources/>
  <connections/>

+ 162 - 43
mainwindow.cpp

@@ -1,38 +1,33 @@
 #include "mainwindow.h"
 #include "ui_mainwindow.h"
 #include "basicproperty.h"
+#include "changenamedialog.h"
+#include "collectionwindow.h"
+#include "statusconfiguration.h"
+#include "containerpool.h"
+#include "resfiledialog.h"
 #include <QListWidgetItem>
 #include <QListWidget>
 #include <QLabel>
 #include <iostream>
 #include <QHBoxLayout>
+#include <QMessageBox>
+#include <QFileDialog>
+#include <QDragEnterEvent>
+#include <QMimeData>
+#include <QUrl>
+
 MainWindow::MainWindow(QWidget *parent)
     : QMainWindow(parent)
     , ui(new Ui::MainWindow)
 {
     ui->setupUi(this);
-    ui->tabWidget->addTab(new BasicProperty(),"木块障碍物");
-    ui->tabWidget->addTab(new BasicProperty(),"邮箱");
-    ui->tabWidget->addTab(new BasicProperty(),"草地");
-    ui->tabWidget->addTab(new BasicProperty(),"彩绘蛋壳");
-
-    QListWidgetItem *item = new QListWidgetItem;
-    ui->listWidget->addItem(item);
-    QWidget *w = new QWidget(ui->listWidget);
-    //图标
-    QLabel *label = new QLabel();
-    QPixmap pix("/Users/menglanluo/菜狗.png");
-    label->setPixmap(pix.scaled(15,15,Qt::KeepAspectRatio));
-    //元素名称
-    QLineEdit *edit = new QLineEdit();
-    edit->setText("新增元素");
-    QHBoxLayout *layout = new QHBoxLayout(w);
-    layout->addWidget(label);
-    layout->addWidget(edit);
-    connect(edit,SIGNAL(editingfinished()),this,SLOT(on_lineEdit_editingFinished()));
-    w->setLayout(layout);
-    w->show();
-    ui->listWidget->setItemWidget(item,w);
+    QPixmap pix("/Users/menglanluo/pic.png");
+    ui->label_pic->setPixmap(pix.scaled(50,50,Qt::KeepAspectRatio));
+    this->setAcceptDrops(true);
+    resource = new QLineEdit(this);
+    resource->setAcceptDrops(false);
+    ui->tableWidget_animation->setHorizontalHeaderLabels({"名称","资源","时间线","z-Order"});
 }
 
 MainWindow::~MainWindow()
@@ -40,42 +35,166 @@ MainWindow::~MainWindow()
     delete ui;
 }
 
+void MainWindow::on_pushButton_chooseFile_clicked()
+{
+    QString file_name = QFileDialog::getOpenFileName(this,"Open a file",QDir::homePath());
+    QPixmap pix(file_name);
+    ui->label_pic->setPixmap(pix.scaled(50,50,Qt::KeepAspectRatio));
+}
 
-void MainWindow::on_lineEdit_editingFinished()
+void MainWindow::dragEnterEvent(QDragEnterEvent *event)
+{
+    if(event->mimeData()->hasUrls()){
+        event->acceptProposedAction();
+    }
+    else{
+        event->ignore();
+    }
+}
+void MainWindow::dropEvent(QDropEvent *event)
 {
-    if(ui->lineEdit->isModified()){
-        std::cout<<"finish editing"<<std::endl;
-        std::cout<<"new text is:"<<qPrintable(ui->lineEdit->text())<<std::endl;
+    const QMimeData *mimeData = event->mimeData();
+    if(mimeData->hasUrls()){
+        QList<QUrl> urls = mimeData->urls();
+        QString urlName = urls.at(0).toLocalFile();
+        QString fileName = urlName;
+        resource->setText(fileName);
     }
 }
 
+void MainWindow::on_pushButton_addAnimation_clicked()
+{
+    int rowNum = ui->tableWidget_animation->rowCount();
+//    ui->tableWidget_animation->insertRow(rowNum);
+    ui->tableWidget_animation->setRowCount(rowNum+1);
+    //TODO: 命名唯一性检查
+    ui->tableWidget_animation->setItem(rowNum,0,new QTableWidgetItem("anim_1"));
+//    ui->tableWidget_animation->setCellWidget(rowNum,1,resource);
+    ui->tableWidget_animation->setItem(rowNum,1,new QTableWidgetItem("双击添加资源文件"));
+    ui->tableWidget_animation->setCellWidget(rowNum,2,new QComboBox);
+    ui->tableWidget_animation->setItem(rowNum,3,new QTableWidgetItem("0"));
+}
 
 void MainWindow::on_pushButton_addElem_clicked()
 {
-    QListWidgetItem *item = new QListWidgetItem;
-    ui->listWidget->addItem(item);
-    QWidget *w = new QWidget;
-    //图标
-    QLabel *label = new QLabel(w);
-    QPixmap pix("/Users/menglanluo/菜狗.png");
-    label->setPixmap(pix.scaled(15,15,Qt::KeepAspectRatio));
-    //元素名称
-    QLineEdit *edit = new QLineEdit(w);
-    edit->setText("新增元素");
-    QHBoxLayout *layout = new QHBoxLayout;
-    layout->addWidget(label);
-    layout->addWidget(edit);
-//    connect(edit,SIGNAL(editingfinished()),this,SLOT(on_lineEdit_editingFinished()));
-    w->setLayout(layout);
-    ui->listWidget->setItemWidget(item,edit);
+    ui->listWidget_elem->addItem(new QListWidgetItem(QIcon("/Users/menglanluo/菜狗.png"),"新加元素"));
+}
+
+
+void MainWindow::on_pushButton_delElem_clicked()
+{
+    QMessageBox::StandardButton reply = QMessageBox::question(this,"删除元素","确定要删除此元素吗?");
+    if(reply == QMessageBox::Yes){
+        delete ui->listWidget_elem->takeItem(ui->listWidget_elem->currentRow());
+    }
+}
+
+
+void MainWindow::on_pushButton_addCollectAnim_clicked()
+{
+    //TODO: 检查默认名称唯一性
+    ui->listWidget_collectAnim->addItem(new QListWidgetItem("collAnim_1"));
 }
 
 
-void MainWindow::on_pushButton_addElem_released()
+void MainWindow::on_pushButton_delCollectAnim_clicked()
 {
+    QMessageBox::StandardButton reply = QMessageBox::question(this,"删除动画","确定要删除此收集动画吗?");
+    if(reply == QMessageBox::Yes){
+        delete ui->listWidget_collectAnim->takeItem(ui->listWidget_collectAnim->currentRow());
+    }
+}
+
 
+void MainWindow::on_listWidget_collectAnim_itemDoubleClicked(QListWidgetItem *item)
+{
+    ChangeNameDialog newName;
+    newName.setModal(true);
+    newName.exec();
+    if(!newName.getNewName().isEmpty()){
+        item->setText(newName.getNewName());
+    }
 }
 
 
+void MainWindow::on_pushButton_addStatus_clicked()
+{
+    //TODO: 检查状态值合法性
+    ui->listWidget_status->addItem("1");
+}
+
+
+void MainWindow::on_pushButton_delStatus_clicked()
+{
+    QMessageBox::StandardButton reply = QMessageBox::question(this,"删除状态","确定要删除此状态吗?");
+    if(reply == QMessageBox::Yes){
+        delete ui->listWidget_status->takeItem(ui->listWidget_status->currentRow());
+    }
+}
 
 
+void MainWindow::on_pushButton_addContainer_clicked()
+{
+    //TODO: 检查名称唯一性
+    ui->listWidget_pool->addItem("pool1");
+}
+
+
+void MainWindow::on_pushButton_delContainer_clicked()
+{
+    QMessageBox::StandardButton reply = QMessageBox::question(this,"删除状态","确定要删除此容器吗?");
+    if(reply == QMessageBox::Yes){
+        delete ui->listWidget_pool->takeItem(ui->listWidget_pool->currentRow());
+    }
+}
+
+
+void MainWindow::on_listWidget_pool_itemDoubleClicked(QListWidgetItem *item)
+{
+    ChangeNameDialog newName;
+    newName.setModal(true);
+    newName.exec();
+    QString name = newName.getNewName();
+    if(!name.isEmpty()){
+        //TODO: 检查新名字唯一性
+        item->setText(name);
+    }
+}
+
+
+void MainWindow::on_listWidget_elem_itemDoubleClicked(QListWidgetItem *item)
+{
+    ChangeNameDialog newName;
+    newName.setModal(true);
+    newName.exec();
+    if(!newName.getNewName().isEmpty()){
+        item->setText(newName.getNewName());
+    }
+}
+
+
+void MainWindow::on_tableWidget_animation_cellDoubleClicked(int row, int column)
+{
+    if(column == 1){
+        ResFileDialog res;
+        res.setModal(true);
+        res.exec();
+        QString fileName = res.getResName();
+        if(!fileName.isEmpty()){
+            ui->tableWidget_animation->setItem(row,column,new QTableWidgetItem(fileName));
+        }
+    }
+    //TODO: 处理其它单元格的修改,检查z-Order数值合法性
+}
+
+
+
+void MainWindow::on_pushButton_delAnimation_clicked()
+{
+    QMessageBox::StandardButton reply = QMessageBox::question(this,"删除动画","确定要删除此动画吗?");
+    if(reply == QMessageBox::Yes){
+        int curRow = ui->tableWidget_animation->currentRow();
+        ui->tableWidget_animation->removeRow(curRow);
+    }
+}
+

+ 31 - 4
mainwindow.h

@@ -16,16 +16,43 @@ public:
     MainWindow(QWidget *parent = nullptr);
     ~MainWindow();
 
-private slots:
-    void on_lineEdit_editingFinished();
+protected:
+    void dragEnterEvent(QDragEnterEvent *event);
+    void dropEvent(QDropEvent *event);
 
+private slots:
     void on_pushButton_addElem_clicked();
 
-    void on_pushButton_addElem_released();
+    void on_pushButton_delElem_clicked();
+
+    void on_pushButton_chooseFile_clicked();
+
+    void on_pushButton_addAnimation_clicked();
+
+    void on_pushButton_addCollectAnim_clicked();
+
+    void on_pushButton_delCollectAnim_clicked();
+
+    void on_listWidget_collectAnim_itemDoubleClicked(QListWidgetItem *item);
+
+    void on_pushButton_addStatus_clicked();
+
+    void on_pushButton_delStatus_clicked();
+
+    void on_pushButton_addContainer_clicked();
+
+    void on_pushButton_delContainer_clicked();
+
+    void on_listWidget_pool_itemDoubleClicked(QListWidgetItem *item);
+
+    void on_listWidget_elem_itemDoubleClicked(QListWidgetItem *item);
+
+    void on_tableWidget_animation_cellDoubleClicked(int row, int column);
 
-    void on_listWidget_itemChanged(QListWidgetItem *item);
+    void on_pushButton_delAnimation_clicked();
 
 private:
     Ui::MainWindow *ui;
+    QLineEdit *resource;
 };
 #endif // MAINWINDOW_H

+ 837 - 80
mainwindow.ui

@@ -6,98 +6,855 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>869</width>
-    <height>611</height>
+    <width>1200</width>
+    <height>824</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>MainWindow</string>
   </property>
   <widget class="QWidget" name="centralwidget">
-   <widget class="QTabWidget" name="tabWidget">
-    <property name="geometry">
-     <rect>
-      <x>12</x>
-      <y>46</y>
-      <width>491</width>
-      <height>481</height>
-     </rect>
-    </property>
-    <property name="layoutDirection">
-     <enum>Qt::LeftToRight</enum>
-    </property>
-    <property name="tabPosition">
-     <enum>QTabWidget::West</enum>
-    </property>
-    <property name="currentIndex">
-     <number>-1</number>
-    </property>
-    <property name="elideMode">
-     <enum>Qt::ElideRight</enum>
-    </property>
-    <property name="usesScrollButtons">
-     <bool>false</bool>
-    </property>
-    <property name="tabsClosable">
-     <bool>true</bool>
-    </property>
-   </widget>
-   <widget class="QListWidget" name="listWidget">
-    <property name="geometry">
-     <rect>
-      <x>530</x>
-      <y>50</y>
-      <width>131</width>
-      <height>471</height>
-     </rect>
-    </property>
-   </widget>
-   <widget class="QPushButton" name="pushButton_addElem">
-    <property name="geometry">
-     <rect>
-      <x>670</x>
-      <y>400</y>
-      <width>113</width>
-      <height>32</height>
-     </rect>
-    </property>
-    <property name="text">
-     <string>添加</string>
-    </property>
-   </widget>
-   <widget class="QPushButton" name="pushButton_delElem">
-    <property name="geometry">
-     <rect>
-      <x>670</x>
-      <y>450</y>
-      <width>113</width>
-      <height>32</height>
-     </rect>
-    </property>
-    <property name="text">
-     <string>删除</string>
-    </property>
-   </widget>
-   <widget class="QLineEdit" name="lineEdit">
-    <property name="geometry">
-     <rect>
-      <x>690</x>
-      <y>70</y>
-      <width>113</width>
-      <height>21</height>
-     </rect>
-    </property>
-    <property name="text">
-     <string>健康快乐</string>
-    </property>
-   </widget>
+   <layout class="QHBoxLayout" name="horizontalLayout_13">
+    <item>
+     <widget class="QSplitter" name="splitter">
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <widget class="QWidget" name="">
+       <layout class="QVBoxLayout" name="verticalLayout_2">
+        <item>
+         <widget class="QListWidget" name="listWidget_elem"/>
+        </item>
+        <item>
+         <layout class="QHBoxLayout" name="horizontalLayout_12">
+          <item>
+           <widget class="QPushButton" name="pushButton_addElem">
+            <property name="text">
+             <string>添加</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QPushButton" name="pushButton_delElem">
+            <property name="text">
+             <string>删除</string>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+        <item>
+         <widget class="QPushButton" name="pushButton_exportConfig">
+          <property name="text">
+           <string>  导出配置</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </widget>
+      <widget class="QWidget" name="">
+       <layout class="QVBoxLayout" name="verticalLayout_6">
+        <item>
+         <widget class="QLabel" name="label_3">
+          <property name="text">
+           <string>基础属性</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <layout class="QHBoxLayout" name="horizontalLayout_11">
+          <item>
+           <layout class="QHBoxLayout" name="horizontalLayout_7">
+            <item>
+             <layout class="QVBoxLayout" name="verticalLayout">
+              <item>
+               <layout class="QHBoxLayout" name="horizontalLayout">
+                <item>
+                 <widget class="QLabel" name="label_name">
+                  <property name="text">
+                   <string>标识值:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item>
+                 <widget class="QLineEdit" name="lineEdit_name"/>
+                </item>
+               </layout>
+              </item>
+              <item>
+               <layout class="QHBoxLayout" name="horizontalLayout_2">
+                <item>
+                 <widget class="QLabel" name="label_size">
+                  <property name="text">
+                   <string>大小:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item>
+                 <widget class="QLineEdit" name="lineEdit_size"/>
+                </item>
+               </layout>
+              </item>
+              <item>
+               <layout class="QHBoxLayout" name="horizontalLayout_3">
+                <item>
+                 <widget class="QLabel" name="label_maxlayer">
+                  <property name="text">
+                   <string>最大层数:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item>
+                 <widget class="QLineEdit" name="lineEdit_maxlayer"/>
+                </item>
+               </layout>
+              </item>
+              <item>
+               <layout class="QHBoxLayout" name="horizontalLayout_4">
+                <item>
+                 <widget class="QLabel" name="label_score">
+                  <property name="text">
+                   <string>分数:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item>
+                 <widget class="QLineEdit" name="lineEdit_score"/>
+                </item>
+               </layout>
+              </item>
+              <item>
+               <layout class="QHBoxLayout" name="horizontalLayout_5">
+                <item>
+                 <widget class="QLabel" name="label_drop">
+                  <property name="text">
+                   <string>掉落设定:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item>
+                 <widget class="QSpinBox" name="spinBox_drop"/>
+                </item>
+               </layout>
+              </item>
+             </layout>
+            </item>
+            <item>
+             <layout class="QHBoxLayout" name="horizontalLayout_6">
+              <item>
+               <widget class="QLabel" name="label_icon">
+                <property name="text">
+                 <string>图标:</string>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QLabel" name="label_pic">
+                <property name="text">
+                 <string>icon</string>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QPushButton" name="pushButton_chooseFile">
+                <property name="text">
+                 <string>选择文件</string>
+                </property>
+               </widget>
+              </item>
+             </layout>
+            </item>
+           </layout>
+          </item>
+          <item>
+           <spacer name="horizontalSpacer_3">
+            <property name="orientation">
+             <enum>Qt::Horizontal</enum>
+            </property>
+            <property name="sizeHint" stdset="0">
+             <size>
+              <width>148</width>
+              <height>68</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+         </layout>
+        </item>
+        <item>
+         <widget class="QTabWidget" name="tabWidget">
+          <property name="tabShape">
+           <enum>QTabWidget::Triangular</enum>
+          </property>
+          <property name="currentIndex">
+           <number>0</number>
+          </property>
+          <property name="elideMode">
+           <enum>Qt::ElideRight</enum>
+          </property>
+          <widget class="QWidget" name="tab_effect_2">
+           <attribute name="title">
+            <string> 状态与效果动画</string>
+           </attribute>
+           <widget class="QTableWidget" name="tableWidget_animation">
+            <property name="geometry">
+             <rect>
+              <x>20</x>
+              <y>10</y>
+              <width>561</width>
+              <height>281</height>
+             </rect>
+            </property>
+            <property name="rowCount">
+             <number>0</number>
+            </property>
+            <property name="columnCount">
+             <number>4</number>
+            </property>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+           </widget>
+           <widget class="QPushButton" name="pushButton_addAnimation">
+            <property name="geometry">
+             <rect>
+              <x>620</x>
+              <y>80</y>
+              <width>113</width>
+              <height>32</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>添加动画</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_delAnimation">
+            <property name="geometry">
+             <rect>
+              <x>620</x>
+              <y>120</y>
+              <width>113</width>
+              <height>32</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>删除动画</string>
+            </property>
+           </widget>
+          </widget>
+          <widget class="QWidget" name="tab_collection_2">
+           <attribute name="title">
+            <string>收集动画</string>
+           </attribute>
+           <layout class="QHBoxLayout" name="horizontalLayout_22">
+            <item>
+             <widget class="QSplitter" name="splitter_2">
+              <property name="orientation">
+               <enum>Qt::Horizontal</enum>
+              </property>
+              <widget class="QWidget" name="">
+               <layout class="QVBoxLayout" name="verticalLayout_3">
+                <item>
+                 <widget class="QListWidget" name="listWidget_collectAnim"/>
+                </item>
+                <item>
+                 <layout class="QHBoxLayout" name="horizontalLayout_21">
+                  <item>
+                   <widget class="QPushButton" name="pushButton_addCollectAnim">
+                    <property name="text">
+                     <string>添加</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QPushButton" name="pushButton_delCollectAnim">
+                    <property name="text">
+                     <string>删除</string>
+                    </property>
+                   </widget>
+                  </item>
+                 </layout>
+                </item>
+               </layout>
+              </widget>
+              <widget class="QWidget" name="">
+               <layout class="QVBoxLayout" name="verticalLayout_7">
+                <item>
+                 <layout class="QHBoxLayout" name="horizontalLayout_20">
+                  <item>
+                   <widget class="QLabel" name="label_animationType_2">
+                    <property name="text">
+                     <string>动画类型:</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QComboBox" name="comboBox_animationType_2"/>
+                  </item>
+                 </layout>
+                </item>
+                <item>
+                 <layout class="QHBoxLayout" name="horizontalLayout_17">
+                  <item>
+                   <widget class="QLabel" name="label_animation_2">
+                    <property name="text">
+                     <string>动画:</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QComboBox" name="comboBox_animation_2"/>
+                  </item>
+                 </layout>
+                </item>
+                <item>
+                 <layout class="QHBoxLayout" name="horizontalLayout_18">
+                  <item>
+                   <widget class="QLabel" name="label_node_2">
+                    <property name="text">
+                     <string>节点:</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QLineEdit" name="lineEdit_node_2"/>
+                  </item>
+                 </layout>
+                </item>
+                <item>
+                 <layout class="QHBoxLayout" name="horizontalLayout_19">
+                  <item>
+                   <widget class="QLabel" name="label_shadow_2">
+                    <property name="text">
+                     <string>阴影:</string>
+                    </property>
+                   </widget>
+                  </item>
+                  <item>
+                   <widget class="QLineEdit" name="lineEdit_shadow_2"/>
+                  </item>
+                 </layout>
+                </item>
+               </layout>
+              </widget>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+          <widget class="QWidget" name="tab_statusConfiguration_2">
+           <attribute name="title">
+            <string>状态配置</string>
+           </attribute>
+           <widget class="QTableWidget" name="tableWidget_event">
+            <property name="geometry">
+             <rect>
+              <x>190</x>
+              <y>220</y>
+              <width>551</width>
+              <height>101</height>
+             </rect>
+            </property>
+            <property name="rowCount">
+             <number>3</number>
+            </property>
+            <property name="columnCount">
+             <number>6</number>
+            </property>
+            <row/>
+            <row/>
+            <row/>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+           </widget>
+           <widget class="QLabel" name="label_eventConfiguration">
+            <property name="geometry">
+             <rect>
+              <x>190</x>
+              <y>190</y>
+              <width>67</width>
+              <height>16</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>事件配置:</string>
+            </property>
+           </widget>
+           <widget class="QListWidget" name="listWidget_status">
+            <property name="geometry">
+             <rect>
+              <x>10</x>
+              <y>20</y>
+              <width>101</width>
+              <height>301</height>
+             </rect>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_addStatus">
+            <property name="geometry">
+             <rect>
+              <x>0</x>
+              <y>330</y>
+              <width>81</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>添加</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_delStatus">
+            <property name="geometry">
+             <rect>
+              <x>80</x>
+              <y>330</y>
+              <width>81</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>删除</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_genTemp">
+            <property name="geometry">
+             <rect>
+              <x>30</x>
+              <y>360</y>
+              <width>113</width>
+              <height>32</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>生成模板</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_addEvent">
+            <property name="geometry">
+             <rect>
+              <x>180</x>
+              <y>330</y>
+              <width>113</width>
+              <height>32</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>添加事件</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_delEvent">
+            <property name="geometry">
+             <rect>
+              <x>290</x>
+              <y>330</y>
+              <width>113</width>
+              <height>32</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>删除事件</string>
+            </property>
+           </widget>
+           <widget class="QWidget" name="">
+            <property name="geometry">
+             <rect>
+              <x>190</x>
+              <y>20</y>
+              <width>571</width>
+              <height>171</height>
+             </rect>
+            </property>
+            <layout class="QVBoxLayout" name="verticalLayout_5">
+             <item>
+              <layout class="QHBoxLayout" name="horizontalLayout_25">
+               <item>
+                <widget class="QLabel" name="label_initialAnimation">
+                 <property name="text">
+                  <string>初始化动画:</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <widget class="QComboBox" name="comboBox"/>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_7">
+                 <property name="orientation">
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                 <property name="sizeHint" stdset="0">
+                  <size>
+                   <width>298</width>
+                   <height>18</height>
+                  </size>
+                 </property>
+                </spacer>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <layout class="QHBoxLayout" name="horizontalLayout_23">
+               <item>
+                <widget class="QLabel" name="label_clickAnimation">
+                 <property name="text">
+                  <string>点击动画:</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <widget class="QComboBox" name="comboBox_2"/>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_4">
+                 <property name="orientation">
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                 <property name="sizeHint" stdset="0">
+                  <size>
+                   <width>298</width>
+                   <height>18</height>
+                  </size>
+                 </property>
+                </spacer>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <layout class="QHBoxLayout" name="horizontalLayout_24">
+               <item>
+                <widget class="QCheckBox" name="checkBox_multiHit">
+                 <property name="text">
+                  <string>支持多重打击</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_5">
+                 <property name="orientation">
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                 <property name="sizeHint" stdset="0">
+                  <size>
+                   <width>88</width>
+                   <height>20</height>
+                  </size>
+                 </property>
+                </spacer>
+               </item>
+               <item>
+                <widget class="QCheckBox" name="checkBox_dropable">
+                 <property name="text">
+                  <string>可掉落</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_6">
+                 <property name="orientation">
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                 <property name="sizeHint" stdset="0">
+                  <size>
+                   <width>138</width>
+                   <height>28</height>
+                  </size>
+                 </property>
+                </spacer>
+               </item>
+              </layout>
+             </item>
+             <item>
+              <layout class="QHBoxLayout" name="horizontalLayout_26">
+               <item>
+                <widget class="QCheckBox" name="checkBox_needCollect">
+                 <property name="text">
+                  <string>是否需要收集</string>
+                 </property>
+                </widget>
+               </item>
+               <item>
+                <spacer name="horizontalSpacer_8">
+                 <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>
+                <layout class="QHBoxLayout" name="horizontalLayout_27">
+                 <item>
+                  <widget class="QLabel" name="label_cellectionType">
+                   <property name="text">
+                    <string>收集的目标类型:</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item>
+                  <widget class="QLineEdit" name="lineEdit_collectionType"/>
+                 </item>
+                </layout>
+               </item>
+               <item>
+                <layout class="QHBoxLayout" name="horizontalLayout_28">
+                 <item>
+                  <widget class="QLabel" name="label_collectAnimation">
+                   <property name="text">
+                    <string>收集动画:</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item>
+                  <widget class="QComboBox" name="comboBox_collectAnimation"/>
+                 </item>
+                </layout>
+               </item>
+              </layout>
+             </item>
+            </layout>
+           </widget>
+          </widget>
+          <widget class="QWidget" name="tab_container_2">
+           <attribute name="title">
+            <string>容器</string>
+           </attribute>
+           <widget class="QTableWidget" name="tableWidget_container">
+            <property name="geometry">
+             <rect>
+              <x>10</x>
+              <y>310</y>
+              <width>256</width>
+              <height>192</height>
+             </rect>
+            </property>
+           </widget>
+           <widget class="QListWidget" name="listWidget_pool">
+            <property name="geometry">
+             <rect>
+              <x>20</x>
+              <y>40</y>
+              <width>151</width>
+              <height>191</height>
+             </rect>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_addContainer">
+            <property name="geometry">
+             <rect>
+              <x>10</x>
+              <y>240</y>
+              <width>91</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>添加</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_delContainer">
+            <property name="geometry">
+             <rect>
+              <x>100</x>
+              <y>240</y>
+              <width>91</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>删除</string>
+            </property>
+           </widget>
+           <widget class="QTableWidget" name="tableWidget_containerPool">
+            <property name="geometry">
+             <rect>
+              <x>222</x>
+              <y>64</y>
+              <width>256</width>
+              <height>192</height>
+             </rect>
+            </property>
+            <property name="rowCount">
+             <number>2</number>
+            </property>
+            <property name="columnCount">
+             <number>7</number>
+            </property>
+            <row/>
+            <row/>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+            <column/>
+           </widget>
+           <widget class="QWidget" name="layoutWidget_10">
+            <property name="geometry">
+             <rect>
+              <x>210</x>
+              <y>10</y>
+              <width>212</width>
+              <height>32</height>
+             </rect>
+            </property>
+            <layout class="QHBoxLayout" name="horizontalLayout_29">
+             <item>
+              <widget class="QLabel" name="label_containerType">
+               <property name="text">
+                <string>容器类型:</string>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QComboBox" name="comboBox_container"/>
+             </item>
+             <item>
+              <spacer name="horizontalSpacer_9">
+               <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="QPushButton" name="pushButton_delKey">
+            <property name="geometry">
+             <rect>
+              <x>550</x>
+              <y>130</y>
+              <width>91</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>删除</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_addKey">
+            <property name="geometry">
+             <rect>
+              <x>550</x>
+              <y>80</y>
+              <width>91</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>添加</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_addChildElem">
+            <property name="geometry">
+             <rect>
+              <x>290</x>
+              <y>320</y>
+              <width>91</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>添加</string>
+            </property>
+           </widget>
+           <widget class="QPushButton" name="pushButton_del">
+            <property name="geometry">
+             <rect>
+              <x>290</x>
+              <y>370</y>
+              <width>91</width>
+              <height>31</height>
+             </rect>
+            </property>
+            <property name="text">
+             <string>删除</string>
+            </property>
+           </widget>
+           <widget class="QWidget" name="">
+            <layout class="QHBoxLayout" name="horizontalLayout_9">
+             <item>
+              <widget class="QLabel" name="label">
+               <property name="text">
+                <string>容器池:</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>
+            </layout>
+           </widget>
+           <widget class="QWidget" name="">
+            <property name="geometry">
+             <rect>
+              <x>10</x>
+              <y>280</y>
+              <width>103</width>
+              <height>22</height>
+             </rect>
+            </property>
+            <layout class="QHBoxLayout" name="horizontalLayout_10">
+             <item>
+              <widget class="QLabel" name="label_2">
+               <property name="text">
+                <string>子元素:</string>
+               </property>
+              </widget>
+             </item>
+             <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>
+            </layout>
+           </widget>
+          </widget>
+         </widget>
+        </item>
+       </layout>
+      </widget>
+     </widget>
+    </item>
+   </layout>
   </widget>
   <widget class="QMenuBar" name="menubar">
    <property name="geometry">
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>869</width>
+     <width>1200</width>
      <height>24</height>
     </rect>
    </property>

+ 53 - 0
resfiledialog.cpp

@@ -0,0 +1,53 @@
+#include "resfiledialog.h"
+#include "ui_resfiledialog.h"
+#include <QDragEnterEvent>
+#include <QMimeData>
+#include <QUrl>
+
+ResFileDialog::ResFileDialog(QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::ResFileDialog)
+{
+    ui->setupUi(this);
+    QPixmap pix("/Users/menglanluo/pic.png");
+    ui->label_newFile->setPixmap(pix.scaled(100,100,Qt::KeepAspectRatio));
+    this->setAcceptDrops(true);
+    ui->label_newFile->setAcceptDrops(false);
+}
+
+ResFileDialog::~ResFileDialog()
+{
+    delete ui;
+}
+
+void ResFileDialog::dragEnterEvent(QDragEnterEvent *event)
+{
+    if(event->mimeData()->hasUrls()){
+        event->acceptProposedAction();
+    }
+    else{
+        event->ignore();
+    }
+}
+void ResFileDialog::dropEvent(QDropEvent *event)
+{
+    const QMimeData *mimeData = event->mimeData();
+    if(mimeData->hasUrls()){
+        QList<QUrl> urls = mimeData->urls();
+        QString urlName = urls.at(0).toLocalFile();
+        QString fileName = urlName;
+        //TODO: 去除路径显示
+        ui->label_newFile->setText(fileName);
+    }
+}
+
+void ResFileDialog::on_buttonBox_accepted()
+{
+    res = ui->label_newFile->text();
+}
+
+QString ResFileDialog::getResName()
+{
+    return res;
+}
+

+ 31 - 0
resfiledialog.h

@@ -0,0 +1,31 @@
+#ifndef RESFILEDIALOG_H
+#define RESFILEDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+class ResFileDialog;
+}
+
+class ResFileDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit ResFileDialog(QWidget *parent = nullptr);
+    ~ResFileDialog();
+    QString getResName();
+
+protected:
+    void dragEnterEvent(QDragEnterEvent *event);
+    void dropEvent(QDropEvent *event);
+
+private slots:
+    void on_buttonBox_accepted();
+
+private:
+    Ui::ResFileDialog *ui;
+    QString res;
+};
+
+#endif // RESFILEDIALOG_H

+ 94 - 0
resfiledialog.ui

@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ResFileDialog</class>
+ <widget class="QDialog" name="ResFileDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <widget class="QDialogButtonBox" name="buttonBox">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>240</y>
+     <width>341</width>
+     <height>32</height>
+    </rect>
+   </property>
+   <property name="orientation">
+    <enum>Qt::Horizontal</enum>
+   </property>
+   <property name="standardButtons">
+    <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label">
+   <property name="geometry">
+    <rect>
+     <x>40</x>
+     <y>50</y>
+     <width>131</width>
+     <height>16</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>修改资源文件为:</string>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label_newFile">
+   <property name="geometry">
+    <rect>
+     <x>150</x>
+     <y>80</y>
+     <width>141</width>
+     <height>111</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>TextLabel</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>ResFileDialog</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>ResFileDialog</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>

+ 175 - 165
statusconfiguration.ui

@@ -13,171 +13,181 @@
   <property name="windowTitle">
    <string>Form</string>
   </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_3">
-     <item>
-      <widget class="QLabel" name="label_initialAnimation">
-       <property name="text">
-        <string>初始化动画:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QComboBox" name="comboBox"/>
-     </item>
-     <item>
-      <spacer name="horizontalSpacer_2">
-       <property name="orientation">
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <property name="sizeHint" stdset="0">
-        <size>
-         <width>298</width>
-         <height>18</height>
-        </size>
-       </property>
-      </spacer>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_4">
-     <item>
-      <widget class="QLabel" name="label_clickAnimation">
-       <property name="text">
-        <string>点击动画:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QComboBox" name="comboBox_2"/>
-     </item>
-     <item>
-      <spacer name="horizontalSpacer_3">
-       <property name="orientation">
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <property name="sizeHint" stdset="0">
-        <size>
-         <width>298</width>
-         <height>18</height>
-        </size>
-       </property>
-      </spacer>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_5">
-     <item>
-      <widget class="QCheckBox" name="checkBox_multiHit">
-       <property name="text">
-        <string>支持多重打击</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <spacer name="horizontalSpacer_4">
-       <property name="orientation">
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <property name="sizeHint" stdset="0">
-        <size>
-         <width>88</width>
-         <height>20</height>
-        </size>
-       </property>
-      </spacer>
-     </item>
-     <item>
-      <widget class="QCheckBox" name="checkBox_dropable">
-       <property name="text">
-        <string>可掉落</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <spacer name="horizontalSpacer">
-       <property name="orientation">
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <property name="sizeHint" stdset="0">
-        <size>
-         <width>138</width>
-         <height>28</height>
-        </size>
-       </property>
-      </spacer>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_6">
-     <item>
-      <widget class="QCheckBox" name="checkBox_needCollect">
-       <property name="text">
-        <string>是否需要收集</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <layout class="QHBoxLayout" name="horizontalLayout">
-       <item>
-        <widget class="QLabel" name="label_cellectionType">
-         <property name="text">
-          <string>收集的目标类型:</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QLineEdit" name="lineEdit_collectionType"/>
-       </item>
-      </layout>
-     </item>
-     <item>
-      <layout class="QHBoxLayout" name="horizontalLayout_2">
-       <item>
-        <widget class="QLabel" name="label_collectAnimation">
-         <property name="text">
-          <string>收集动画:</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QComboBox" name="comboBox_collectAnimation"/>
-       </item>
-      </layout>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <widget class="QLabel" name="label_eventConfiguration">
-     <property name="text">
-      <string>事件配置:</string>
-     </property>
-    </widget>
-   </item>
-   <item>
-    <widget class="QTableWidget" name="tableWidget_event">
-     <property name="rowCount">
-      <number>3</number>
-     </property>
-     <property name="columnCount">
-      <number>6</number>
-     </property>
-     <row/>
-     <row/>
-     <row/>
-     <column/>
-     <column/>
-     <column/>
-     <column/>
-     <column/>
-     <column/>
-    </widget>
-   </item>
-  </layout>
+  <widget class="QLabel" name="label_eventConfiguration">
+   <property name="geometry">
+    <rect>
+     <x>12</x>
+     <y>190</y>
+     <width>67</width>
+     <height>16</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>事件配置:</string>
+   </property>
+  </widget>
+  <widget class="QTableWidget" name="tableWidget_event">
+   <property name="geometry">
+    <rect>
+     <x>12</x>
+     <y>214</y>
+     <width>256</width>
+     <height>192</height>
+    </rect>
+   </property>
+   <property name="rowCount">
+    <number>3</number>
+   </property>
+   <property name="columnCount">
+    <number>6</number>
+   </property>
+   <row/>
+   <row/>
+   <row/>
+   <column/>
+   <column/>
+   <column/>
+   <column/>
+   <column/>
+   <column/>
+  </widget>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout_3">
+    <item>
+     <widget class="QLabel" name="label_initialAnimation">
+      <property name="text">
+       <string>初始化动画:</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <widget class="QComboBox" name="comboBox"/>
+    </item>
+    <item>
+     <spacer name="horizontalSpacer_2">
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="sizeHint" stdset="0">
+       <size>
+        <width>298</width>
+        <height>18</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout_4">
+    <item>
+     <widget class="QLabel" name="label_clickAnimation">
+      <property name="text">
+       <string>点击动画:</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <widget class="QComboBox" name="comboBox_2"/>
+    </item>
+    <item>
+     <spacer name="horizontalSpacer_3">
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="sizeHint" stdset="0">
+       <size>
+        <width>298</width>
+        <height>18</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout_5">
+    <item>
+     <widget class="QCheckBox" name="checkBox_multiHit">
+      <property name="text">
+       <string>支持多重打击</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <spacer name="horizontalSpacer_4">
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="sizeHint" stdset="0">
+       <size>
+        <width>88</width>
+        <height>20</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+    <item>
+     <widget class="QCheckBox" name="checkBox_dropable">
+      <property name="text">
+       <string>可掉落</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <spacer name="horizontalSpacer">
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="sizeHint" stdset="0">
+       <size>
+        <width>138</width>
+        <height>28</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QWidget" name="">
+   <layout class="QHBoxLayout" name="horizontalLayout_6">
+    <item>
+     <widget class="QCheckBox" name="checkBox_needCollect">
+      <property name="text">
+       <string>是否需要收集</string>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <layout class="QHBoxLayout" name="horizontalLayout">
+      <item>
+       <widget class="QLabel" name="label_cellectionType">
+        <property name="text">
+         <string>收集的目标类型:</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QLineEdit" name="lineEdit_collectionType"/>
+      </item>
+     </layout>
+    </item>
+    <item>
+     <layout class="QHBoxLayout" name="horizontalLayout_2">
+      <item>
+       <widget class="QLabel" name="label_collectAnimation">
+        <property name="text">
+         <string>收集动画:</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QComboBox" name="comboBox_collectAnimation"/>
+      </item>
+     </layout>
+    </item>
+   </layout>
+  </widget>
  </widget>
  <resources/>
  <connections/>