X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7e1a3227440c2910124edfc8896bbe23d6d0ab3..26531700c7ec84872c60899ce6219954499086da:/include/wx/os2/fontdlg.h diff --git a/include/wx/os2/fontdlg.h b/include/wx/os2/fontdlg.h index 510641744c..4dff23ca4b 100644 --- a/include/wx/os2/fontdlg.h +++ b/include/wx/os2/fontdlg.h @@ -20,22 +20,42 @@ * Font dialog */ -class WXDLLEXPORT wxFontDialog: public wxDialog +class WXDLLEXPORT wxFontDialog: public wxFontDialogBase { -DECLARE_DYNAMIC_CLASS(wxFontDialog) public: - wxFontDialog(); - wxFontDialog(wxWindow *parent, wxFontData *data = NULL); - - bool Create(wxWindow *parent, wxFontData *data = NULL); - - int ShowModal(); - wxFontData& GetFontData() { return m_fontData; } - -//EK protected: - wxWindow* m_dialogParent; - wxFontData m_fontData; -}; + wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ } + wxFontDialog (wxWindow* pParent) : wxFontDialogBase(pParent) { Create(pParent); } + wxFontDialog( wxWindow* pParent + ,const wxFontData& rData + ) + : wxFontDialogBase( pParent + ,rData + ) + { + Create( pParent + ,rData + ); + } + + virtual int ShowModal(); + + // + // Deprecated interface, don't use + // + wxFontDialog( wxWindow* pParent + ,const wxFontData* pData + ) + : wxFontDialogBase( pParent + ,pData + ) + { + Create( pParent + ,pData + ); + } +protected: + DECLARE_DYNAMIC_CLASS(wxFontDialog) +}; // end of CLASS wxFontDialog #endif // _WX_FONTDLG_H_