fontdlg.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk/fontdlg.h
  3. // Purpose: wxFontDialog
  4. // Author: Robert Roebling
  5. // Created:
  6. // Copyright: (c) Robert Roebling
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_GTK_FONTDLG_H_
  10. #define _WX_GTK_FONTDLG_H_
  11. //-----------------------------------------------------------------------------
  12. // wxFontDialog
  13. //-----------------------------------------------------------------------------
  14. class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase
  15. {
  16. public:
  17. wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
  18. wxFontDialog(wxWindow *parent)
  19. : wxFontDialogBase(parent) { Create(parent); }
  20. wxFontDialog(wxWindow *parent, const wxFontData& data)
  21. : wxFontDialogBase(parent, data) { Create(parent, data); }
  22. virtual ~wxFontDialog();
  23. #if WXWIN_COMPATIBILITY_2_6
  24. // deprecated interface, don't use
  25. wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) );
  26. #endif // WXWIN_COMPATIBILITY_2_6
  27. protected:
  28. // create the GTK dialog
  29. virtual bool DoCreate(wxWindow *parent);
  30. DECLARE_DYNAMIC_CLASS(wxFontDialog)
  31. };
  32. #if WXWIN_COMPATIBILITY_2_6
  33. // deprecated interface, don't use
  34. inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data)
  35. : wxFontDialogBase(parent) { InitFontData(data); Create(parent); }
  36. #endif // WXWIN_COMPATIBILITY_2_6
  37. #endif