Moved Get/SetPropertyText/BackgroundColour() member functions from wxPropertyGrid to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1176,54 +1176,6 @@ void wxPropertyGrid::SetCaptionTextColour( const wxColour& col )
|
||||
Refresh();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGrid::SetPropertyBackgroundColour( wxPGPropArg id,
|
||||
const wxColour& colour,
|
||||
bool recursively )
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG()
|
||||
p->SetBackgroundColour( colour, recursively );
|
||||
DrawItemAndChildren( p );
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
wxColour wxPropertyGrid::GetPropertyBackgroundColour( wxPGPropArg id ) const
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(wxColour())
|
||||
|
||||
return p->GetCell(0).GetBgCol();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGrid::SetPropertyTextColour( wxPGPropArg id, const wxColour& colour,
|
||||
bool recursively )
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG()
|
||||
p->SetTextColour( colour, recursively );
|
||||
DrawItemAndChildren( p );
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
wxColour wxPropertyGrid::GetPropertyTextColour( wxPGPropArg id ) const
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(wxColour())
|
||||
|
||||
return p->GetCell(0).GetFgCol();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGrid::SetPropertyColoursToDefault( wxPGPropArg id )
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG()
|
||||
|
||||
p->m_cells.clear();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// wxPropertyGrid property adding and removal
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user