35
35
#include <wx/radiobut.h>
36
36
#include <wx/choice.h>
37
37
#include <wx/button.h>
38
#include "scrollingdialog.h"
38
39
#include <wx/combobox.h>
39
#include "scrollingdialog.h"
42
42
class wxsFontEditorDlg: public wxScrollingDialog
46
wxsFontEditorDlg(wxWindow* parent,wxsFontData& Data,wxWindowID id = -1);
47
virtual ~wxsFontEditorDlg();
49
//(*Identifiers(wxsFontEditorDlg)
50
static const long ID_CHOICE1;
51
static const long ID_CHECKBOX8;
52
static const long ID_STATICTEXT1;
53
static const long ID_CHOICE2;
54
static const long ID_CHECKBOX2;
55
static const long ID_COMBOBOX1;
56
static const long ID_CHECKBOX1;
57
static const long ID_CHOICE3;
58
static const long ID_CHECKBOX7;
59
static const long ID_SPINCTRL1;
60
static const long ID_CHECKBOX6;
61
static const long ID_TEXTCTRL1;
62
static const long ID_CHECKBOX3;
63
static const long ID_RADIOBUTTON1;
64
static const long ID_RADIOBUTTON2;
65
static const long ID_RADIOBUTTON3;
66
static const long ID_CHECKBOX4;
67
static const long ID_RADIOBUTTON4;
68
static const long ID_RADIOBUTTON5;
69
static const long ID_RADIOBUTTON6;
70
static const long ID_CHECKBOX5;
71
static const long ID_RADIOBUTTON7;
72
static const long ID_RADIOBUTTON8;
73
static const long ID_LISTBOX1;
74
static const long ID_BUTTON4;
75
static const long ID_BUTTON5;
76
static const long ID_BUTTON6;
77
static const long ID_BUTTON8;
78
static const long ID_BUTTON7;
79
static const long ID_TEXTCTRL2;
84
//(*Handlers(wxsFontEditorDlg)
85
void OnButton1Click(wxCommandEvent& event);
86
void OnUpdateContent(wxCommandEvent& event);
87
void OnButton2Click(wxCommandEvent& event);
88
void OnButton1Click1(wxCommandEvent& event);
89
void OnFaceAddClick(wxCommandEvent& event);
90
void OnFaceDelClick(wxCommandEvent& event);
91
void OnFaceEditClick(wxCommandEvent& event);
92
void OnFaceUpClick(wxCommandEvent& event);
93
void OnFaceDownClick(wxCommandEvent& event);
94
void OnUpdatePreview(wxCommandEvent& event);
95
void OnSizeValChange(wxSpinEvent& event);
96
void OnBaseFontUseChange(wxCommandEvent& event);
99
//(*Declarations(wxsFontEditorDlg)
100
wxBoxSizer* BoxSizer4;
101
wxStaticBoxSizer* StaticBoxSizer2;
102
wxBoxSizer* BoxSizer6;
103
wxChoice* BaseFontVal;
104
wxRadioButton* WeightNorm;
105
wxRadioButton* WeightBold;
106
wxBoxSizer* BoxSizer5;
107
wxCheckBox* UnderUse;
108
wxCheckBox* StyleUse;
109
wxRadioButton* UnderYes;
110
wxRadioButton* StyleSlant;
112
wxStaticBoxSizer* StaticBoxSizer4;
113
wxTextCtrl* TestArea;
115
wxRadioButton* StyleNorm;
116
wxCheckBox* BaseFontUse;
118
wxCheckBox* WeightUse;
120
wxStaticText* BaseFontTxt;
121
wxFlexGridSizer* FlexGridSizer2;
123
wxBoxSizer* BoxSizer2;
124
wxTextCtrl* RelSizeVal;
126
wxStaticBoxSizer* StaticBoxSizer7;
127
wxRadioButton* WeightLight;
128
wxStaticBoxSizer* StaticBoxSizer3;
129
wxStaticBoxSizer* StaticBoxSizer6;
132
wxBoxSizer* BoxSizer1;
133
wxCheckBox* EncodUse;
134
wxRadioButton* StyleItal;
138
wxStaticBoxSizer* StaticBoxSizer1;
139
wxCheckBox* RelSizeUse;
140
wxBoxSizer* BoxSizer3;
141
wxStaticBoxSizer* StaticBoxSizer5;
142
wxRadioButton* UnderNo;
144
wxBoxSizer* BaseFontSizer;
145
wxStdDialogButtonSizer* StdDialogButtonSizer1;
46
wxsFontEditorDlg(wxWindow* parent,wxsFontData& Data,wxWindowID id = -1);
47
virtual ~wxsFontEditorDlg();
49
//(*Identifiers(wxsFontEditorDlg)
50
static const long ID_CHOICE1;
51
static const long ID_CHECKBOX8;
52
static const long ID_STATICTEXT1;
53
static const long ID_CHOICE2;
54
static const long ID_CHECKBOX2;
55
static const long ID_COMBOBOX1;
56
static const long ID_CHECKBOX1;
57
static const long ID_CHOICE3;
58
static const long ID_CHECKBOX7;
59
static const long ID_SPINCTRL1;
60
static const long ID_CHECKBOX6;
61
static const long ID_TEXTCTRL1;
62
static const long ID_CHECKBOX3;
63
static const long ID_RADIOBUTTON1;
64
static const long ID_RADIOBUTTON2;
65
static const long ID_RADIOBUTTON3;
66
static const long ID_CHECKBOX4;
67
static const long ID_RADIOBUTTON4;
68
static const long ID_RADIOBUTTON5;
69
static const long ID_RADIOBUTTON6;
70
static const long ID_CHECKBOX5;
71
static const long ID_RADIOBUTTON7;
72
static const long ID_RADIOBUTTON8;
73
static const long ID_LISTBOX1;
74
static const long ID_BUTTON4;
75
static const long ID_BUTTON5;
76
static const long ID_BUTTON6;
77
static const long ID_BUTTON8;
78
static const long ID_BUTTON7;
79
static const long ID_TEXTCTRL2;
84
//(*Handlers(wxsFontEditorDlg)
85
void OnButton1Click(wxCommandEvent& event);
86
void OnUpdateContent(wxCommandEvent& event);
87
void OnButton2Click(wxCommandEvent& event);
88
void OnButton1Click1(wxCommandEvent& event);
89
void OnFaceAddClick(wxCommandEvent& event);
90
void OnFaceDelClick(wxCommandEvent& event);
91
void OnFaceEditClick(wxCommandEvent& event);
92
void OnFaceUpClick(wxCommandEvent& event);
93
void OnFaceDownClick(wxCommandEvent& event);
94
void OnUpdatePreview(wxCommandEvent& event);
95
void OnSizeValChange(wxSpinEvent& event);
96
void OnBaseFontUseChange(wxCommandEvent& event);
99
//(*Declarations(wxsFontEditorDlg)
100
wxStaticBoxSizer* StaticBoxSizer2;
101
wxChoice* BaseFontVal;
102
wxRadioButton* WeightNorm;
103
wxRadioButton* WeightBold;
104
wxCheckBox* UnderUse;
105
wxCheckBox* StyleUse;
106
wxRadioButton* UnderYes;
107
wxRadioButton* StyleSlant;
109
wxStaticBoxSizer* StaticBoxSizer4;
110
wxTextCtrl* TestArea;
112
wxRadioButton* StyleNorm;
113
wxCheckBox* BaseFontUse;
115
wxCheckBox* WeightUse;
117
wxStaticText* BaseFontTxt;
118
wxFlexGridSizer* FlexGridSizer2;
120
wxBoxSizer* BoxSizer2;
121
wxTextCtrl* RelSizeVal;
123
wxRadioButton* WeightLight;
124
wxStaticBoxSizer* StaticBoxSizer3;
125
wxStaticBoxSizer* StaticBoxSizer6;
128
wxCheckBox* EncodUse;
129
wxRadioButton* StyleItal;
133
wxStaticBoxSizer* StaticBoxSizer1;
134
wxCheckBox* RelSizeUse;
135
wxBoxSizer* BoxSizer3;
136
wxStaticBoxSizer* StaticBoxSizer5;
137
wxRadioButton* UnderNo;
139
wxBoxSizer* BaseFontSizer;
150
144
void UpdateContent();
151
145
void UpdatePreview();