]>
Commit | Line | Data |
---|---|---|
0e320a79 | 1 | ///////////////////////////////////////////////////////////////////////////// |
ca3e85cf | 2 | // Name: wx/os2/fontdlg.h |
0e320a79 DW |
3 | // Purpose: wxFontDialog class. Use generic version if no |
4 | // platform-specific implementation. | |
21802234 | 5 | // Author: David Webster |
0e320a79 | 6 | // Modified by: |
21802234 | 7 | // Created: 10/06/99 |
21802234 | 8 | // Copyright: (c) David Webster |
65571936 | 9 | // Licence: wxWindows licence |
0e320a79 DW |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_FONTDLG_H_ | |
13 | #define _WX_FONTDLG_H_ | |
14 | ||
0e320a79 | 15 | #include "wx/dialog.h" |
0e320a79 DW |
16 | |
17 | /* | |
18 | * Font dialog | |
19 | */ | |
21802234 | 20 | |
53a2db12 | 21 | class WXDLLIMPEXP_CORE wxFontDialog: public wxFontDialogBase |
0e320a79 | 22 | { |
0e320a79 | 23 | public: |
07df68c8 DW |
24 | wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ } |
25 | wxFontDialog (wxWindow* pParent) : wxFontDialogBase(pParent) { Create(pParent); } | |
26 | wxFontDialog( wxWindow* pParent | |
27 | ,const wxFontData& rData | |
28 | ) | |
29 | : wxFontDialogBase( pParent | |
30 | ,rData | |
31 | ) | |
32 | { | |
33 | Create( pParent | |
34 | ,rData | |
35 | ); | |
36 | } | |
37 | ||
38 | virtual int ShowModal(); | |
39 | ||
ca3e85cf | 40 | #if WXWIN_COMPATIBILITY_2_6 |
07df68c8 DW |
41 | // |
42 | // Deprecated interface, don't use | |
43 | // | |
ca3e85cf WS |
44 | wxDEPRECATED( wxFontDialog( wxWindow* pParent, const wxFontData* pData ) ); |
45 | #endif // WXWIN_COMPATIBILITY_2_6 | |
46 | ||
07df68c8 DW |
47 | protected: |
48 | DECLARE_DYNAMIC_CLASS(wxFontDialog) | |
49 | }; // end of CLASS wxFontDialog | |
0e320a79 | 50 | |
ca3e85cf WS |
51 | #if WXWIN_COMPATIBILITY_2_6 |
52 | // deprecated interface, don't use | |
53 | inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data) | |
54 | : wxFontDialogBase(parent) { InitFontData(data); Create(parent); } | |
55 | #endif // WXWIN_COMPATIBILITY_2_6 | |
56 | ||
0e320a79 DW |
57 | #endif |
58 | // _WX_FONTDLG_H_ |