]> git.saurik.com Git - wxWidgets.git/blame - src/os2/fontdlg.cpp
using Theme layout for measuring as well
[wxWidgets.git] / src / os2 / fontdlg.cpp
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: fontdlg.cpp
3// Purpose: wxFontDialog class. NOTE: you can use the generic class
4// if you wish, instead of implementing this.
21802234 5// Author: David Webster
0e320a79 6// Modified by:
21802234 7// Created: 10/06/99
0e320a79 8// RCS-ID: $Id$
21802234
DW
9// Copyright: (c) David Webster
10// Licence: wxWindows licence
0e320a79
DW
11/////////////////////////////////////////////////////////////////////////////
12
21802234
DW
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"
0e320a79
DW
21#endif
22
21802234
DW
23#include "wx/fontdlg.h"
24
25#define INCL_PM
26#include <os2.h>
27
28#include "wx/os2/private.h"
0e320a79
DW
29#include "wx/cmndata.h"
30
21802234
DW
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
0e320a79 38IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
0e320a79
DW
39
40/*
41 * wxFontDialog
42 */
0e320a79
DW
43wxFontDialog::wxFontDialog()
44{
45 m_dialogParent = NULL;
46}
47
b63b737d 48wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& rData)
0e320a79 49{
b63b737d 50 Create(parent, rData);
0e320a79
DW
51}
52
b63b737d 53bool wxFontDialog::Create(wxWindow *parent, const wxFontData& rData)
0e320a79
DW
54{
55 m_dialogParent = parent;
56
b63b737d 57 m_fontData = rData;
0e320a79
DW
58 return TRUE;
59}
60
61int wxFontDialog::ShowModal()
62{
63 // TODO: show (maybe create) the dialog
64 return wxID_CANCEL;
65}
66