X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c78066f22deac771842e2e784772415486329e1..1d065710d3cf39e519f05fd02760006b9a929c38:/include/wx/propgrid/property.h?ds=inline diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index da6e966f7b..dea6f5c63a 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -12,6 +12,8 @@ #ifndef _WX_PROPGRID_PROPERTY_H_ #define _WX_PROPGRID_PROPERTY_H_ +#include "wx/defs.h" + #if wxUSE_PROPGRID #include "wx/propgrid/propgriddefs.h" @@ -304,6 +306,13 @@ public: return *this; } + // Used mostly internally to figure out if this cell is supposed + // to have default values when attached to a grid. + bool IsInvalid() const + { + return ( m_refData == NULL ); + } + private: virtual wxObjectRefData *CreateRefData() const { return new wxPGCellData(); } @@ -688,6 +697,12 @@ wxPG_PROP_BEING_DELETED = 0x00200000 */ #define wxPG_COLOUR_ALLOW_CUSTOM wxS("AllowCustom") +/** + wxColourProperty and its kind: Set to True in order to support editing + alpha colour component. +*/ +#define wxPG_COLOUR_HAS_ALPHA wxS("HasAlpha") + /** @} */ @@ -1915,7 +1930,7 @@ public: modifying the value of the editor control (usually by clearing it). Currently, this can work with following properties: wxIntProperty, wxUIntProperty, wxFloatProperty, wxEditEnumProperty. - + @param enable Whether to enable or disable this behavior (it is disabled by default). @@ -2393,6 +2408,11 @@ protected: void ClearFlag( FlagType flag ) { m_flags &= ~(flag); } + // Called when the property is being removed from the grid and/or + // page state (but *not* when it is also deleted). + void OnDetached(wxPropertyGridPageState* state, + wxPropertyGrid* propgrid); + // Call after fixed sub-properties added/removed after creation. // if oldSelInd >= 0 and < new max items, then selection is // moved to it.