-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaineditorwidget.h
More file actions
98 lines (76 loc) · 2.36 KB
/
maineditorwidget.h
File metadata and controls
98 lines (76 loc) · 2.36 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef MAINEDITORWIDGET_H
#define MAINEDITORWIDGET_H
#include "bigredsave.h"
#include "fileeditorwidget.h"
#include "coinrushstagewidget.h"
#include <QWidget>
#include <QComboBox>
#include <QCheckBox>
#include <QSpinBox>
#include <QTabWidget>
#include <QTableWidget>
class MainEditorWidget : public QWidget
{
Q_OBJECT
public:
explicit MainEditorWidget(QWidget* parent = nullptr);
void loadFile(BigRedSave* saveFile);
signals:
public slots:
// General
void coinMilestonesChanged(int index);
void lastFileSavedChanged(int index);
void globalCoinCountChanged(int value);
// Coin Rush
void streetpassCountChanged(int value);
void coinRushVictoriesChanged(int value);
void newStreetpassFlagToggled(bool toggle);
void coinRushHighscoreChanged(int value);
void coinRushPackTypeChanged(int value);
void coinRushStageChanged(quint8 world, quint8 level);
void coinRushRacoonFlagToggled(bool toggle);
// Global Level Completion
void worldChanged(int world);
void levelCompletionFlagChanged(quint8 value);
// Settings
void controlSchemeChanged(int index);
void spotpassSettingToggled(bool toggle);
void firstBootFlagToggled(bool toggle);
void coinRushFirstLoadToggled(bool toggle);
void showEshopButtonToggled(bool toggle);
private:
class HorLine : public QFrame { public: HorLine() { setFrameStyle(QFrame::HLine | QFrame::Sunken); } };
BigRedSave* saveFile;
// General
QComboBox* coinMilestones;
QComboBox* lastFileSaved;
QSpinBox* globalCoinCount;
// Coin Rush
QSpinBox* streetpassCount;
QSpinBox* coinRushVictories;
QCheckBox* newStreetpassFlag;
QSpinBox* coinRushHighscore;
QComboBox* coinRushPackType;
QTableWidget* coinRushLevels;
QCheckBox* coinRushRacoonFlag;
// TODO: - Mii editing
// TODO: - Challenger editing
// Global Level Completion
QComboBox* worldSelector;
QTableWidget* globalLevels;
// Settings
QComboBox* controlScheme;
QCheckBox* spotpassSetting;
QCheckBox* firstBootFlag;
QCheckBox* coinRushFirstLoad;
QCheckBox* showEshopButton;
// Streetpass
// Files
QTabWidget* filesTabWidget;
FileContainerWidget* file1;
FileContainerWidget* file2;
FileContainerWidget* file3;
void blockAllSignals(bool block);
void setLevelNames();
};
#endif // MAINEDITORWIDGET_H