X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f631217a9acf6073c95f9d8ce6e3df794e5953e..1d065710d3cf39e519f05fd02760006b9a929c38:/include/wx/propgrid/property.h?ds=sidebyside diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 5ef99831b9..dea6f5c63a 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -306,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(); } @@ -690,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") + /** @} */ @@ -1917,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). @@ -2395,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.