]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: fontdlg.h | |
72fcdc75 RN |
3 | // Purpose: wxFontDialog class using fonts window services (10.2+). |
4 | // Author: Ryan Norton | |
8cf73271 | 5 | // Modified by: |
72fcdc75 | 6 | // Created: 2004-09-25 |
8cf73271 | 7 | // RCS-ID: $Id$ |
72fcdc75 | 8 | // Copyright: (c) Ryan Norton |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_FONTDLG_H_ | |
13 | #define _WX_FONTDLG_H_ | |
14 | ||
15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
16 | #pragma interface "fontdlg.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/dialog.h" | |
20 | #include "wx/cmndata.h" | |
21 | ||
22 | /* | |
23 | * Font dialog | |
24 | */ | |
25 | ||
26 | class WXDLLEXPORT wxFontDialog: public wxDialog | |
27 | { | |
28 | DECLARE_DYNAMIC_CLASS(wxFontDialog) | |
72fcdc75 | 29 | |
8cf73271 SC |
30 | public: |
31 | wxFontDialog(); | |
32 | wxFontDialog(wxWindow *parent, const wxFontData& data); | |
72fcdc75 | 33 | ~wxFontDialog(); |
8cf73271 SC |
34 | |
35 | bool Create(wxWindow *parent, const wxFontData& data); | |
36 | ||
37 | int ShowModal(); | |
38 | wxFontData& GetFontData() { return m_fontData; } | |
72fcdc75 RN |
39 | bool IsShown() const; |
40 | void OnPanelClose(); | |
41 | void SetData(wxFontData& data); | |
8cf73271 SC |
42 | |
43 | protected: | |
44 | wxWindow* m_dialogParent; | |
45 | wxFontData m_fontData; | |
72fcdc75 | 46 | void* m_pEventHandlerRef; |
8cf73271 SC |
47 | }; |
48 | ||
49 | #endif | |
50 | // _WX_FONTDLG_H_ | |
51 |