summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-07-10 01:11:06 +0200
committerPetr Mrázek <peterix@gmail.com>2015-07-10 01:11:06 +0200
commit8e7caf4e25dc3f56877a504c45d157860215496b (patch)
tree4ce3ea68190d4b693519ad6f76473b5b8f4da8be /application
parent5dd48e89f5a7facf8355641d0caf8deaec2a03ec (diff)
downloadMultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar
MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar.gz
MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar.lz
MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar.xz
MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.zip
GH-1053 move launch related things and rename them
Diffstat (limited to 'application')
-rw-r--r--application/ConsoleWindow.cpp8
-rw-r--r--application/ConsoleWindow.h6
-rw-r--r--application/LaunchInteraction.cpp2
-rw-r--r--application/LaunchInteraction.h2
-rw-r--r--application/MainWindow.cpp2
-rw-r--r--application/pages/LogPage.cpp4
-rw-r--r--application/pages/LogPage.h6
7 files changed, 15 insertions, 15 deletions
diff --git a/application/ConsoleWindow.cpp b/application/ConsoleWindow.cpp
index 84140516..35bc9a8a 100644
--- a/application/ConsoleWindow.cpp
+++ b/application/ConsoleWindow.cpp
@@ -53,8 +53,8 @@ private:
BasePage * m_log_page;
};
-ConsoleWindow::ConsoleWindow(std::shared_ptr<BaseLauncher> process, QWidget *parent)
- : QMainWindow(parent), m_proc(process)
+ConsoleWindow::ConsoleWindow(std::shared_ptr<LaunchTask> proc, QWidget *parent)
+ : QMainWindow(parent), m_proc(proc)
{
MultiMCPlatform::fixWM_CLASS(this);
setAttribute(Qt::WA_DeleteOnClose);
@@ -129,8 +129,8 @@ ConsoleWindow::ConsoleWindow(std::shared_ptr<BaseLauncher> process, QWidget *par
}
// Set up signal connections
- connect(m_proc.get(), &BaseLauncher::succeeded, this, &ConsoleWindow::onSucceeded);
- connect(m_proc.get(), &BaseLauncher::failed, this, &ConsoleWindow::onFailed);
+ connect(m_proc.get(), &LaunchTask::succeeded, this, &ConsoleWindow::onSucceeded);
+ connect(m_proc.get(), &LaunchTask::failed, this, &ConsoleWindow::onFailed);
setMayClose(false);
diff --git a/application/ConsoleWindow.h b/application/ConsoleWindow.h
index 228b58e9..f9e4c89e 100644
--- a/application/ConsoleWindow.h
+++ b/application/ConsoleWindow.h
@@ -17,7 +17,7 @@
#include <QMainWindow>
#include <QSystemTrayIcon>
-#include "BaseLauncher.h"
+#include "launch/LaunchTask.h"
class QPushButton;
class PageContainer;
@@ -26,7 +26,7 @@ class ConsoleWindow : public QMainWindow
Q_OBJECT
public:
- explicit ConsoleWindow(std::shared_ptr<BaseLauncher> proc, QWidget *parent = 0);
+ explicit ConsoleWindow(std::shared_ptr<LaunchTask> proc, QWidget *parent = 0);
virtual ~ConsoleWindow();
/**
@@ -56,7 +56,7 @@ protected:
void closeEvent(QCloseEvent *);
private:
- std::shared_ptr<BaseLauncher> m_proc;
+ std::shared_ptr<LaunchTask> m_proc;
bool m_mayclose = true;
QSystemTrayIcon *m_trayIcon = nullptr;
PageContainer *m_container = nullptr;
diff --git a/application/LaunchInteraction.cpp b/application/LaunchInteraction.cpp
index ea966129..8ccc46a4 100644
--- a/application/LaunchInteraction.cpp
+++ b/application/LaunchInteraction.cpp
@@ -170,7 +170,7 @@ void LaunchController::launchInstance()
m_console = new ConsoleWindow(m_launcher);
connect(m_console, &ConsoleWindow::isClosing, this, &LaunchController::instanceEnded);
- connect(m_launcher.get(), &BaseLauncher::readyForLaunch, this, &LaunchController::readyForLaunch);
+ connect(m_launcher.get(), &LaunchTask::readyForLaunch, this, &LaunchController::readyForLaunch);
m_launcher->setHeader("MultiMC version: " + BuildConfig.printableVersionString() + "\n\n");
m_launcher->start();
diff --git a/application/LaunchInteraction.h b/application/LaunchInteraction.h
index f62d5124..d64c3f6a 100644
--- a/application/LaunchInteraction.h
+++ b/application/LaunchInteraction.h
@@ -45,5 +45,5 @@ private:
QWidget * m_parentWidget = nullptr;
ConsoleWindow *m_console = nullptr;
AuthSessionPtr m_session;
- std::shared_ptr <BaseLauncher> m_launcher;
+ std::shared_ptr <LaunchTask> m_launcher;
};
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index bd50e06d..0747e442 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -368,7 +368,7 @@ namespace Ui {
#include "Env.h"
#include "BaseInstance.h"
-#include "BaseLauncher.h"
+#include "launch/LaunchTask.h"
#include "java/JavaUtils.h"
#include "JavaCommon.h"
#include "InstancePageProvider.h"
diff --git a/application/pages/LogPage.cpp b/application/pages/LogPage.cpp
index cdf6b345..77d5d6b8 100644
--- a/application/pages/LogPage.cpp
+++ b/application/pages/LogPage.cpp
@@ -7,11 +7,11 @@
#include <QScrollBar>
#include <QShortcut>
-#include "BaseLauncher.h"
+#include "launch/LaunchTask.h"
#include <settings/Setting.h>
#include "GuiUtil.h"
-LogPage::LogPage(std::shared_ptr<BaseLauncher> proc, QWidget *parent)
+LogPage::LogPage(std::shared_ptr<LaunchTask> proc, QWidget *parent)
: QWidget(parent), ui(new Ui::LogPage), m_process(proc)
{
ui->setupUi(this);
diff --git a/application/pages/LogPage.h b/application/pages/LogPage.h
index 0bd74846..f2cd90c3 100644
--- a/application/pages/LogPage.h
+++ b/application/pages/LogPage.h
@@ -18,7 +18,7 @@
#include <QWidget>
#include "BaseInstance.h"
-#include "BaseLauncher.h"
+#include "launch/LaunchTask.h"
#include "BasePage.h"
#include <MultiMC.h>
@@ -33,7 +33,7 @@ class LogPage : public QWidget, public BasePage
Q_OBJECT
public:
- explicit LogPage(std::shared_ptr<BaseLauncher> proc, QWidget *parent = 0);
+ explicit LogPage(std::shared_ptr<LaunchTask> proc, QWidget *parent = 0);
virtual ~LogPage();
virtual QString displayName() const override
{
@@ -77,7 +77,7 @@ private slots:
private:
Ui::LogPage *ui;
- std::shared_ptr<BaseLauncher> m_process;
+ std::shared_ptr<LaunchTask> m_process;
int m_last_scroll_value = 0;
bool m_scroll_active = true;
int m_saved_offset = 0;