projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use member variable instead of a global in the dialogs sample.
[wxWidgets.git]
/
src
/
propgrid
/
propgridiface.cpp
diff --git
a/src/propgrid/propgridiface.cpp
b/src/propgrid/propgridiface.cpp
index a1c037756d95a37bb93e7a7ecb65b0a601ddf95f..1984ce6bb40d37243fbaa139a8e25ada3d080a20 100644
(file)
--- a/
src/propgrid/propgridiface.cpp
+++ b/
src/propgrid/propgridiface.cpp
@@
-102,7
+102,7
@@
void wxPropertyGridInterface::RefreshGrid( wxPropertyGridPageState* state )
wxPGProperty* wxPropertyGridInterface::Append( wxPGProperty* property )
{
wxPGProperty* retp = m_pState->DoAppend(property);
wxPGProperty* wxPropertyGridInterface::Append( wxPGProperty* property )
{
wxPGProperty* retp = m_pState->DoAppend(property);
-
+
wxPropertyGrid* grid = m_pState->GetGrid();
if ( grid )
grid->RefreshGrid();
wxPropertyGrid* grid = m_pState->GetGrid();
if ( grid )
grid->RefreshGrid();
@@
-216,7
+216,11
@@
wxPGProperty* wxPropertyGridInterface::GetSelection() const
bool wxPropertyGridInterface::ClearSelection( bool validation )
{
bool wxPropertyGridInterface::ClearSelection( bool validation )
{
- return DoClearSelection(validation, wxPG_SEL_DONT_SEND_EVENT);
+ bool res = DoClearSelection(validation, wxPG_SEL_DONT_SEND_EVENT);
+ wxPropertyGrid* pg = GetPropertyGrid();
+ if ( pg )
+ pg->Refresh();
+ return res;
}
// -----------------------------------------------------------------------
}
// -----------------------------------------------------------------------
@@
-860,7
+864,7
@@
wxString wxPropertyGridInterface::SaveEditableState( int includedStates ) const
if ( includedStates & ExpandedState )
{
wxArrayPGProperty ptrs;
if ( includedStates & ExpandedState )
{
wxArrayPGProperty ptrs;
- wxPropertyGridConstIterator it =
+ wxPropertyGridConstIterator it =
wxPropertyGridConstIterator( pageState,
wxPG_ITERATE_ALL_PARENTS_RECURSIVELY|wxPG_ITERATE_HIDDEN,
wxNullProperty );
wxPropertyGridConstIterator( pageState,
wxPG_ITERATE_ALL_PARENTS_RECURSIVELY|wxPG_ITERATE_HIDDEN,
wxNullProperty );
@@
-964,7
+968,7
@@
bool wxPropertyGridInterface::RestoreEditableState( const wxString& src, int res
{
if ( restoreStates & ExpandedState )
{
{
if ( restoreStates & ExpandedState )
{
- wxPropertyGridIterator it =
+ wxPropertyGridIterator it =
wxPropertyGridIterator( pageState,
wxPG_ITERATE_ALL,
wxNullProperty );
wxPropertyGridIterator( pageState,
wxPG_ITERATE_ALL,
wxNullProperty );