1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/fontdlg.h
3 // Purpose: wxFontDialog
4 // Author: Robert Roebling
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTK_FONTDLGH__
11 #define __GTK_FONTDLGH__
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxFontDialog
: public wxFontDialogBase
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
); }
26 virtual ~wxFontDialog();
28 // implementation only
29 void SetChosenFont(const char *name
);
31 #if WXWIN_COMPATIBILITY_2_6
32 // deprecated interface, don't use
33 wxDEPRECATED( wxFontDialog(wxWindow
*parent
, const wxFontData
*data
) );
34 #endif // WXWIN_COMPATIBILITY_2_6
37 // create the GTK dialog
38 virtual bool DoCreate(wxWindow
*parent
);
41 DECLARE_DYNAMIC_CLASS(wxFontDialog
)
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