From ff12d3d2e5ec9827139a5ba358b09d5dbc10b23a Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 13 Feb 2014 15:57:57 +0100 Subject: [PATCH] Changed PCB_EDIT_FRAME::setTopLayer() to PCB_EDIT_FRAME::SetTopLayer() and changed to public (as it had exactly the same functionality). --- include/wxPcbStruct.h | 18 ++++++------------ pcbnew/pcbframe.cpp | 4 ++-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/include/wxPcbStruct.h b/include/wxPcbStruct.h index 1b5bc4b299..18f208b04f 100644 --- a/include/wxPcbStruct.h +++ b/include/wxPcbStruct.h @@ -156,12 +156,6 @@ protected: */ void setHighContrastLayer( LAYER_NUM aLayer ); - /** - * Function setTopLayer - * moves the selected layer to the top, so it is displayed above all others. - */ - void setTopLayer( LAYER_NUM aLayer ); - /** * Function syncLayerWidgetLayer * updates the currently layer "selection" within the PCB_LAYER_WIDGET. @@ -578,6 +572,12 @@ public: */ virtual void OnModify(); + /** + * Function SetTopLayer + * moves the selected layer to the top, so it is displayed above all others. + */ + void SetTopLayer( LAYER_NUM aLayer ); + /** * Function IsElementVisible * tests whether a given element category is visible. Keep this as an @@ -1694,12 +1694,6 @@ public: */ void UpdateTitle(); - void SetTopLayer( LAYER_NUM aLayer ) - { - setTopLayer( aLayer ); - } - - DECLARE_EVENT_TABLE() }; diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp index 0331d6b326..967f8dde9c 100644 --- a/pcbnew/pcbframe.cpp +++ b/pcbnew/pcbframe.cpp @@ -883,7 +883,7 @@ void PCB_EDIT_FRAME::setHighContrastLayer( LAYER_NUM aLayer ) KIGFX::VIEW* view = GetGalCanvas()->GetView(); KIGFX::RENDER_SETTINGS* rSettings = view->GetPainter()->GetSettings(); - setTopLayer( aLayer ); + SetTopLayer( aLayer ); rSettings->ClearActiveLayers(); rSettings->SetActiveLayer( aLayer ); @@ -920,7 +920,7 @@ void PCB_EDIT_FRAME::setHighContrastLayer( LAYER_NUM aLayer ) } -void PCB_EDIT_FRAME::setTopLayer( LAYER_NUM aLayer ) +void PCB_EDIT_FRAME::SetTopLayer( LAYER_NUM aLayer ) { // Set display settings for high contrast mode KIGFX::VIEW* view = GetGalCanvas()->GetView();