all repos — mgba @ e9a2b2a57c4f478fb3600fe9d87e1b97804d73de

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 <QWidget>
10
11#include "ui_OverrideView.h"
12
13extern "C" {
14#include "gba-overrides.h"
15}
16
17struct GBAThread;
18
19namespace QGBA {
20
21class ConfigController;
22class GameController;
23
24class OverrideView : public QWidget {
25Q_OBJECT
26
27public:
28	OverrideView(GameController* controller, ConfigController* config, QWidget* parent = nullptr);
29
30public slots:
31	void saveOverride();
32
33private slots:
34	void updateOverrides();
35	void gameStarted(GBAThread*);
36	void gameStopped();
37
38private:
39	Ui::OverrideView m_ui;
40
41	GameController* m_controller;
42	ConfigController* m_config;
43	GBACartridgeOverride m_override;
44};
45
46}
47
48#endif