// Name: property.h
// Purpose: interface of wxPGProperty
// Author: wxWidgets team
-// RCS-ID: $Id:
+// RCS-ID: $Id$
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
*/
bool ChangePropertyValue( wxPGPropArg id, wxVariant newValue );
- /**
- Resets value of a property to its default.
- */
- bool ClearPropertyValue( wxPGPropArg id );
-
/**
Deletes a property.
*/
*/
bool ExpandAll( bool expand = true );
- /**
- Returns list of expanded properties.
- */
- wxArrayPGProperty GetExpandedProperties() const;
-
/**
Returns id of first child of given property.
PageState = 0x08,
/** Include splitter position. Stored for each page. */
SplitterPosState = 0x10,
-
- /** Include all supported user editable state information. This is
- usually the default value. */
- AllStates = SelectionState | ExpandedState | ScrollPosState |
- PageState | SplitterPosState
+ /** Include description box size.
+ Only applies to wxPropertyGridManager. */
+ DescBoxState = 0x20,
+
+ /**
+ Include all supported user editable state information.
+ This is usually the default value. */
+ AllStates = SelectionState |
+ ExpandedState |
+ ScrollPosState |
+ PageState |
+ SplitterPosState |
+ DescBoxState
};
/**
static void SetBoolChoices( const wxString& trueChoice,
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.
void SetPropertyLabel( wxPGPropArg id, const wxString& newproplabel );
/**
- Set modified status of a property and all its children.
+ Sets name of a property.
+
+ @param id
+ Name or pointer of property which name to change.
+
+ @param newName
+ New name for property.
*/
- void SetPropertyModifiedStatus( wxPGPropArg id, bool modified );
+ void SetPropertyName( wxPGPropArg id, const wxString& newName );
/**
Sets property (and, recursively, its children) to have read-only value.