]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/fontdlg.cpp
moved drawing to isvisible branch only
[wxWidgets.git] / src / mac / carbon / fontdlg.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: fontdlg.cpp
3// Purpose: wxFontDialog class. NOTE: you can use the generic class
4// if you wish, instead of implementing this.
a31a5f85 5// Author: Stefan Csomor
e9576ca5 6// Modified by:
a31a5f85 7// Created: 1998-01-01
e9576ca5 8// RCS-ID: $Id$
a31a5f85 9// Copyright: (c) Stefan Csomor
e40298d5 10// Licence: wxWindows licence
e9576ca5
SC
11/////////////////////////////////////////////////////////////////////////////
12
13#ifdef __GNUG__
14#pragma implementation "fontdlg.h"
15#endif
16
519cb848 17#include "wx/mac/fontdlg.h"
e9576ca5
SC
18#include "wx/cmndata.h"
19
2f1ae414 20#if !USE_SHARED_LIBRARY
e9576ca5 21IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
2f1ae414 22#endif
e9576ca5
SC
23
24/*
25 * wxFontDialog
26 */
27
28wxFontDialog::wxFontDialog()
29{
30 m_dialogParent = NULL;
31}
32
baaae89f 33wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
e9576ca5
SC
34{
35 Create(parent, data);
36}
37
baaae89f 38bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
e9576ca5
SC
39{
40 m_dialogParent = parent;
41
baaae89f 42 m_fontData = data;
e9576ca5
SC
43
44 // TODO: you may need to do dialog creation here, unless it's
45 // done in ShowModal.
46 return TRUE;
47}
48
49int wxFontDialog::ShowModal()
50{
51 // TODO: show (maybe create) the dialog
52 return wxID_CANCEL;
53}
54