Use getter/setter methods to get access to wxPGProperty::m_flags.
Use dedicated wxPGProperty::HasFlags, wxPGProperty::SetFlag methods to check or modify wxPGProperty::m_flags member variable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -728,7 +728,7 @@ public:
|
||||
bool IsPropertyEnabled( wxPGPropArg id ) const
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(false)
|
||||
return (!(p->GetFlags() & wxPG_PROP_DISABLED))?true:false;
|
||||
return !p->HasFlag(wxPG_PROP_DISABLED);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -745,7 +745,11 @@ public:
|
||||
bool IsPropertyModified( wxPGPropArg id ) const
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(false)
|
||||
return ( (p->GetFlags() & wxPG_PROP_MODIFIED) ? true : false );
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
return p->HasFlag(wxPG_PROP_MODIFIED)?true:false;
|
||||
#else
|
||||
return p->HasFlag(wxPG_PROP_MODIFIED);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -764,7 +768,7 @@ public:
|
||||
bool IsPropertyShown( wxPGPropArg id ) const
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(false)
|
||||
return (!(p->GetFlags() & wxPG_PROP_HIDDEN))?true:false;
|
||||
return !p->HasFlag(wxPG_PROP_HIDDEN);
|
||||
}
|
||||
|
||||
/** Returns true if property value is set to unspecified.
|
||||
|
Reference in New Issue
Block a user