]>
Commit | Line | Data |
---|---|---|
6dfaa4e5 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/fontdlg.h |
6dfaa4e5 RR |
3 | // Purpose: wxFontDialog |
4 | // Author: Robert Roebling | |
7beba2fc | 5 | // Created: |
6dfaa4e5 | 6 | // Copyright: (c) Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
6dfaa4e5 RR |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
dddda0eb PC |
10 | #ifndef _WX_GTK_FONTDLG_H_ |
11 | #define _WX_GTK_FONTDLG_H_ | |
6dfaa4e5 | 12 | |
6dfaa4e5 RR |
13 | //----------------------------------------------------------------------------- |
14 | // wxFontDialog | |
15 | //----------------------------------------------------------------------------- | |
16 | ||
20123d49 | 17 | class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase |
6dfaa4e5 RR |
18 | { |
19 | public: | |
dbc65e27 VZ |
20 | wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ } |
21 | wxFontDialog(wxWindow *parent) | |
22 | : wxFontDialogBase(parent) { Create(parent); } | |
23 | wxFontDialog(wxWindow *parent, const wxFontData& data) | |
24 | : wxFontDialogBase(parent, data) { Create(parent, data); } | |
25 | ||
26 | virtual ~wxFontDialog(); | |
27 | ||
ca3e85cf | 28 | #if WXWIN_COMPATIBILITY_2_6 |
dbc65e27 | 29 | // deprecated interface, don't use |
ca3e85cf WS |
30 | wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) ); |
31 | #endif // WXWIN_COMPATIBILITY_2_6 | |
6dfaa4e5 | 32 | |
dbc65e27 VZ |
33 | protected: |
34 | // create the GTK dialog | |
35 | virtual bool DoCreate(wxWindow *parent); | |
6dfaa4e5 | 36 | |
6dfaa4e5 RR |
37 | DECLARE_DYNAMIC_CLASS(wxFontDialog) |
38 | }; | |
39 | ||
ca3e85cf WS |
40 | #if WXWIN_COMPATIBILITY_2_6 |
41 | // deprecated interface, don't use | |
42 | inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data) | |
43 | : wxFontDialogBase(parent) { InitFontData(data); Create(parent); } | |
44 | #endif // WXWIN_COMPATIBILITY_2_6 | |
45 | ||
6dfaa4e5 | 46 | #endif |