virtual ~wxFontProperty();
virtual void OnSetValue();
virtual wxString GetValueAsString( int argFlags = 0 ) const;
-
- WX_PG_DECLARE_EVENT_METHODS()
- WX_PG_DECLARE_PARENTAL_METHODS()
- //WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
+ virtual bool OnEvent( wxPropertyGrid* propgrid,
+ wxWindow* primary, wxEvent& event );
+ virtual void ChildChanged( wxVariant& thisValue,
+ int childIndex, wxVariant& childValue ) const;
+ virtual void RefreshChildren();
protected:
};
*/
virtual int GetCustomColourIndex() const;
- WX_PG_DECLARE_BASIC_TYPE_METHODS()
- WX_PG_DECLARE_EVENT_METHODS()
- WX_PG_DECLARE_ATTRIBUTE_METHODS()
-
- WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
- //virtual wxSize GetImageSize( int item ) const;
- //virtual wxPGCellRenderer* GetCellRenderer( int column ) const;
+ virtual wxString GetValueAsString( int argFlags = 0 ) const;
+ virtual bool StringToValue( wxVariant& variant,
+ const wxString& text,
+ int argFlags = 0 ) const;
+ virtual bool OnEvent( wxPropertyGrid* propgrid,
+ wxWindow* primary, wxEvent& event );
+ virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
+ virtual wxSize OnMeasureImage( int item ) const;
+ virtual void OnCustomPaint( wxDC& dc,
+ const wxRect& rect, wxPGPaintData& paintdata );
// Helper function to show the colour dialog
bool QueryColourFromUser( wxVariant& variant ) const;
int value = 0 );
virtual ~wxCursorProperty();
- WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
- //virtual wxSize GetImageSize( int item ) const;
- //virtual wxPGCellRenderer* GetCellRenderer( int column ) const;
+ virtual wxSize OnMeasureImage( int item ) const;
+ virtual void OnCustomPaint( wxDC& dc,
+ const wxRect& rect, wxPGPaintData& paintdata );
};
// -----------------------------------------------------------------------
virtual void OnSetValue();
- WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
+ virtual wxSize OnMeasureImage( int item ) const;
+ virtual void OnCustomPaint( wxDC& dc,
+ const wxRect& rect, wxPGPaintData& paintdata );
protected:
wxBitmap* m_pBitmap; // final thumbnail area
virtual bool StringToValue(wxVariant& variant,
const wxString& text,
int argFlags = 0) const;
- WX_PG_DECLARE_EVENT_METHODS()
-
- virtual int GetChoiceInfo( wxPGChoiceInfo* choiceinfo );
+ virtual bool OnEvent( wxPropertyGrid* propgrid,
+ wxWindow* primary, wxEvent& event );
wxArrayInt GetValueAsArrayInt() const
{
wxArrayString m_valueAsStrings; // Value as array of strings
- wxPGChoices m_choices;
-
// Cache displayed text since generating it is relatively complicated.
wxString m_display;
};
const wxString& text,
int argFlags = 0) const;
- WX_PG_DECLARE_ATTRIBUTE_METHODS()
+ virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
void SetFormat( const wxString& format )
{