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