X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11c7d5b6d1cb54d5ffdc11d8ff092b41e225bfb6..ec75d791f043b3b43cac9825a2c62e9d5321e616:/include/wx/msw/fontdlg.h?ds=inline diff --git a/include/wx/msw/fontdlg.h b/include/wx/msw/fontdlg.h index f404b7e065..cc5d046254 100644 --- a/include/wx/msw/fontdlg.h +++ b/include/wx/msw/fontdlg.h @@ -16,28 +16,26 @@ #pragma interface "fontdlg.h" #endif -#include "wx/dialog.h" -#include "wx/cmndata.h" - // ---------------------------------------------------------------------------- // wxFontDialog // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxFontDialog : public wxDialog +class WXDLLEXPORT wxFontDialog : public wxFontDialogBase { public: - wxFontDialog(); - wxFontDialog(wxWindow *parent, wxFontData *data = NULL); - - bool Create(wxWindow *parent, wxFontData *data = NULL); + wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ } + wxFontDialog(wxWindow *parent) + : wxFontDialogBase(parent) { Create(parent); } + wxFontDialog(wxWindow *parent, const wxFontData& data) + : wxFontDialogBase(parent, data) { Create(parent, data); } virtual int ShowModal(); - wxFontData& GetFontData() { return m_fontData; } + // deprecated interface, don't use + wxFontDialog(wxWindow *parent, const wxFontData *data) + : wxFontDialogBase(parent, data) { Create(parent, data); } protected: - wxFontData m_fontData; - DECLARE_DYNAMIC_CLASS(wxFontDialog) };