fontdlg.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk1/fontdlg.h
  3. // Purpose: wxFontDialog
  4. // Author: Robert Roebling
  5. // Created:
  6. // Copyright: (c) Robert Roebling
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef __GTK_FONTDLGH__
  10. #define __GTK_FONTDLGH__
  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. // implementation only
  24. void SetChosenFont(const char *name);
  25. #if WXWIN_COMPATIBILITY_2_6
  26. // deprecated interface, don't use
  27. wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) );
  28. #endif // WXWIN_COMPATIBILITY_2_6
  29. protected:
  30. // create the GTK dialog
  31. virtual bool DoCreate(wxWindow *parent);
  32. private:
  33. DECLARE_DYNAMIC_CLASS(wxFontDialog)
  34. };
  35. #if WXWIN_COMPATIBILITY_2_6
  36. // deprecated interface, don't use
  37. inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data)
  38. : wxFontDialogBase(parent) { InitFontData(data); Create(parent); }
  39. #endif // WXWIN_COMPATIBILITY_2_6
  40. #endif