Removed SetPropertiesFlag() (high-level function using 'undocumented' wxPGProperty flags, IIRC was mostly used as poor-man's SetEditableState() and possibly for internal use until very recently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d61d8cffa9
commit
ff1e1474ed
@ -833,16 +833,6 @@ public:
|
|||||||
static void SetBoolChoices( const wxString& trueChoice,
|
static void SetBoolChoices( const wxString& trueChoice,
|
||||||
const wxString& falseChoice );
|
const wxString& falseChoice );
|
||||||
|
|
||||||
/** Sets or clears flag(s) of all properties in given array.
|
|
||||||
@param flags
|
|
||||||
Property flags to set or clear.
|
|
||||||
@param inverse
|
|
||||||
Set to true if you want to clear flag instead of setting them.
|
|
||||||
*/
|
|
||||||
void SetPropertiesFlag( const wxArrayPGProperty& srcArr,
|
|
||||||
wxPGProperty::FlagType flags,
|
|
||||||
bool inverse = false );
|
|
||||||
|
|
||||||
/** Sets an attribute for this property.
|
/** Sets an attribute for this property.
|
||||||
@param name
|
@param name
|
||||||
Text identifier of attribute. See @ref propgrid_property_attributes.
|
Text identifier of attribute. See @ref propgrid_property_attributes.
|
||||||
|
@ -564,18 +564,6 @@ public:
|
|||||||
static void SetBoolChoices( const wxString& trueChoice,
|
static void SetBoolChoices( const wxString& trueChoice,
|
||||||
const wxString& falseChoice );
|
const wxString& falseChoice );
|
||||||
|
|
||||||
/**
|
|
||||||
Sets or clears flag(s) of all properties in given array.
|
|
||||||
|
|
||||||
@param flags
|
|
||||||
Property flags to set or clear.
|
|
||||||
|
|
||||||
@param inverse
|
|
||||||
Set to true if you want to clear flag instead of setting them.
|
|
||||||
*/
|
|
||||||
void SetPropertiesFlag( const wxArrayPGProperty& srcArr, wxPGProperty::FlagType flags,
|
|
||||||
bool inverse = false );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an attribute for this property.
|
Sets an attribute for this property.
|
||||||
|
|
||||||
|
@ -639,34 +639,6 @@ void wxPropertyGridInterface::GetPropertiesWithFlag( wxArrayPGProperty* targetAr
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void wxPropertyGridInterface::SetPropertiesFlag( const wxArrayPGProperty& srcArr,
|
|
||||||
wxPGProperty::FlagType flags,
|
|
||||||
bool inverse )
|
|
||||||
{
|
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
for ( i=0; i<srcArr.size(); i++ )
|
|
||||||
{
|
|
||||||
wxPGProperty* property = srcArr[i];
|
|
||||||
|
|
||||||
if ( !inverse )
|
|
||||||
property->SetFlag(flags);
|
|
||||||
else
|
|
||||||
property->ClearFlag(flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
// If collapsed flag or hidden was manipulated, we need to update virtual
|
|
||||||
// size.
|
|
||||||
wxPropertyGrid* pg = GetPropertyGrid();
|
|
||||||
if ( flags & (wxPG_PROP_COLLAPSED|wxPG_PROP_HIDDEN) )
|
|
||||||
{
|
|
||||||
GetState()->VirtualHeightChanged();
|
|
||||||
pg->RecalculateVirtualSize();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
|
||||||
|
|
||||||
void wxPropertyGridInterface::SetBoolChoices( const wxString& trueChoice,
|
void wxPropertyGridInterface::SetBoolChoices( const wxString& trueChoice,
|
||||||
const wxString& falseChoice )
|
const wxString& falseChoice )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user