10 #ifndef _OCPN_GENERIC_FONTDLGG_H
11 #define _OCPN_GENERIC_FONTDLGG_H
13 #include "wx/gdicmn.h"
16 #define USE_SPINCTRL_FOR_POINT_SIZE 0
22 class WXDLLIMPEXP_FWD_CORE wxChoice;
23 class WXDLLIMPEXP_FWD_CORE wxText;
24 class WXDLLIMPEXP_FWD_CORE wxCheckBox;
29 wxID_FONT_UNDERLINE = 3000,
42 : wxFontDialogBase(parent) { Init(); }
44 : wxFontDialogBase(parent, data) { Init(); }
47 virtual int ShowModal()
override;
50 void OnCloseWindow(wxCloseEvent& event);
52 virtual void CreateWidgets();
53 virtual void InitializeFont();
55 void OnChangeFont(wxCommandEvent& event);
57 #if USE_SPINCTRL_FOR_POINT_SIZE
58 void OnChangeSize(wxSpinEvent& event);
63 virtual bool DoCreate(wxWindow *parent)
override;
74 wxChoice *m_familyChoice;
75 wxChoice *m_styleChoice;
76 wxChoice *m_weightChoice;
77 wxChoice *m_colourChoice;
78 wxCheckBox *m_underLineCheckBox;
80 #if USE_SPINCTRL_FOR_POINT_SIZE
81 wxSpinCtrl *m_pointSizeSpin;
83 wxChoice *m_pointSizeChoice;
90 wxDECLARE_EVENT_TABLE();