all repos — mgba @ b61b8a0d2be4d4ac39b497b4ce85259250eec3d7

mGBA Game Boy Advance Emulator

src/platform/qt/OverrideView.h (view raw)

 1/* Copyright (c) 2013-2015 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef QGBA_OVERRIDE_VIEW
 7#define QGBA_OVERRIDE_VIEW
 8
 9#include <QDialog>
10
11#ifdef M_CORE_GB
12#include <mgba/gb/interface.h>
13#endif
14
15#include "ui_OverrideView.h"
16
17struct mCoreThread;
18
19namespace QGBA {
20
21class ConfigController;
22class GameController;
23class Override;
24
25class OverrideView : public QDialog {
26Q_OBJECT
27
28public:
29	OverrideView(GameController* controller, ConfigController* config, QWidget* parent = nullptr);
30
31public slots:
32	void saveOverride();
33
34private slots:
35	void updateOverrides();
36	void gameStarted(mCoreThread*);
37	void gameStopped();
38
39private:
40	Ui::OverrideView m_ui;
41
42	GameController* m_controller;
43	ConfigController* m_config;
44
45#ifdef M_CORE_GB
46	static QList<enum GBModel> s_gbModelList;
47	static QList<enum GBMemoryBankControllerType> s_mbcList;
48#endif
49};
50
51}
52
53#endif