]>
Commit | Line | Data |
---|---|---|
2646f485 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. | |
5 | // Author: Stefan Csomor | |
6 | // Modified by: | |
7 | // Created: 1998-01-01 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) Stefan Csomor | |
65571936 | 10 | // Licence: wxWindows licence |
2646f485 SC |
11 | ///////////////////////////////////////////////////////////////////////////// |
12 | ||
13 | #ifdef __GNUG__ | |
14 | #pragma implementation "fontdlg.h" | |
15 | #endif | |
16 | ||
17 | #include "wx/mac/fontdlg.h" | |
18 | #include "wx/cmndata.h" | |
19 | ||
2646f485 | 20 | IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog) |
2646f485 SC |
21 | |
22 | /* | |
23 | * wxFontDialog | |
24 | */ | |
25 | ||
26 | wxFontDialog::wxFontDialog() | |
27 | { | |
28 | m_dialogParent = NULL; | |
29 | } | |
30 | ||
31 | wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data) | |
32 | { | |
33 | Create(parent, data); | |
34 | } | |
35 | ||
36 | bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data) | |
37 | { | |
38 | m_dialogParent = parent; | |
39 | ||
40 | m_fontData = data; | |
41 | ||
42 | // TODO: you may need to do dialog creation here, unless it's | |
43 | // done in ShowModal. | |
44 | return TRUE; | |
45 | } | |
46 | ||
47 | int wxFontDialog::ShowModal() | |
48 | { | |
49 | // TODO: show (maybe create) the dialog | |
50 | return wxID_CANCEL; | |
51 | } | |
52 |