Rename PROPERTY_PANEL::Update() to PROPERTY_PANEL::UpdateData()

The base class (wxPanel) already provides Update() method,
which should not be overridden.
This commit is contained in:
Maciej Suminski 2020-03-30 17:27:17 +02:00 committed by Jon Evans
parent 7f00efe6cf
commit c37c429c75
5 changed files with 5 additions and 5 deletions

View File

@ -149,5 +149,5 @@ void PROPERTIES_PANEL::update( const SELECTION& aSelection )
void PROPERTIES_PANEL::onShow( wxShowEvent& aEvent )
{
if( aEvent.IsShown() )
Update();
UpdateData();
}

View File

@ -42,7 +42,7 @@ public:
{
}
virtual void Update() override = 0;
virtual void UpdateData() = 0;
wxPropertyGrid* GetPropertyGrid()
{

View File

@ -37,7 +37,7 @@ PCB_PROPERTIES_PANEL::PCB_PROPERTIES_PANEL( wxWindow* aParent, PCB_EDIT_FRAME* a
}
void PCB_PROPERTIES_PANEL::Update()
void PCB_PROPERTIES_PANEL::UpdateData()
{
PCB_SELECTION_TOOL* selectionTool = m_frame->GetToolManager()->GetTool<PCB_SELECTION_TOOL>();
const SELECTION& selection = selectionTool->GetSelection();

View File

@ -37,7 +37,7 @@ public:
{
}
void Update() override;
void UpdateData() override;
protected:
wxPGProperty* createPGProperty( const PROPERTY_BASE* aProperty ) const override;

View File

@ -313,6 +313,6 @@ void PCB_BASE_EDIT_FRAME::UpdateProperties()
if( !m_propertiesPanel || !m_propertiesPanel->IsShownOnScreen() )
return;
m_propertiesPanel->Update();
m_propertiesPanel->UpdateData();
}