]> git.saurik.com Git - wxWidgets.git/blob - src/stubs/fontdlg.cpp
suppressed VC++ 5.0 bool to int conversion warning (when compiling with
[wxWidgets.git] / src / stubs / fontdlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: fontdlg.cpp
3 // Purpose: wxFontDialog class
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "fontdlg.h"
14 #endif
15
16 #include "wx/fontdlg.h"
17 #include "wx/cmndata.h"
18
19 #if !USE_SHARED_LIBRARY
20 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
21 #endif
22
23 /*
24 * wxFontDialog
25 */
26
27 wxFontDialog::wxFontDialog()
28 {
29 m_dialogParent = NULL;
30 }
31
32 wxFontDialog::wxFontDialog(wxWindow *parent, wxFontData *data)
33 {
34 Create(parent, data);
35 }
36
37 bool wxFontDialog::Create(wxWindow *parent, wxFontData *data)
38 {
39 m_dialogParent = parent;
40
41 if (data)
42 m_fontData = *data;
43
44 // TODO: you may need to do dialog creation here, unless it's
45 // done in ShowModal.
46 return TRUE;
47 }
48
49 int wxFontDialog::ShowModal()
50 {
51 // TODO: show (maybe create) the dialog
52 return wxID_CANCEL;
53 }
54