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:
parent
7f00efe6cf
commit
c37c429c75
|
@ -149,5 +149,5 @@ void PROPERTIES_PANEL::update( const SELECTION& aSelection )
|
|||
void PROPERTIES_PANEL::onShow( wxShowEvent& aEvent )
|
||||
{
|
||||
if( aEvent.IsShown() )
|
||||
Update();
|
||||
UpdateData();
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
virtual void Update() override = 0;
|
||||
virtual void UpdateData() = 0;
|
||||
|
||||
wxPropertyGrid* GetPropertyGrid()
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
void Update() override;
|
||||
void UpdateData() override;
|
||||
|
||||
protected:
|
||||
wxPGProperty* createPGProperty( const PROPERTY_BASE* aProperty ) const override;
|
||||
|
|
|
@ -313,6 +313,6 @@ void PCB_BASE_EDIT_FRAME::UpdateProperties()
|
|||
if( !m_propertiesPanel || !m_propertiesPanel->IsShownOnScreen() )
|
||||
return;
|
||||
|
||||
m_propertiesPanel->Update();
|
||||
m_propertiesPanel->UpdateData();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue