Loading include/wxBasePcbFrame.h +18 −0 Original line number Diff line number Diff line Loading @@ -613,6 +613,24 @@ public: virtual void SwitchLayer( wxDC* DC, LAYER_ID layer ); /** * Function SetActiveLayer * will change the currently active layer to \a aLayer. */ virtual void SetActiveLayer( LAYER_ID aLayer ) { ( (PCB_SCREEN*) GetScreen() )->m_Active_Layer = aLayer; } /** * Function GetActiveLayer * returns the active layer */ virtual LAYER_ID GetActiveLayer() const { return ( (PCB_SCREEN*) GetScreen() )->m_Active_Layer; } void LoadSettings( wxConfigBase* aCfg ); // override virtual void SaveSettings( wxConfigBase* aCfg ); // override virtual Loading include/wxPcbStruct.h +1 −10 Original line number Diff line number Diff line Loading @@ -536,16 +536,7 @@ public: * will change the currently active layer to \a aLayer and also * update the PCB_LAYER_WIDGET. */ void SetActiveLayer( LAYER_ID aLayer, bool doLayerWidgetUpdate = true ); /** * Function GetActiveLayer * returns the active layer */ LAYER_ID GetActiveLayer() const { return ( (PCB_SCREEN*) GetScreen() )->m_Active_Layer; } virtual void SetActiveLayer( LAYER_ID aLayer ); /** * Function IsElementVisible Loading pcbnew/class_pcb_layer_widget.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -373,7 +373,7 @@ bool PCB_LAYER_WIDGET::OnLayerSelect( int aLayer ) { // the layer change from the PCB_LAYER_WIDGET can be denied by returning // false from this function. myframe->SetActiveLayer( ToLAYER_ID( aLayer ), false ); myframe->SetActiveLayer( ToLAYER_ID( aLayer ) ); if( m_alwaysShowActiveCopperLayer ) OnLayerSelected(); Loading pcbnew/module_editor_frame.h +0 −1 Original line number Diff line number Diff line Loading @@ -217,7 +217,6 @@ public: BOARD_ITEM* ModeditLocateAndDisplay( int aHotKeyCode = 0 ); /* Undo and redo functions */ public: /** * Function SaveCopyInUndoList. Loading pcbnew/pcb_draw_panel_gal.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -326,13 +326,13 @@ void PCB_DRAW_PANEL_GAL::SetTopLayer( LAYER_ID aLayer ) void PCB_DRAW_PANEL_GAL::SyncLayersVisibility( const BOARD* aBoard ) { // Load layer & elements visibility settings for( LAYER_NUM i = 0; i < NB_LAYERS; ++i ) for( LAYER_NUM i = 0; i < LAYER_ID_COUNT; ++i ) { m_view->SetLayerVisible( i, aBoard->IsLayerVisible( i ) ); m_view->SetLayerVisible( i, aBoard->IsLayerVisible( LAYER_ID( i ) ) ); // Synchronize netname layers as well if( IsCopperLayer( i ) ) m_view->SetLayerVisible( GetNetnameLayer( i ), aBoard->IsLayerVisible( i ) ); m_view->SetLayerVisible( GetNetnameLayer( i ), aBoard->IsLayerVisible( LAYER_ID( i ) ) ); } for( LAYER_NUM i = 0; i < END_PCB_VISIBLE_LIST; ++i ) Loading Loading
include/wxBasePcbFrame.h +18 −0 Original line number Diff line number Diff line Loading @@ -613,6 +613,24 @@ public: virtual void SwitchLayer( wxDC* DC, LAYER_ID layer ); /** * Function SetActiveLayer * will change the currently active layer to \a aLayer. */ virtual void SetActiveLayer( LAYER_ID aLayer ) { ( (PCB_SCREEN*) GetScreen() )->m_Active_Layer = aLayer; } /** * Function GetActiveLayer * returns the active layer */ virtual LAYER_ID GetActiveLayer() const { return ( (PCB_SCREEN*) GetScreen() )->m_Active_Layer; } void LoadSettings( wxConfigBase* aCfg ); // override virtual void SaveSettings( wxConfigBase* aCfg ); // override virtual Loading
include/wxPcbStruct.h +1 −10 Original line number Diff line number Diff line Loading @@ -536,16 +536,7 @@ public: * will change the currently active layer to \a aLayer and also * update the PCB_LAYER_WIDGET. */ void SetActiveLayer( LAYER_ID aLayer, bool doLayerWidgetUpdate = true ); /** * Function GetActiveLayer * returns the active layer */ LAYER_ID GetActiveLayer() const { return ( (PCB_SCREEN*) GetScreen() )->m_Active_Layer; } virtual void SetActiveLayer( LAYER_ID aLayer ); /** * Function IsElementVisible Loading
pcbnew/class_pcb_layer_widget.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -373,7 +373,7 @@ bool PCB_LAYER_WIDGET::OnLayerSelect( int aLayer ) { // the layer change from the PCB_LAYER_WIDGET can be denied by returning // false from this function. myframe->SetActiveLayer( ToLAYER_ID( aLayer ), false ); myframe->SetActiveLayer( ToLAYER_ID( aLayer ) ); if( m_alwaysShowActiveCopperLayer ) OnLayerSelected(); Loading
pcbnew/module_editor_frame.h +0 −1 Original line number Diff line number Diff line Loading @@ -217,7 +217,6 @@ public: BOARD_ITEM* ModeditLocateAndDisplay( int aHotKeyCode = 0 ); /* Undo and redo functions */ public: /** * Function SaveCopyInUndoList. Loading
pcbnew/pcb_draw_panel_gal.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -326,13 +326,13 @@ void PCB_DRAW_PANEL_GAL::SetTopLayer( LAYER_ID aLayer ) void PCB_DRAW_PANEL_GAL::SyncLayersVisibility( const BOARD* aBoard ) { // Load layer & elements visibility settings for( LAYER_NUM i = 0; i < NB_LAYERS; ++i ) for( LAYER_NUM i = 0; i < LAYER_ID_COUNT; ++i ) { m_view->SetLayerVisible( i, aBoard->IsLayerVisible( i ) ); m_view->SetLayerVisible( i, aBoard->IsLayerVisible( LAYER_ID( i ) ) ); // Synchronize netname layers as well if( IsCopperLayer( i ) ) m_view->SetLayerVisible( GetNetnameLayer( i ), aBoard->IsLayerVisible( i ) ); m_view->SetLayerVisible( GetNetnameLayer( i ), aBoard->IsLayerVisible( LAYER_ID( i ) ) ); } for( LAYER_NUM i = 0; i < END_PCB_VISIBLE_LIST; ++i ) Loading