X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21802234dfc226c369e7d48af58e6c1b7f7242a3..d51305e81eb593bedd92cda864671e15209c268f:/include/wx/os2/fontdlg.h?ds=inline diff --git a/include/wx/os2/fontdlg.h b/include/wx/os2/fontdlg.h index b13df60ddb..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; } - + 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: - wxWindow* m_dialogParent; - wxFontData m_fontData; -}; + DECLARE_DYNAMIC_CLASS(wxFontDialog) +}; // end of CLASS wxFontDialog #endif // _WX_FONTDLG_H_