summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-08 22:11:24 +0100
committerSky <git@bunnies.cc>2013-10-08 22:11:24 +0100
commitbf951c3eb82f90a83e5496b6a897f95f585aff89 (patch)
treeeb6099ab92ee79f607e6e47382294dc03a56f0eb /gui
parentf2291ef161c6ae2d47ede15633626ab1e8caab86 (diff)
downloadMultiMC-bf951c3eb82f90a83e5496b6a897f95f585aff89.tar
MultiMC-bf951c3eb82f90a83e5496b6a897f95f585aff89.tar.gz
MultiMC-bf951c3eb82f90a83e5496b6a897f95f585aff89.tar.lz
MultiMC-bf951c3eb82f90a83e5496b6a897f95f585aff89.tar.xz
MultiMC-bf951c3eb82f90a83e5496b6a897f95f585aff89.zip
Licenses, cleanup
Diffstat (limited to 'gui')
-rw-r--r--gui/LegacyModEditDialog.cpp32
-rw-r--r--gui/LegacyModEditDialog.h6
-rw-r--r--gui/MCModInfoFrame.cpp15
-rw-r--r--gui/MCModInfoFrame.h20
-rw-r--r--gui/MCModInfoFrame.ui48
5 files changed, 55 insertions, 66 deletions
diff --git a/gui/LegacyModEditDialog.cpp b/gui/LegacyModEditDialog.cpp
index 72792581..585bfdfb 100644
--- a/gui/LegacyModEditDialog.cpp
+++ b/gui/LegacyModEditDialog.cpp
@@ -345,38 +345,6 @@ void LegacyModEditDialog::on_buttonBox_rejected()
close();
}
-//FIXME: too much copypasta makes peterix a sad hacker. BUT IT'S SO DELICIOUS!
-
-void LegacyModEditDialog::on_coreWebsite_clicked()
-{
- int first, last;
- auto list = ui->coreModsTreeView->selectionModel()->selectedRows();
-
- if (!lastfirst(list, first, last))
- return;
- showWebsiteForMod(this, m_coremods->operator[](first));
-}
-
-void LegacyModEditDialog::on_jarWebsite_clicked()
-{
- int first, last;
- auto list = ui->jarModsTreeView->selectionModel()->selectedRows();
-
- if (!lastfirst(list, first, last))
- return;
- showWebsiteForMod(this, m_jarmods->operator[](first));
-}
-
-void LegacyModEditDialog::on_loaderWebsite_clicked()
-{
- int first, last;
- auto list = ui->loaderModTreeView->selectionModel()->selectedRows();
-
- if (!lastfirst(list, first, last))
- return;
- showWebsiteForMod(this, m_mods->operator[](first));
-}
-
void LegacyModEditDialog::on_jarModsTreeView_pressed(const QModelIndex &index)
{
int first, last;
diff --git a/gui/LegacyModEditDialog.h b/gui/LegacyModEditDialog.h
index fcf07f1c..b5d51fd5 100644
--- a/gui/LegacyModEditDialog.h
+++ b/gui/LegacyModEditDialog.h
@@ -53,17 +53,11 @@ slots:
void on_rmTexPackBtn_clicked();
void on_viewTexPackBtn_clicked();
- void on_jarWebsite_clicked();
- void on_loaderWebsite_clicked();
- void on_coreWebsite_clicked();
-
// Questionable: SettingsDialog doesn't need this for some reason?
void on_buttonBox_rejected();
void on_jarModsTreeView_pressed(const QModelIndex &index);
-
void on_coreModsTreeView_pressed(const QModelIndex &index);
-
void on_loaderModTreeView_pressed(const QModelIndex &index);
protected:
diff --git a/gui/MCModInfoFrame.cpp b/gui/MCModInfoFrame.cpp
index 805af56b..e7e669ec 100644
--- a/gui/MCModInfoFrame.cpp
+++ b/gui/MCModInfoFrame.cpp
@@ -1,3 +1,18 @@
+/* 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 "MCModInfoFrame.h"
#include "ui_MCModInfoFrame.h"
diff --git a/gui/MCModInfoFrame.h b/gui/MCModInfoFrame.h
index 7910bd0c..516fc5ed 100644
--- a/gui/MCModInfoFrame.h
+++ b/gui/MCModInfoFrame.h
@@ -1,5 +1,19 @@
-#ifndef MCMODINFOFRAME_H
-#define MCMODINFOFRAME_H
+/* 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.
+ */
+
+#pragma once
#include <QFrame>
#include "logic/Mod.h"
@@ -28,5 +42,3 @@ private:
};
void handleModInfoUpdate(Mod &m, MCModInfoFrame *frame);
-
-#endif // MCMODINFOFRAME_H
diff --git a/gui/MCModInfoFrame.ui b/gui/MCModInfoFrame.ui
index 022588d5..73b93a2e 100644
--- a/gui/MCModInfoFrame.ui
+++ b/gui/MCModInfoFrame.ui
@@ -144,6 +144,16 @@
<property name="labelAlignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
+ <item row="0" column="0">
+ <widget class="QLabel" name="label_2">
+ <property name="text">
+ <string>Authors:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ </property>
+ </widget>
+ </item>
<item row="0" column="1">
<widget class="QLabel" name="label_Authors">
<property name="minimumSize">
@@ -169,18 +179,18 @@
</property>
</widget>
</item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_3">
+ <item row="2" column="0">
+ <widget class="QLabel" name="label_4">
<property name="text">
- <string>Credits:</string>
+ <string>Website:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QLabel" name="label_Credits">
+ <item row="2" column="1">
+ <widget class="QLabel" name="label_Website">
<property name="minimumSize">
<size>
<width>200</width>
@@ -194,7 +204,7 @@
</size>
</property>
<property name="text">
- <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic; color:#4a4a4a;&quot;&gt;Mod credits&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic; color:#4a4a4a;&quot;&gt;Mod website&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
@@ -202,20 +212,13 @@
<property name="wordWrap">
<bool>true</bool>
</property>
- </widget>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="label_4">
- <property name="text">
- <string>Website:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ <property name="openExternalLinks">
+ <bool>true</bool>
</property>
</widget>
</item>
- <item row="2" column="1">
- <widget class="QLabel" name="label_Website">
+ <item row="1" column="1">
+ <widget class="QLabel" name="label_Credits">
<property name="minimumSize">
<size>
<width>200</width>
@@ -229,7 +232,7 @@
</size>
</property>
<property name="text">
- <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic; color:#4a4a4a;&quot;&gt;Mod website&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic; color:#4a4a4a;&quot;&gt;Mod credits&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
@@ -237,15 +240,12 @@
<property name="wordWrap">
<bool>true</bool>
</property>
- <property name="openExternalLinks">
- <bool>true</bool>
- </property>
</widget>
</item>
- <item row="0" column="0">
- <widget class="QLabel" name="label_2">
+ <item row="1" column="0">
+ <widget class="QLabel" name="label_3">
<property name="text">
- <string>Authors:</string>
+ <string>Credits:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>