/
EditorWindow.h
45 lines (31 loc) · 989 Bytes
/
EditorWindow.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
#pragma once
#include <wx/wx.h>
class PaletteColorPicker;
class FontItemEditor;
namespace LandsOfLore {
class FontItem;
}
using LandsOfLore::FontItem;
class EditorWindow : public wxFrame
{
private:
wxListBox *m_listCharacters;
wxSpinCtrl *m_spinWidth;
wxSpinCtrl *m_spinHeight;
wxSpinCtrl *m_spinUnknown;
PaletteColorPicker *m_colorPicker;
FontItemEditor *m_itemEditor;
public:
EditorWindow(const wxString& title, const wxPoint& pos, const wxSize& size);
private:
void OnFileOpen(wxCommandEvent& event);
void OnFileSaveAs(wxCommandEvent& event);
void OnExit(wxCommandEvent& event);
void OnViewShowFont(wxCommandEvent& event);
void OnItemSelected(wxCommandEvent& event);
void OnItemWidthChanged(wxSpinEvent& event);
void OnItemHeightChanged(wxSpinEvent& event);
void OnItemUnknownChanged(wxSpinEvent& event);
void ChangeFontItemSize(FontItem& item, int newWidth, int newHeight);
DECLARE_EVENT_TABLE()
};