]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/fontdlg.cpp
14f02f419044743d5dab354f8938c081bc8cca2e
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxFontDialog class for carbon 10.2+.
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "fontdlg.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
32 #include "wx/cmndata.h"
35 #include "wx/fontdlg.h"
38 #if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
42 #include "wx/mac/fontdlg.h"
44 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog
, wxDialog
)
46 #include "wx/mac/private.h"
48 // ---------------------------------------------------------------------------
49 // wxFontDialog stub for mac OS's without a native font dialog
50 // ---------------------------------------------------------------------------
52 wxFontDialog::wxFontDialog()
54 m_dialogParent
= NULL
;
57 wxFontDialog::wxFontDialog(wxWindow
*parent
, const wxFontData
& data
)
62 wxFontDialog::~wxFontDialog()
67 void wxFontDialog::SetData(wxFontData
& fontdata
)
69 m_fontData
= fontdata
;
72 bool wxFontDialog::Create(wxWindow
*parent
, const wxFontData
& data
)
74 m_dialogParent
= parent
;
78 // TODO: you may need to do dialog creation here, unless it's
83 bool wxFontDialog::IsShown() const
88 int wxFontDialog::ShowModal()
90 // TODO: show (maybe create) the dialog