- DECLARE_DYNAMIC_CLASS(wxGenericFontDialog)
- protected:
- wxFontData fontData;
- wxFont dialogFont;
- wxWindow *dialogParent;
-
- // Area reserved for font display
- wxRect fontRect;
-
- wxChoice *familyChoice;
- wxChoice *styleChoice;
- wxChoice *weightChoice;
- wxChoice *colourChoice;
- wxCheckBox *underLineCheckBox;
- wxChoice *pointSizeChoice;
- bool m_useEvents;
-
-// static bool fontDialogCancelled;
- public:
-
- wxGenericFontDialog(void);
- wxGenericFontDialog(wxWindow *parent, wxFontData *data = (wxFontData *) NULL);
- ~wxGenericFontDialog(void);
+public:
+ wxGenericFontDialog() { Init(); }
+ wxGenericFontDialog(wxWindow *parent, const wxFontData& data)
+ : wxFontDialogBase(parent, data) { Init(); }
+ virtual ~wxGenericFontDialog();
+
+ virtual int ShowModal();