-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
72 lines (63 loc) · 2.13 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
65
66
67
68
69
70
71
72
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "blueprint.h"
#include "styleeditordialog.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(bool debugMode, QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_btnConvertImage_clicked();
void on_btnConvertBP_clicked();
void on_btnLoadROMFile_clicked();
void on_spnROMWordSize_valueChanged(int arg1);
void on_spnROMDataBits_valueChanged(int arg1);
void on_btnROMGenerate_clicked();
void on_btnNetlistCheck_clicked();
void on_btnNetlistGraph_clicked();
void on_cbTextFont_activated(int index);
void on_txtTextContent_textChanged(const QString &arg1);
void on_chkTextLogic_toggled(bool checked);
void on_chkTextDecoOn_toggled(bool checked);
void on_chkTextDecoOff_toggled(bool checked);
void on_cbTextLogicInk_currentIndexChanged(int index);
void on_clrTextDecoOn_colorChanged(const QColor &);
void on_clrTextDecoOff_colorChanged(const QColor &);
void on_actAlwaysOnTop_toggled(bool checked);
void on_chkROMCSV_toggled(bool checked);
void on_btnROMCSVHelp_clicked();
void on_btnMiscGray8_clicked();
void on_btnMiscRGB332_clicked();
void on_cbAddress0_activated(int index);
void on_btnMiscX11_clicked();
void on_btnConvertEmoji_clicked();
void on_cbSystemFont_activated(int index);
void on_spnSystemFontHeight_valueChanged(int arg1);
void on_btnFontSystem_toggled(bool checked);
void on_btnFontBuiltIn_toggled(bool checked);
void on_actLatestRelease_triggered();
void on_actBugReports_triggered();
void on_actStyleEditor_triggered();
void on_btnViewGraph_clicked();
private:
struct FontDesc {
QString filename;
QString charset;
int kerning;
FontDesc () : kerning(0) { }
};
Ui::MainWindow *ui_;
StyleEditorDialog *sedit_;
QString romfile_;
QByteArray romdata_;
QMap<QString,FontDesc> fonts_;
Blueprint::Layer selectedConversionLayer () const;
void doGenerateText ();
};
#endif // MAINWINDOW_H