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
12extern "C" {
13#include "gb/overrides.h"
14}
15#endif
16
17#include "ui_OverrideView.h"
18
19struct mCoreThread;
20
21namespace QGBA {
22
23class ConfigController;
24class GameController;
25class Override;
26
27class OverrideView : public QDialog {
28Q_OBJECT
29
30public:
31 OverrideView(GameController* controller, ConfigController* config, QWidget* parent = nullptr);
32
33public slots:
34 void saveOverride();
35
36private slots:
37 void updateOverrides();
38 void gameStarted(mCoreThread*);
39 void gameStopped();
40
41private:
42 Ui::OverrideView m_ui;
43
44 GameController* m_controller;
45 ConfigController* m_config;
46
47#ifdef M_CORE_GB
48 static QList<enum GBModel> s_gbModelList;
49 static QList<enum GBMemoryBankControllerType> s_mbcList;
50#endif
51};
52
53}
54
55#endif