src/platform/qt/GamePakView.h (view raw)
1/* Copyright (c) 2013-2014 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_GAMEPAK_VIEW
7#define QGBA_GAMEPAK_VIEW
8
9#include <QWidget>
10
11#include "ui_GamePakView.h"
12
13extern "C" {
14#include "gba-overrides.h"
15}
16
17struct GBAThread;
18
19namespace QGBA {
20
21class ConfigController;
22class GameController;
23
24class GamePakView : public QWidget {
25Q_OBJECT
26
27public:
28 GamePakView(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 void setLuminanceValue(int);
38
39private:
40 Ui::GamePakView m_ui;
41
42 GameController* m_controller;
43 ConfigController* m_config;
44 GBACartridgeOverride m_override;
45};
46
47}
48
49#endif