Added wxPGProperty::Enable() for conveniency. Refactored related code and improved related documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1523,6 +1523,17 @@ public:
|
||||
*/
|
||||
void DeleteChoice( int index );
|
||||
|
||||
/**
|
||||
Enables or disables the property. Disabled property usually appears
|
||||
as having grey text.
|
||||
|
||||
@param enable
|
||||
If @false, property is disabled instead.
|
||||
|
||||
@see wxPropertyGridInterface::EnableProperty()
|
||||
*/
|
||||
void Enable( bool enable = true );
|
||||
|
||||
/**
|
||||
Call to enable or disable usage of common value (integer value that can
|
||||
be selected for properties instead of their normal values) for this
|
||||
@@ -2357,6 +2368,8 @@ protected:
|
||||
// Removes child property with given pointer. Does not delete it.
|
||||
void RemoveChild( wxPGProperty* p );
|
||||
|
||||
void DoEnable( bool enable );
|
||||
|
||||
void DoPreAddChild( int index, wxPGProperty* prop );
|
||||
|
||||
void SetParentState( wxPropertyGridPageState* pstate )
|
||||
|
@@ -267,7 +267,11 @@ public:
|
||||
*/
|
||||
wxPGProperty* RemoveProperty( wxPGPropArg id );
|
||||
|
||||
/** Disables property. */
|
||||
/**
|
||||
Disables a property.
|
||||
|
||||
@see EnableProperty(), wxPGProperty::Enable()
|
||||
*/
|
||||
bool DisableProperty( wxPGPropArg id ) { return EnableProperty(id,false); }
|
||||
|
||||
/**
|
||||
@@ -280,7 +284,14 @@ public:
|
||||
|
||||
/**
|
||||
Enables or disables property, depending on whether enable is true or
|
||||
false.
|
||||
false. Disabled property usually appears as having grey text.
|
||||
|
||||
@param id
|
||||
Name or pointer to a property.
|
||||
@param enable
|
||||
If @false, property is disabled instead.
|
||||
|
||||
@see wxPGProperty::Enable()
|
||||
*/
|
||||
bool EnableProperty( wxPGPropArg id, bool enable = true );
|
||||
|
||||
|
@@ -473,9 +473,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/** Enables or disables given property and its subproperties. */
|
||||
bool DoEnableProperty( wxPGProperty* p, bool enable );
|
||||
|
||||
/** Returns (precalculated) height of contained visible properties.
|
||||
*/
|
||||
unsigned int GetVirtualHeight() const
|
||||
|
Reference in New Issue
Block a user