Moved wxPropertyGrid::SetPropertyName() to wxPropertyGridInterface

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-09-29 17:01:04 +00:00
parent 704ceca8d2
commit 020b004113
7 changed files with 41 additions and 37 deletions

View File

@@ -1035,18 +1035,6 @@ public:
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.
@@ -1813,8 +1801,6 @@ protected:
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 );

View File

@@ -961,6 +961,21 @@ public:
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

View File

@@ -502,6 +502,8 @@ public:
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
{