virtual width should be disabled. */
void SetVirtualWidth( int width );
- /** Sets name of a property.
- @param id
- Name or pointer of property which name to change.
- @param newname
- New name.
- */
- void SetPropertyName( wxPGPropArg id, const wxString& newname )
- {
- wxPG_PROP_ARG_CALL_PROLOG()
- DoSetPropertyName( p, newname );
- }
-
/**
Moves splitter as left as possible, while still allowing all
labels to be shown in full.
int CacheColour( const wxColour& colour );
- void DoSetPropertyName( wxPGProperty* p, const wxString& newname );
-
// Sets up basic event handling for child control
void SetupChildEventHandling( wxWindow* wnd, int id );
p->SetModifiedStatus(modified);
}
+ /**
+ Sets name of a property.
+
+ @param id
+ Name or pointer of property which name to change.
+
+ @param newName
+ New name for property.
+ */
+ void SetPropertyName( wxPGPropArg id, const wxString& newName )
+ {
+ wxPG_PROP_ARG_CALL_PROLOG()
+ m_pState->DoSetPropertyName( p, newName );
+ }
+
/**
Sets property (and, recursively, its children) to have read-only value.
In other words, user cannot change the value in the editor, but they
wxPGProperty* DoGetRoot() const { return m_properties; }
+ void DoSetPropertyName( wxPGProperty* p, const wxString& newName );
+
// Returns combined width of margin and all the columns
int GetVirtualWidth() const
{
*/
void SetSplitterPosition( int newxpos, int col = 0 );
- /**
- Sets name of a property.
-
- @param id
- Name or pointer of property which name to change.
-
- @param newname
- New name.
- */
- void SetPropertyName( wxPGPropArg id, const wxString& newname );
-
/**
Moves splitter as left as possible, while still allowing all
labels to be shown in full.
*/
void SetPropertyModifiedStatus( wxPGPropArg id, bool modified );
+ /**
+ Sets name of a property.
+
+ @param id
+ Name or pointer of property which name to change.
+
+ @param newName
+ New name for property.
+ */
+ void SetPropertyName( wxPGPropArg id, const wxString& newName );
+
/**
Sets property (and, recursively, its children) to have read-only value.
In other words, user cannot change the value in the editor, but they can
// wxPropertyGrid property operations
// -----------------------------------------------------------------------
-void wxPropertyGrid::DoSetPropertyName( wxPGProperty* p, const wxString& newname )
-{
- wxCHECK_RET( p, wxT("invalid property id") );
-
- if ( p->GetBaseName().Len() ) m_pState->m_dictName.erase( p->GetBaseName() );
- if ( newname.Len() ) m_pState->m_dictName[newname] = (void*) p;
-
- p->DoSetName(newname);
-}
-
-// -----------------------------------------------------------------------
-
bool wxPropertyGrid::EnsureVisible( wxPGPropArg id )
{
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(false)
return (wxPGProperty*) NULL;
}
+// -----------------------------------------------------------------------
+
+void wxPropertyGridPageState::DoSetPropertyName( wxPGProperty* p,
+ const wxString& newName )
+{
+ wxCHECK_RET( p, wxT("invalid property id") );
+
+ if ( p->GetBaseName().Len() ) m_dictName.erase( p->GetBaseName() );
+ if ( newName.Len() ) m_dictName[newName] = (void*) p;
+
+ p->DoSetName(newName);
+}
+
// -----------------------------------------------------------------------
// wxPropertyGridPageState global operations
// -----------------------------------------------------------------------