summaryrefslogtreecommitdiffstats
path: root/gui/OneSixModEditDialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-18 00:00:35 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-18 00:00:35 +0200
commitb979d0ce5da515793a02802a6421ef607a498323 (patch)
tree1431d15e7a3e89e87708564a5be9fea05a5647ab /gui/OneSixModEditDialog.cpp
parentd38b90530b3ba3a49c4eb072eb344ae2b0836913 (diff)
downloadMultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar.gz
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar.lz
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.tar.xz
MultiMC-b979d0ce5da515793a02802a6421ef607a498323.zip
Implement legacy forge button!
Many refactors of the task system. Progress dialog now accepts generic ProgressProvider objects
Diffstat (limited to 'gui/OneSixModEditDialog.cpp')
-rw-r--r--gui/OneSixModEditDialog.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/gui/OneSixModEditDialog.cpp b/gui/OneSixModEditDialog.cpp
index f778127f..fad9d2e2 100644
--- a/gui/OneSixModEditDialog.cpp
+++ b/gui/OneSixModEditDialog.cpp
@@ -12,18 +12,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+#include "MultiMC.h"
#include "OneSixModEditDialog.h"
#include "ModEditDialogCommon.h"
#include "ui_OneSixModEditDialog.h"
-#include <logic/ModList.h>
+#include "logic/ModList.h"
+#include "logic/OneSixVersion.h"
+#include "logic/EnabledItemFilter.h"
+#include "logic/lists/ForgeVersionList.h"
+#include "gui/versionselectdialog.h"
+
#include <pathutils.h>
#include <QFileDialog>
#include <QDebug>
#include <QEvent>
#include <QKeyEvent>
-#include "logic/OneSixVersion.h"
-#include <logic/EnabledItemFilter.h>
OneSixModEditDialog::OneSixModEditDialog(OneSixInstance * inst, QWidget *parent):
m_inst(inst),
@@ -66,6 +69,17 @@ OneSixModEditDialog::~OneSixModEditDialog()
delete ui;
}
+void OneSixModEditDialog::on_forgeBtn_clicked()
+{
+ VersionSelectDialog vselect(MMC->forgelist(), this);
+ vselect.setFilter(1, m_inst->currentVersionId());
+ if (vselect.exec() && vselect.selectedVersion())
+ {
+ //m_selectedInstance->setIntendedVersionId(vselect.selectedVersion()->descriptor());
+ }
+}
+
+
bool OneSixModEditDialog::loaderListFilter ( QKeyEvent* keyEvent )
{
switch(keyEvent->key())