summaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-03-11 22:19:17 +0100
committerPetr Mrázek <peterix@gmail.com>2013-03-11 22:19:17 +0100
commit46f93311afc9f1e2afc306f63cee0e4f462758e2 (patch)
treecc945d66e6ca5e68c43b354d3f8f6d6e70cf5326 /gui/mainwindow.h
parent36396f7c6aca9fcc61c8620e10c31ed2c8999ebd (diff)
downloadMultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar
MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar.gz
MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar.lz
MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.tar.xz
MultiMC-46f93311afc9f1e2afc306f63cee0e4f462758e2.zip
Instance view, model, delegate.
Diffstat (limited to 'gui/mainwindow.h')
-rw-r--r--gui/mainwindow.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/gui/mainwindow.h b/gui/mainwindow.h
index 5ea575a6..c2dedf74 100644
--- a/gui/mainwindow.h
+++ b/gui/mainwindow.h
@@ -20,6 +20,12 @@
#include "instancelist.h"
#include "loginresponse.h"
+#include "instance.h"
+
+class InstanceModel;
+class InstanceProxyModel;
+class KCategorizedView;
+class KCategoryDrawer;
namespace Ui
{
@@ -67,14 +73,21 @@ private slots:
void on_actionMakeDesktopShortcut_triggered();
- void doLogin(const QString& errorMsg = "");
-
+ void doLogin( QString inst, const QString& errorMsg = "" );
- void onLoginComplete(LoginResponse response);
+ void onLoginComplete( QString inst, LoginResponse response );
+ void onLoginFailed( QString inst, const QString& errorMsg );
+
+public slots:
+ void instanceActivated ( QModelIndex );
+
private:
Ui::MainWindow *ui;
-
+ KCategoryDrawer * drawer;
+ KCategorizedView * view;
+ InstanceModel * model;
+ InstanceProxyModel * proxymodel;
InstanceList instList;
};