-
Notifications
You must be signed in to change notification settings - Fork 0
/
tableeditor.h
54 lines (36 loc) · 1.08 KB
/
tableeditor.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
#ifndef TABLEEDITOR_H
#define TABLEEDITOR_H
#include <QDialog>
#include <QSettings>
#include <QTableWidget>
#include "fnbfont.h"
class MainWindow;
namespace Ui {
class TableEditor;
}
class TableEditor : public QDialog
{
Q_OBJECT
public:
explicit TableEditor(QWidget *parent = nullptr);
~TableEditor();
MainWindow* mainWindow;
QTableWidgetItem* prototypeItem;
void RebuildUI();
void UpdateGlyph(FnbGlyphInfo* glyph, bool select);
private slots:
void on_tableWidget_cellChanged(int row, int column);
void on_tableWidget_currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
void on_scaleAllGlyphs_clicked();
void on_bearingDec_clicked();
void on_bearingInc_clicked();
void on_advanceDec_clicked();
void on_advanceInc_clicked();
void on_autoFillAdvancement_clicked();
private:
QTableWidgetItem* itemAt(int row, int col);
QSettings settings;
Ui::TableEditor *ui;
void closeEvent(QCloseEvent* e);
};
#endif // TABLEEDITOR_H