]> git.saurik.com Git - wxWidgets.git/blob - src/os2/fontdlg.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / os2 / fontdlg.cpp
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: David Webster
6 // Modified by:
7 // Created: 10/06/99
8 // RCS-ID: $Id$
9 // Copyright: (c) David Webster
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 // For compilers that support precompilation, includes "wx.h".
14 #include "wx/wxprec.h"
15
16 #ifndef WX_PRECOMP
17 #include <stdio.h>
18 #include "wx/defs.h"
19 #include "wx/utils.h"
20 #include "wx/dialog.h"
21 #endif
22
23 #include "wx/fontdlg.h"
24
25 #define INCL_PM
26 #include <os2.h>
27
28 #include "wx/os2/private.h"
29 #include "wx/cmndata.h"
30
31 #include <math.h>
32 #include <stdlib.h>
33 #include <string.h>
34
35 #define wxDIALOG_DEFAULT_X 300
36 #define wxDIALOG_DEFAULT_Y 300
37
38 #if !USE_SHARED_LIBRARY
39 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
40 #endif
41
42 /*
43 * wxFontDialog
44 */
45 wxFontDialog::wxFontDialog()
46 {
47 m_dialogParent = NULL;
48 }
49
50 wxFontDialog::wxFontDialog(wxWindow *parent, wxFontData *data)
51 {
52 Create(parent, data);
53 }
54
55 bool wxFontDialog::Create(wxWindow *parent, wxFontData *data)
56 {
57 m_dialogParent = parent;
58
59 if (data)
60 m_fontData = *data;
61 return TRUE;
62 }
63
64 int wxFontDialog::ShowModal()
65 {
66 // TODO: show (maybe create) the dialog
67 return wxID_CANCEL;
68 }
69