/* Copyright (c) 2013-2019 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 #include #include #include "ui_BattleChipView.h" namespace QGBA { class CoreController; class BattleChipView : public QDialog { Q_OBJECT public: BattleChipView(std::shared_ptr controller, QWidget* parent = nullptr); ~BattleChipView(); public slots: void setFlavor(int); void insertChip(bool); private: void loadChipNames(int); Ui::BattleChipView m_ui; QMap m_chipIndexToId; std::shared_ptr m_controller; }; }