]> git.saurik.com Git - wxWidgets.git/blame - src/mac/classic/fontdlg.cpp
wxStandardPathsCF::GetExecutablePath() implementation doesn't use CF API but Carbon...
[wxWidgets.git] / src / mac / classic / fontdlg.cpp
CommitLineData
2646f485 1/////////////////////////////////////////////////////////////////////////////
ce5d92e1 2// Name: src/mac/classic/fontdlg.cpp
2646f485
SC
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
ce5d92e1 10// Licence: wxWindows licence
2646f485
SC
11/////////////////////////////////////////////////////////////////////////////
12
ce5d92e1
WS
13#include "wx/wxprec.h"
14
2646f485 15#include "wx/mac/fontdlg.h"
ce5d92e1
WS
16
17#ifndef WX_PRECOMP
18 #include "wx/cmndata.h"
19#endif
2646f485 20
2646f485 21IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
2646f485
SC
22
23/*
24 * wxFontDialog
25 */
26
27wxFontDialog::wxFontDialog()
28{
29 m_dialogParent = NULL;
30}
31
32wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
33{
34 Create(parent, data);
35}
36
37bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
38{
39 m_dialogParent = parent;
40
41 m_fontData = data;
42
43 // TODO: you may need to do dialog creation here, unless it's
44 // done in ShowModal.
ce5d92e1 45 return true;
2646f485
SC
46}
47
48int wxFontDialog::ShowModal()
49{
50 // TODO: show (maybe create) the dialog
51 return wxID_CANCEL;
52}