diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-06-08 18:02:20 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-09 01:38:31 +0200 |
commit | 84ae67fff5bfa9de011daf4144802569687f1e6b (patch) | |
tree | 47d7ec4b8484b6aa505e8200ba35b3ead60980ab /gui/pages/LegacyUpgradePage.h | |
parent | 694067c603ec14eba16e452e77bc7ce442fa36dd (diff) | |
download | MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar.gz MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar.lz MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar.xz MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.zip |
Page dialog for legacy instances.
Diffstat (limited to 'gui/pages/LegacyUpgradePage.h')
-rw-r--r-- | gui/pages/LegacyUpgradePage.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gui/pages/LegacyUpgradePage.h b/gui/pages/LegacyUpgradePage.h new file mode 100644 index 00000000..549c8bf3 --- /dev/null +++ b/gui/pages/LegacyUpgradePage.h @@ -0,0 +1,46 @@ +/* Copyright 2014 MultiMC Contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once +#include <QWidget> + +#include <logic/OneSixInstance.h> +#include <logic/net/NetJob.h> +#include "BasePage.h" + +class EnabledItemFilter; +namespace Ui +{ +class LegacyUpgradePage; +} + +class LegacyUpgradePage : public QWidget, public BasePage +{ + Q_OBJECT + +public: + explicit LegacyUpgradePage(LegacyInstance *inst, QWidget *parent = 0); + virtual ~LegacyUpgradePage(); + virtual QString displayName() override; + virtual QIcon icon() override; + virtual QString id() override; +private +slots: + void on_upgradeButton_clicked(); + +private: + Ui::LegacyUpgradePage *ui; + LegacyInstance *m_inst; +}; |