2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: fontdlg.h
|
2004-09-26 10:13:26 -04:00
|
|
|
// Purpose: wxFontDialog class using fonts window services (10.2+).
|
|
|
|
// Author: Ryan Norton
|
2004-03-23 12:35:05 -05:00
|
|
|
// Modified by:
|
2004-09-26 10:13:26 -04:00
|
|
|
// Created: 2004-09-25
|
2004-03-23 12:35:05 -05:00
|
|
|
// RCS-ID: $Id$
|
2004-09-26 10:13:26 -04:00
|
|
|
// Copyright: (c) Ryan Norton
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_FONTDLG_H_
|
|
|
|
#define _WX_FONTDLG_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "fontdlg.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
#include "wx/cmndata.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Font dialog
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxFontDialog: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxFontDialog)
|
2004-09-26 10:13:26 -04:00
|
|
|
|
2004-03-23 12:35:05 -05:00
|
|
|
public:
|
|
|
|
wxFontDialog();
|
|
|
|
wxFontDialog(wxWindow *parent, const wxFontData& data);
|
2004-09-26 10:13:26 -04:00
|
|
|
~wxFontDialog();
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
bool Create(wxWindow *parent, const wxFontData& data);
|
|
|
|
|
|
|
|
int ShowModal();
|
|
|
|
wxFontData& GetFontData() { return m_fontData; }
|
2004-09-26 10:13:26 -04:00
|
|
|
bool IsShown() const;
|
|
|
|
void OnPanelClose();
|
|
|
|
void SetData(wxFontData& data);
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
wxWindow* m_dialogParent;
|
|
|
|
wxFontData m_fontData;
|
2004-09-26 10:13:26 -04:00
|
|
|
void* m_pEventHandlerRef;
|
2004-03-23 12:35:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_FONTDLG_H_
|
|
|
|
|