git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60466
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else m_flags &= ~wxPG_PROP_COLLAPSED;
}
else m_flags &= ~wxPG_PROP_COLLAPSED;
}
+ /**
+ Sets given property flag(s).
+ */
void SetFlag( FlagType flag ) { m_flags |= flag; }
void SetFlag( FlagType flag ) { m_flags |= flag; }
+ /**
+ Sets or clears given property flag(s).
+ */
+ void ChangeFlag( FlagType flag, bool set )
+ {
+ if ( set )
+ m_flags |= flag;
+ else
+ m_flags &= ~flag;
+ }
+
void SetFlagRecursively( FlagType flag, bool set );
void SetHelpString( const wxString& helpString )
void SetFlagRecursively( FlagType flag, bool set );
void SetHelpString( const wxString& helpString )
if ( flags & wxPG_RECURSE )
p->SetFlagRecursively(wxPG_PROP_READONLY, set);
else
if ( flags & wxPG_RECURSE )
p->SetFlagRecursively(wxPG_PROP_READONLY, set);
else
- p->SetFlag(wxPG_PROP_READONLY);
+ p->ChangeFlag(wxPG_PROP_READONLY, set);
}
/** Sets property's value to unspecified.
}
/** Sets property's value to unspecified.
void wxPGProperty::SetFlagRecursively( FlagType flag, bool set )
{
void wxPGProperty::SetFlagRecursively( FlagType flag, bool set )
{
- if ( set )
- SetFlag(flag);
- else
- ClearFlag(flag);
unsigned int i;
for ( i = 0; i < GetChildCount(); i++ )
unsigned int i;
for ( i = 0; i < GetChildCount(); i++ )