#if wxUSE_FONTPICKERCTRL
-#include "wx/control.h"
#include "wx/pickerbase.h"
virtual wxString Font2String(const wxFont &font);
virtual wxFont String2Font(const wxString &font);
+protected:
+
// extracts the style for our picker from wxFontPickerCtrl's style
long GetPickerStyle(long style) const
{ return (style & (wxFNTP_FONTDESC_AS_LABEL|wxFNTP_USEFONT_FOR_LABEL)); }
-protected:
-
// true if the next UpdateTextCtrl() call is to ignore
bool m_bIgnoreNextTextCtrlUpdate;
wxFont GetFont() const { return m_font; }
void SetFont(const wxFont &c) { m_font = c; }
+ // default copy ctor, assignment operator and dtor are ok
+ virtual wxEvent *Clone() const { return new wxFontPickerEvent(*this); }
+
private:
wxFont m_font;
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxFontPickerEvent)
+ DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxFontPickerEvent)
};
// ----------------------------------------------------------------------------