summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-01-15 19:04:10 -0600
committerAndrew <forkk@forkk.net>2013-01-15 19:04:10 -0600
commitb371ee1de22be6d846aa53ae5574555ca012f1c3 (patch)
treeb1680d7a201d6c0108136b718a275b5f9ba0f2c2
parentf7e9a7523fdd8c9e2aaaf59f36fc4a702690b760 (diff)
downloadMultiMC-b371ee1de22be6d846aa53ae5574555ca012f1c3.tar
MultiMC-b371ee1de22be6d846aa53ae5574555ca012f1c3.tar.gz
MultiMC-b371ee1de22be6d846aa53ae5574555ca012f1c3.tar.lz
MultiMC-b371ee1de22be6d846aa53ae5574555ca012f1c3.tar.xz
MultiMC-b371ee1de22be6d846aa53ae5574555ca012f1c3.zip
Added mod edit window.
-rw-r--r--MultiMC.pro9
-rw-r--r--MultiMC.pro.user2
-rw-r--r--gui/modeditwindow.cpp29
-rw-r--r--gui/modeditwindow.h37
-rw-r--r--gui/modeditwindow.ui241
5 files changed, 314 insertions, 4 deletions
diff --git a/MultiMC.pro b/MultiMC.pro
index 34d297c0..0ca6daee 100644
--- a/MultiMC.pro
+++ b/MultiMC.pro
@@ -19,7 +19,8 @@ SOURCES += main.cpp\
data/instancelist.cpp \
data/stdinstance.cpp \
data/inifile.cpp \
- gui/settingsdialog.cpp
+ gui/settingsdialog.cpp \
+ gui/modeditwindow.cpp
HEADERS += gui/mainwindow.h \
data/instancebase.h \
@@ -27,10 +28,12 @@ HEADERS += gui/mainwindow.h \
data/instancelist.h \
data/stdinstance.h \
data/inifile.h \
- gui/settingsdialog.h
+ gui/settingsdialog.h \
+ gui/modeditwindow.h
FORMS += gui/mainwindow.ui \
- gui/settingsdialog.ui
+ gui/settingsdialog.ui \
+ gui/modeditwindow.ui
RESOURCES += \
multimc.qrc
diff --git a/MultiMC.pro.user b/MultiMC.pro.user
index 84f78217..21852a10 100644
--- a/MultiMC.pro.user
+++ b/MultiMC.pro.user
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.6.1, 2013-01-15T16:57:52. -->
+<!-- Written by Qt Creator 2.6.1, 2013-01-15T19:01:37. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
diff --git a/gui/modeditwindow.cpp b/gui/modeditwindow.cpp
new file mode 100644
index 00000000..e457252a
--- /dev/null
+++ b/gui/modeditwindow.cpp
@@ -0,0 +1,29 @@
+/* Copyright 2013 MultiMC Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "modeditwindow.h"
+#include "ui_modeditwindow.h"
+
+ModEditWindow::ModEditWindow(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::ModEditWindow)
+{
+ ui->setupUi(this);
+}
+
+ModEditWindow::~ModEditWindow()
+{
+ delete ui;
+}
diff --git a/gui/modeditwindow.h b/gui/modeditwindow.h
new file mode 100644
index 00000000..c669e0b1
--- /dev/null
+++ b/gui/modeditwindow.h
@@ -0,0 +1,37 @@
+/* Copyright 2013 MultiMC Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef MODEDITWINDOW_H
+#define MODEDITWINDOW_H
+
+#include <QDialog>
+
+namespace Ui {
+class ModEditWindow;
+}
+
+class ModEditWindow : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit ModEditWindow(QWidget *parent = 0);
+ ~ModEditWindow();
+
+private:
+ Ui::ModEditWindow *ui;
+};
+
+#endif // MODEDITWINDOW_H
diff --git a/gui/modeditwindow.ui b/gui/modeditwindow.ui
new file mode 100644
index 00000000..c35c35d1
--- /dev/null
+++ b/gui/modeditwindow.ui
@@ -0,0 +1,241 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ModEditWindow</class>
+ <widget class="QDialog" name="ModEditWindow">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>540</width>
+ <height>420</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Dialog</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QTabWidget" name="tabWidget">
+ <property name="currentIndex">
+ <number>0</number>
+ </property>
+ <widget class="QWidget" name="jarModsTab">
+ <attribute name="title">
+ <string>Jar Mods</string>
+ </attribute>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QListView" name="jarModsListView"/>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="jarModsButtonBox">
+ <item>
+ <widget class="QPushButton" name="addJarModButton">
+ <property name="text">
+ <string>&amp;Add</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="delJarModButton">
+ <property name="text">
+ <string>&amp;Remove</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="mcforgeButton">
+ <property name="text">
+ <string>MCForge</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="jarModsButtonSpacer">
+ <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>
+ <widget class="QPushButton" name="jarModMoveUpButton">
+ <property name="text">
+ <string>Move &amp;Up</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="jarModMoveDownButton">
+ <property name="text">
+ <string>Move &amp;Down</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QWidget" name="mlModsTab">
+ <attribute name="title">
+ <string>Mods</string>
+ </attribute>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QListView" name="mlModListView"/>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="mlModsButtonBox">
+ <item>
+ <widget class="QPushButton" name="addMlModButton">
+ <property name="text">
+ <string>&amp;Add</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="delMlModButton">
+ <property name="text">
+ <string>&amp;Remove</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="mlModsButtonSpacer">
+ <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>
+ <widget class="QPushButton" name="viewMlModFolderButton">
+ <property name="text">
+ <string>&amp;View Folder</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QWidget" name="coreModsTab">
+ <attribute name="title">
+ <string>Core Mods</string>
+ </attribute>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <widget class="QListView" name="coreModsListView"/>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="coreModsButtonBox">
+ <item>
+ <widget class="QPushButton" name="addCoreModButton">
+ <property name="text">
+ <string>&amp;Add</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="delCoreModButton">
+ <property name="text">
+ <string>&amp;Remove</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="coreModsButtonSpacer">
+ <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>
+ <widget class="QPushButton" name="viewCoreModFolderButton">
+ <property name="text">
+ <string>&amp;View Folder</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QWidget" name="texturePacksTab">
+ <attribute name="title">
+ <string>Texture Packs</string>
+ </attribute>
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
+ <item>
+ <widget class="QListView" name="texturePackListView"/>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="texturePacksButtonBox">
+ <item>
+ <widget class="QPushButton" name="addTPackButton">
+ <property name="text">
+ <string>&amp;Add</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="delTPackButton">
+ <property name="text">
+ <string>&amp;Remove</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="texturePacksButtonSpacer">
+ <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>
+ <widget class="QPushButton" name="viewTPackFolderButton">
+ <property name="text">
+ <string>&amp;View Folder</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Close</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>