2004-06-19 00:50:34 +02:00
|
|
|
// $Id: fontselect.h,v 1.3 2004/06/18 22:50:34 philip Exp $
|
2004-06-17 21:32:04 +02:00
|
|
|
|
2004-06-19 00:50:34 +02:00
|
|
|
#ifdef _WIN32
|
2004-06-17 21:32:04 +02:00
|
|
|
class FontSelectorDialog : public wxDialog
|
2004-06-19 00:50:34 +02:00
|
|
|
#else
|
|
|
|
class FontSelectorDialog : public wxFileDialog
|
|
|
|
#endif
|
2004-06-17 21:32:04 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
FontSelectorDialog(wxWindow* parent);
|
|
|
|
~FontSelectorDialog();
|
|
|
|
|
|
|
|
wxString FontName;
|
|
|
|
wxString FontFilename;
|
|
|
|
|
2004-06-19 00:05:58 +02:00
|
|
|
#ifdef _WIN32
|
2004-06-17 21:32:04 +02:00
|
|
|
void OnFontSelect(wxCommandEvent& event);
|
|
|
|
void OnOK(wxCommandEvent& event);
|
2004-06-19 00:50:34 +02:00
|
|
|
//#else
|
|
|
|
// void OnInit(wxInitDialogEvent& event);
|
2004-06-19 00:05:58 +02:00
|
|
|
#endif
|
2004-06-17 21:32:04 +02:00
|
|
|
|
|
|
|
static void DefaultFonts(wxString& Name0, wxString& Filename0, wxString& Name1, wxString& Filename1);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2004-06-19 00:05:58 +02:00
|
|
|
#ifdef _WIN32
|
2004-06-17 21:32:04 +02:00
|
|
|
wxArrayString FontNames;
|
|
|
|
wxCharBuffer** FontFilenames;
|
2004-06-19 00:05:58 +02:00
|
|
|
#endif
|
2004-06-17 21:32:04 +02:00
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|