- DECLARE_DYNAMIC_CLASS(wxGenericFontDialog)
- protected:
- wxFontData fontData;
- wxFont dialogFont;
- wxWindow *dialogParent;
-
- wxChoice *familyChoice;
- wxChoice *styleChoice;
- wxChoice *weightChoice;
- wxChoice *colourChoice;
- wxCheckBox *underLineCheckBox;
- wxChoice *pointSizeChoice;
- wxFontPreviewer *m_previewer;
- bool m_useEvents;
-
-// static bool fontDialogCancelled;
- public:
-
- wxGenericFontDialog(void);
- wxGenericFontDialog(wxWindow *parent, const wxFontData& data);
- ~wxGenericFontDialog(void);
+public:
+ wxGenericFontDialog() { Init(); }
+ wxGenericFontDialog(wxWindow *parent, const wxFontData& data)
+ : wxFontDialogBase(parent, data) { Init(); }
+ virtual ~wxGenericFontDialog();
+
+ virtual int ShowModal();
+
+ // deprecated, for backwards compatibility only
+ wxGenericFontDialog(wxWindow *parent, const wxFontData *data)
+ : wxFontDialogBase(parent, data) { Init(); }