/* Copyright (c) 2013-2022 Jeffrey Pfau * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include "ForwarderController.h" #include "ForwarderGenerator.h" #include #include #include "ui_ForwarderView.h" namespace QGBA { class ForwarderView : public QDialog { Q_OBJECT public: ForwarderView(QWidget* parent = nullptr); private slots: void build(); void validate(); private: void setSystem(ForwarderGenerator::System); void connectBrowseButton(QAbstractButton* button, QLineEdit* lineEdit, const QString& title, bool save = false, const QString& filter = {}); void selectImage(); void setActiveImage(int); void updateProgress(); ForwarderController m_controller; QVector m_images; int m_currentImage; QSize m_activeSize; qreal m_downloadProgress; ForwarderController::Download m_currentDownload; bool m_needsForwarderKit; Ui::ForwarderView m_ui; }; }