-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
64 lines (55 loc) · 2.03 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once
#include <iostream>
#include <QMainWindow>
#include "nesrom.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void open(std::string filename);
private slots:
void on_actionOpen_triggered();
void on_actionSave_triggered();
void on_actionSave_As_triggered();
void on_actionQuit_triggered();
void on_actionAbout_triggered();
void on_radioButtonINES_toggled(bool checked);
void on_radioButtonNES2_toggled(bool checked);
void on_spinMapper_valueChanged(int arg1);
void on_spinSubmapper_valueChanged(int arg1);
void on_checkBattery_toggled(bool checked);
void on_checkTrainer_toggled(bool checked);
void on_spinPRGROM_valueChanged(int arg1);
void on_spinPRGRAM_valueChanged(int arg1);
void on_spinPRGNVRAM_valueChanged(int arg1);
void on_spinCHRROM_valueChanged(int arg1);
void on_spinCHRRAM_valueChanged(int arg1);
void on_spinCHRNVRAM_valueChanged(int arg1);
void on_radioButtonH_toggled(bool checked);
void on_radioButtonV_toggled(bool checked);
void on_radioButton4_toggled(bool checked);
void on_radioButtonConsole_toggled(bool checked);
void on_radioButtonVS_toggled(bool checked);
void on_radioButtonPC10_toggled(bool checked);
void on_radioButtonExtsys_toggled(bool checked);
void on_radioButtonNTSC_toggled(bool checked);
void on_radioButtonPAL_toggled(bool checked);
void on_radioButtonMulti_toggled(bool checked);
void on_radioButtonDendy_toggled(bool checked);
void on_comboBoxVSPPU_currentIndexChanged(int index);
void on_comboBoxVSHardware_currentIndexChanged(int index);
void on_comboBoxExtsys_currentIndexChanged(int index);
void on_comboBoxExpdev_currentIndexChanged(int index);
void on_spinMiscROMs_valueChanged(int arg1);
private:
Ui::MainWindow *ui;
nesrom *rom;
void activate_fields();
void deactivate_fields();
void populate_fields();
};