all repos — mgba @ 8284e7ded2596317ff1700c71bdada0f504fb0d2

mGBA Game Boy Advance Emulator

src/platform/qt/IOViewer.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_IOVIEWER
 7#define QGBA_IOVIEWER
 8
 9#include <QDialog>
10
11#include "ui_IOViewer.h"
12
13namespace QGBA {
14
15class GameController;
16
17class IOViewer : public QDialog {
18Q_OBJECT
19
20public:
21	IOViewer(GameController* controller, QWidget* parent = nullptr);
22
23public slots:
24	void update();
25	void selectRegister(unsigned address);
26
27private slots:
28	void buttonPressed(QAbstractButton* button);
29	void bitFlipped();
30	void writeback();
31	void selectRegister();
32
33private:
34	Ui::IOViewer m_ui;
35
36	unsigned m_register;
37	uint16_t m_value;
38
39	GameController* m_controller;
40};
41
42}
43
44#endif