]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/fontdlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxFontDialog class for carbon 10.2+.
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
28 #include "wx/cmndata.h"
31 #include "wx/fontdlg.h"
34 #if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
38 #include "wx/mac/fontdlg.h"
40 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog
, wxDialog
)
42 #include "wx/mac/private.h"
44 // ---------------------------------------------------------------------------
45 // wxFontDialog stub for mac OS's without a native font dialog
46 // ---------------------------------------------------------------------------
48 wxFontDialog::wxFontDialog()
50 m_dialogParent
= NULL
;
53 wxFontDialog::wxFontDialog(wxWindow
*parent
, const wxFontData
& data
)
58 wxFontDialog::~wxFontDialog()
63 void wxFontDialog::SetData(const wxFontData
& fontdata
)
65 m_fontData
= fontdata
;
68 bool wxFontDialog::Create(wxWindow
*parent
, const wxFontData
& data
)
70 m_dialogParent
= parent
;
74 // TODO: you may need to do dialog creation here, unless it's
79 bool wxFontDialog::IsShown() const
84 int wxFontDialog::ShowModal()
86 // TODO: show (maybe create) the dialog