Start work on missions/trainings editor
authorunc0rr
Wed, 21 Oct 2009 16:40:55 +0000
changeset 2572 af96861683f8
parent 2571 349b4c586ef5
child 2573 a7db29d7e2d0
Start work on missions/trainings editor
tools/MissionsEditor/MissionsEditor.pro
tools/MissionsEditor/editor.cpp
tools/MissionsEditor/editor.h
tools/MissionsEditor/editor.ui
tools/MissionsEditor/main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/MissionsEditor/MissionsEditor.pro	Wed Oct 21 16:40:55 2009 +0000
@@ -0,0 +1,16 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2009-10-21T19:51:57
+#
+#-------------------------------------------------
+
+TARGET = MissionsEditor
+TEMPLATE = app
+
+
+SOURCES += main.cpp\
+        editor.cpp
+
+HEADERS  += editor.h
+
+FORMS    += editor.ui
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/MissionsEditor/editor.cpp	Wed Oct 21 16:40:55 2009 +0000
@@ -0,0 +1,13 @@
+#include "editor.h"
+#include "ui_editor.h"
+
+editor::editor(QWidget *parent)
+    : QMainWindow(parent), ui(new Ui::editor)
+{
+    ui->setupUi(this);
+}
+
+editor::~editor()
+{
+    delete ui;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/MissionsEditor/editor.h	Wed Oct 21 16:40:55 2009 +0000
@@ -0,0 +1,23 @@
+#ifndef EDITOR_H
+#define EDITOR_H
+
+#include <QtGui/QMainWindow>
+
+namespace Ui
+{
+    class editor;
+}
+
+class editor : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    editor(QWidget *parent = 0);
+    ~editor();
+
+private:
+    Ui::editor *ui;
+};
+
+#endif // EDITOR_H
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/MissionsEditor/editor.ui	Wed Oct 21 16:40:55 2009 +0000
@@ -0,0 +1,284 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>editor</class>
+ <widget class="QMainWindow" name="editor">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>601</width>
+    <height>526</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>editor</string>
+  </property>
+  <widget class="QWidget" name="centralWidget">
+   <layout class="QGridLayout" name="gridLayout">
+    <item row="0" column="0">
+     <widget class="QTabWidget" name="tabWidget">
+      <property name="currentIndex">
+       <number>0</number>
+      </property>
+      <widget class="QWidget" name="tab">
+       <attribute name="title">
+        <string>Options</string>
+       </attribute>
+       <layout class="QHBoxLayout" name="horizontalLayout">
+        <item>
+         <layout class="QVBoxLayout" name="verticalLayout">
+          <item>
+           <widget class="QCheckBox" name="cbInvulnerable">
+            <property name="text">
+             <string>Invulnerable</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbArtillery">
+            <property name="text">
+             <string>Artillery</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbSolidLand">
+            <property name="text">
+             <string>SolidLand</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbVampiric">
+            <property name="text">
+             <string>Vampiric</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbOneClanMode">
+            <property name="text">
+             <string>OneClanMode</string>
+            </property>
+            <property name="checked">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbKarma">
+            <property name="text">
+             <string>Karma</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbLaserSight">
+            <property name="text">
+             <string>LaserSight</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbBorder">
+            <property name="text">
+             <string>Border</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbLowGravity">
+            <property name="text">
+             <string>LowGravity</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbMines">
+            <property name="text">
+             <string>Mines</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbDivideTeams">
+            <property name="text">
+             <string>DivideTeams</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbMultiWeapon">
+            <property name="text">
+             <string>MultiWeapon</string>
+            </property>
+            <property name="checked">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QCheckBox" name="cbForts">
+            <property name="text">
+             <string>Forts</string>
+            </property>
+           </widget>
+          </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>
+        </item>
+        <item>
+         <layout class="QGridLayout" name="gridLayout_2">
+          <item row="0" column="0">
+           <widget class="QLabel" name="labelSeed">
+            <property name="text">
+             <string>Seed</string>
+            </property>
+           </widget>
+          </item>
+          <item row="0" column="1">
+           <widget class="QLineEdit" name="leSeed">
+            <property name="text">
+             <string>foobar</string>
+            </property>
+           </widget>
+          </item>
+          <item row="1" column="0">
+           <widget class="QLabel" name="label">
+            <property name="text">
+             <string>Damage Modifier</string>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="0">
+           <widget class="QLabel" name="label_2">
+            <property name="text">
+             <string>Turn Time</string>
+            </property>
+           </widget>
+          </item>
+          <item row="3" column="0">
+           <widget class="QLabel" name="label_3">
+            <property name="text">
+             <string>Crate Drops</string>
+            </property>
+           </widget>
+          </item>
+          <item row="4" column="0">
+           <spacer name="verticalSpacer_2">
+            <property name="orientation">
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeHint" stdset="0">
+             <size>
+              <width>20</width>
+              <height>40</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+          <item row="1" column="1">
+           <widget class="QSpinBox" name="sbDamageModifier">
+            <property name="minimum">
+             <number>10</number>
+            </property>
+            <property name="maximum">
+             <number>300</number>
+            </property>
+            <property name="singleStep">
+             <number>15</number>
+            </property>
+            <property name="value">
+             <number>100</number>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="1">
+           <widget class="QSpinBox" name="sbTurnTime">
+            <property name="minimum">
+             <number>1000</number>
+            </property>
+            <property name="maximum">
+             <number>100000</number>
+            </property>
+            <property name="singleStep">
+             <number>5000</number>
+            </property>
+            <property name="value">
+             <number>45000</number>
+            </property>
+           </widget>
+          </item>
+          <item row="3" column="1">
+           <widget class="QSpinBox" name="sbCrateDrops">
+            <property name="maximum">
+             <number>3</number>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+       </layout>
+      </widget>
+      <widget class="QWidget" name="tab_2">
+       <attribute name="title">
+        <string>Triggers</string>
+       </attribute>
+      </widget>
+     </widget>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QMenuBar" name="menuBar">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>601</width>
+     <height>28</height>
+    </rect>
+   </property>
+   <widget class="QMenu" name="menuFile">
+    <property name="title">
+     <string>&amp;File</string>
+    </property>
+    <addaction name="action_Load"/>
+    <addaction name="action_Save"/>
+    <addaction name="separator"/>
+    <addaction name="action_Quit"/>
+   </widget>
+   <addaction name="menuFile"/>
+  </widget>
+  <widget class="QStatusBar" name="statusBar"/>
+  <action name="action_Load">
+   <property name="text">
+    <string>&amp;Load...</string>
+   </property>
+  </action>
+  <action name="action_Save">
+   <property name="text">
+    <string>&amp;Save</string>
+   </property>
+  </action>
+  <action name="action_Quit">
+   <property name="text">
+    <string>&amp;Quit</string>
+   </property>
+  </action>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <resources/>
+ <connections/>
+</ui>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/MissionsEditor/main.cpp	Wed Oct 21 16:40:55 2009 +0000
@@ -0,0 +1,10 @@
+#include <QtGui/QApplication>
+#include "editor.h"
+
+int main(int argc, char *argv[])
+{
+    QApplication a(argc, argv);
+    editor w;
+    w.show();
+    return a.exec();
+}