Added Description Box Height to saveable/restoreable editable state

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-10-04 10:59:06 +00:00
parent a5d567622f
commit 6280517046
5 changed files with 85 additions and 5 deletions

View File

@@ -794,6 +794,9 @@ public:
PageState = 0x08,
/** Include splitter position. Stored for each page. */
SplitterPosState = 0x10,
/** Include description box size.
Only applies to wxPropertyGridManager. */
DescBoxState = 0x20,
/**
Include all supported user editable state information.
@@ -802,7 +805,8 @@ public:
ExpandedState |
ScrollPosState |
PageState |
SplitterPosState
SplitterPosState |
DescBoxState
};
/**
@@ -1435,6 +1439,27 @@ public:
protected:
/**
In derived class, implement to set editable state component with
given name to given value.
*/
virtual bool SetEditableStateItem( const wxString& name, wxVariant value )
{
wxUnusedVar(name);
wxUnusedVar(value);
return false;
}
/**
In derived class, implement to return editable state component with
given name.
*/
virtual wxVariant GetEditableStateItem( const wxString& name ) const
{
wxUnusedVar(name);
return wxNullVariant;
}
// Returns page state data for given (sub) page (-1 means current page).
virtual wxPropertyGridPageState* GetPageState( int pageIndex ) const
{