]>
Commit | Line | Data |
---|---|---|
6dfaa4e5 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk1/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 | ||
10 | #ifndef __GTK_FONTDLGH__ | |
11 | #define __GTK_FONTDLGH__ | |
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 | ||
28 | // implementation only | |
29 | void SetChosenFont(const char *name); | |
6dfaa4e5 | 30 | |
ca3e85cf | 31 | #if WXWIN_COMPATIBILITY_2_6 |
dbc65e27 | 32 | // deprecated interface, don't use |
ca3e85cf WS |
33 | wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) ); |
34 | #endif // WXWIN_COMPATIBILITY_2_6 | |
6dfaa4e5 | 35 | |
dbc65e27 VZ |
36 | protected: |
37 | // create the GTK dialog | |
38 | virtual bool DoCreate(wxWindow *parent); | |
6dfaa4e5 RR |
39 | |
40 | private: | |
41 | DECLARE_DYNAMIC_CLASS(wxFontDialog) | |
42 | }; | |
43 | ||
ca3e85cf WS |
44 | #if WXWIN_COMPATIBILITY_2_6 |
45 | // deprecated interface, don't use | |
46 | inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data) | |
47 | : wxFontDialogBase(parent) { InitFontData(data); Create(parent); } | |
48 | #endif // WXWIN_COMPATIBILITY_2_6 | |
49 | ||
6dfaa4e5 | 50 | #endif |