GH-1645 reimplement open/close instance window based on settings

This commit is contained in:
Petr Mrázek
2016-11-01 01:25:04 +01:00
parent 4b03dfcbd7
commit fe68d59460
8 changed files with 122 additions and 79 deletions

View File

@ -17,6 +17,10 @@ public:
{
m_instance = instance;
}
InstancePtr instance()
{
return m_instance;
}
void setOnline(bool online)
{
m_online = online;
@ -29,6 +33,14 @@ public:
{
m_parentWidget = widget;
}
void setShowConsole(bool showConsole)
{
m_showConsole = showConsole;
}
QString id()
{
return m_instance->id();
}
private:
void login();
@ -37,9 +49,14 @@ private:
private slots:
void readyForLaunch();
void onSucceeded();
void onFailed(QString reason);
void onProgressRequested(Task *task);
private:
BaseProfilerFactory *m_profiler = nullptr;
bool m_online = true;
bool m_showConsole = false;
InstancePtr m_instance;
QWidget * m_parentWidget = nullptr;
InstanceWindow *m_console = nullptr;