diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-07-18 22:26:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 22:26:56 +0200 |
commit | ecac05b2fcfb8d025f034b47dab69b0c05d3f7db (patch) | |
tree | 10c546760fb4820a7df697d9ec6a014dedd9a938 /launcher/ui/dialogs/ExportInstanceDialog.h | |
parent | 5b54475d3e6c101f2bdd645350f3c81ad4fc12a3 (diff) | |
parent | b0940d696baa24ddcf29a5d3393196c1047dcd3f (diff) | |
download | PrismLauncher-ecac05b2fcfb8d025f034b47dab69b0c05d3f7db.tar.gz PrismLauncher-ecac05b2fcfb8d025f034b47dab69b0c05d3f7db.tar.bz2 PrismLauncher-ecac05b2fcfb8d025f034b47dab69b0c05d3f7db.zip |
Merge pull request #1378 from Trial97/prism_export
Added progress bar to Prism instance export
Diffstat (limited to 'launcher/ui/dialogs/ExportInstanceDialog.h')
-rw-r--r-- | launcher/ui/dialogs/ExportInstanceDialog.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.h b/launcher/ui/dialogs/ExportInstanceDialog.h index 5e801875..02f38f63 100644 --- a/launcher/ui/dialogs/ExportInstanceDialog.h +++ b/launcher/ui/dialogs/ExportInstanceDialog.h @@ -2,6 +2,7 @@ /* * Prism Launcher - Minecraft Launcher * Copyright (C) 2023 TheKodeToad <TheKodeToad@proton.me> + * Copyright (c) 2023 Trial97 <alexandru.tripon97@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,39 +39,37 @@ #include <QDialog> #include <QModelIndex> #include <memory> -#include "FileIgnoreProxy.h" #include "FastFileIconProvider.h" +#include "FileIgnoreProxy.h" class BaseInstance; typedef std::shared_ptr<BaseInstance> InstancePtr; -namespace Ui -{ +namespace Ui { class ExportInstanceDialog; } -class ExportInstanceDialog : public QDialog -{ +class ExportInstanceDialog : public QDialog { Q_OBJECT -public: - explicit ExportInstanceDialog(InstancePtr instance, QWidget *parent = 0); + public: + explicit ExportInstanceDialog(InstancePtr instance, QWidget* parent = 0); ~ExportInstanceDialog(); virtual void done(int result); -private: - bool doExport(); + private: + void doExport(); void loadPackIgnore(); void savePackIgnore(); QString ignoreFileName(); -private: - Ui::ExportInstanceDialog *ui; + private: + Ui::ExportInstanceDialog* ui; InstancePtr m_instance; - FileIgnoreProxy * proxyModel; + FileIgnoreProxy* proxyModel; FastFileIconProvider icons; -private slots: + private slots: void rowsInserted(QModelIndex parent, int top, int bottom); }; |