fontdlg.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/os2/fontdlg.h
  3. // Purpose: wxFontDialog class. Use generic version if no
  4. // platform-specific implementation.
  5. // Author: David Webster
  6. // Modified by:
  7. // Created: 10/06/99
  8. // Copyright: (c) David Webster
  9. // Licence: wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11. #ifndef _WX_FONTDLG_H_
  12. #define _WX_FONTDLG_H_
  13. #include "wx/dialog.h"
  14. /*
  15. * Font dialog
  16. */
  17. class WXDLLIMPEXP_CORE wxFontDialog: public wxFontDialogBase
  18. {
  19. public:
  20. wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
  21. wxFontDialog (wxWindow* pParent) : wxFontDialogBase(pParent) { Create(pParent); }
  22. wxFontDialog( wxWindow* pParent
  23. ,const wxFontData& rData
  24. )
  25. : wxFontDialogBase( pParent
  26. ,rData
  27. )
  28. {
  29. Create( pParent
  30. ,rData
  31. );
  32. }
  33. virtual int ShowModal();
  34. #if WXWIN_COMPATIBILITY_2_6
  35. //
  36. // Deprecated interface, don't use
  37. //
  38. wxDEPRECATED( wxFontDialog( wxWindow* pParent, const wxFontData* pData ) );
  39. #endif // WXWIN_COMPATIBILITY_2_6
  40. protected:
  41. DECLARE_DYNAMIC_CLASS(wxFontDialog)
  42. }; // end of CLASS wxFontDialog
  43. #if WXWIN_COMPATIBILITY_2_6
  44. // deprecated interface, don't use
  45. inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data)
  46. : wxFontDialogBase(parent) { InitFontData(data); Create(parent); }
  47. #endif // WXWIN_COMPATIBILITY_2_6
  48. #endif
  49. // _WX_FONTDLG_H_