/* Copyright (c) 2013-2017 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 class QLabel; namespace QGBA { class CoreController; class RegisterView : public QWidget { Q_OBJECT public: RegisterView(std::shared_ptr controller, QWidget* parent = nullptr); public slots: void updateRegisters(); private: void addRegisters(const QStringList& names); #ifdef M_CORE_GBA void updateRegistersARM(); #endif #ifdef M_CORE_GB void updateRegistersSM83(); #endif QMap m_registers; std::shared_ptr m_controller; }; }