summaryrefslogtreecommitdiffstats
path: root/application/dialogs/VersionSelectDialog.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-01-05 04:05:08 +0100
committerPetr Mrázek <peterix@gmail.com>2017-01-05 04:05:08 +0100
commite1bd1c614519974d7bfc0efc8dcbfafa9418e2fa (patch)
tree2592a85455ff45925eaa19e8023061a5089be89a /application/dialogs/VersionSelectDialog.h
parent4c0db2b99decf407b1f5cf0afc6f29db87ac03ca (diff)
downloadMultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar
MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.gz
MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.lz
MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.xz
MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.zip
NOISSUE feature complete setup wizard
Diffstat (limited to 'application/dialogs/VersionSelectDialog.h')
-rw-r--r--application/dialogs/VersionSelectDialog.h36
1 files changed, 17 insertions, 19 deletions
diff --git a/application/dialogs/VersionSelectDialog.h b/application/dialogs/VersionSelectDialog.h
index 6b83535e..8916ce59 100644
--- a/application/dialogs/VersionSelectDialog.h
+++ b/application/dialogs/VersionSelectDialog.h
@@ -18,8 +18,15 @@
#include <QDialog>
#include <QSortFilterProxyModel>
+
#include "BaseVersionList.h"
+class QVBoxLayout;
+class QHBoxLayout;
+class QDialogButtonBox;
+class VersionSelectWidget;
+class QPushButton;
+
namespace Ui
{
class VersionSelectDialog;
@@ -32,14 +39,10 @@ class VersionSelectDialog : public QDialog
Q_OBJECT
public:
- explicit VersionSelectDialog(BaseVersionList *vlist, QString title, QWidget *parent = 0,
- bool cancelable = true);
- ~VersionSelectDialog();
-
- virtual int exec();
+ explicit VersionSelectDialog(BaseVersionList *vlist, QString title, QWidget *parent = 0, bool cancelable = true);
+ virtual ~VersionSelectDialog() {};
- //! Starts a task that loads the list.
- void loadList();
+ int exec() override;
BaseVersionPtr selectedVersion() const;
@@ -50,22 +53,19 @@ public:
void setResizeOn(int column);
void setUseLatest(const bool useLatest);
-protected:
- virtual void closeEvent ( QCloseEvent* );
-
-private
-slots:
+private slots:
void on_refreshButton_clicked();
- void onTaskFinished();
- void changeProgress(qint64 current, qint64 total);
-
private:
- void preselect();
+ void retranslate();
void selectRecommended();
private:
- Ui::VersionSelectDialog *ui = nullptr;
+ VersionSelectWidget *m_versionWidget = nullptr;
+ QVBoxLayout *m_verticalLayout = nullptr;
+ QHBoxLayout *m_horizontalLayout = nullptr;
+ QPushButton *m_refreshButton = nullptr;
+ QDialogButtonBox *m_buttonBox = nullptr;
BaseVersionList *m_vlist = nullptr;
@@ -74,6 +74,4 @@ private:
int resizeOnColumn = 0;
Task * loadTask = nullptr;
-
- bool preselectedAlready = false;
};