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:
parent
704ceca8d2
commit
020b004113
@ -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 );
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -797,17 +797,6 @@ public:
|
||||
*/
|
||||
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.
|
||||
|
@ -658,6 +658,17 @@ public:
|
||||
*/
|
||||
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
|
||||
|
@ -1491,18 +1491,6 @@ void wxPropertyGrid::DoSetPropertyValueUnspecified( wxPGProperty* p )
|
||||
// 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)
|
||||
|
@ -448,6 +448,19 @@ wxPGProperty* wxPropertyGridPageState::BaseGetPropertyByName( const wxString& na
|
||||
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
|
||||
// -----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user