1999-08-24 20:30:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/gtk1/fontdlg.h
|
1999-08-24 20:30:10 +00:00
|
|
|
// Purpose: wxFontDialog
|
|
|
|
// Author: Robert Roebling
|
1999-11-05 19:03:19 +00:00
|
|
|
// Created:
|
1999-08-24 20:30:10 +00:00
|
|
|
// Copyright: (c) Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-08-24 20:30:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTK_FONTDLGH__
|
|
|
|
#define __GTK_FONTDLGH__
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxFontDialog
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase
|
1999-08-24 20:30:10 +00:00
|
|
|
{
|
|
|
|
public:
|
2002-05-12 19:35:33 +00:00
|
|
|
wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
|
|
|
|
wxFontDialog(wxWindow *parent)
|
|
|
|
: wxFontDialogBase(parent) { Create(parent); }
|
|
|
|
wxFontDialog(wxWindow *parent, const wxFontData& data)
|
|
|
|
: wxFontDialogBase(parent, data) { Create(parent, data); }
|
|
|
|
|
|
|
|
virtual ~wxFontDialog();
|
|
|
|
|
|
|
|
// implementation only
|
|
|
|
void SetChosenFont(const char *name);
|
1999-08-24 20:30:10 +00:00
|
|
|
|
2006-03-30 14:04:17 +00:00
|
|
|
#if WXWIN_COMPATIBILITY_2_6
|
2002-05-12 19:35:33 +00:00
|
|
|
// deprecated interface, don't use
|
2006-03-30 14:04:17 +00:00
|
|
|
wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) );
|
|
|
|
#endif // WXWIN_COMPATIBILITY_2_6
|
1999-08-24 20:30:10 +00:00
|
|
|
|
2002-05-12 19:35:33 +00:00
|
|
|
protected:
|
|
|
|
// create the GTK dialog
|
|
|
|
virtual bool DoCreate(wxWindow *parent);
|
1999-08-24 20:30:10 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxFontDialog)
|
|
|
|
};
|
|
|
|
|
2006-03-30 14:04:17 +00:00
|
|
|
#if WXWIN_COMPATIBILITY_2_6
|
|
|
|
// deprecated interface, don't use
|
|
|
|
inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data)
|
|
|
|
: wxFontDialogBase(parent) { InitFontData(data); Create(parent); }
|
|
|
|
#endif // WXWIN_COMPATIBILITY_2_6
|
|
|
|
|
1999-08-24 20:30:10 +00:00
|
|
|
#endif
|