1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        wx/gtk/fontdlgg.h
3 // Purpose:     wxFontDialog
4 // Author:      Robert Roebling
5 // Created:
6 // RCS-ID:      $Id: fontdlg.h 38448 2006-03-30 14:04:17Z ABX $
7 // Copyright:   (c) Robert Roebling
8 // Licence:     wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10 
11 #ifndef __GTK_FONTDLGH__
12 #define __GTK_FONTDLGH__
13 
14 //-----------------------------------------------------------------------------
15 // wxFontDialog
16 //-----------------------------------------------------------------------------
17 
18 class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase
19 {
20 public:
wxFontDialog()21     wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
wxFontDialog(wxWindow * parent)22     wxFontDialog(wxWindow *parent)
23         : wxFontDialogBase(parent) { Create(parent); }
wxFontDialog(wxWindow * parent,const wxFontData & data)24     wxFontDialog(wxWindow *parent, const wxFontData& data)
25         : wxFontDialogBase(parent, data) { Create(parent, data); }
26 
27     virtual ~wxFontDialog();
28 
29     // implementation only
30     void SetChosenFont(const char *name);
31 
32 #if WXWIN_COMPATIBILITY_2_6
33     // deprecated interface, don't use
34     wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) );
35 #endif // WXWIN_COMPATIBILITY_2_6
36 
37 protected:
38     // create the GTK dialog
39     virtual bool DoCreate(wxWindow *parent);
40 
41 private:
42     DECLARE_DYNAMIC_CLASS(wxFontDialog)
43 };
44 
45 #if WXWIN_COMPATIBILITY_2_6
46     // deprecated interface, don't use
wxFontDialog(wxWindow * parent,const wxFontData * data)47 inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data)
48         : wxFontDialogBase(parent) { InitFontData(data); Create(parent); }
49 #endif // WXWIN_COMPATIBILITY_2_6
50 
51 #endif
52