From 8ef7cf7708b5fba77797c6fc9d93e3d0556a6a70 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Tue, 29 Apr 2008 15:43:28 +0000 Subject: [PATCH] more layer listbox issues --- pcbnew/files.cpp | 1 + pcbnew/pcbnew.cpp | 3 +++ pcbnew/tool_pcb.cpp | 3 +++ todo.txt | 11 +++++++++++ 4 files changed, 18 insertions(+) diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index ad4c562aa8..0e91a9020b 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -81,6 +81,7 @@ void WinEDA_PcbFrame::Files_io( wxCommandEvent& event ) GetScreen()->m_FileName.Printf( wxT( "%s%cnoname%s" ), wxGetCwd().GetData(), DIR_SEP, PcbExtBuffer.GetData() ); SetTitle( GetScreen()->m_FileName ); + ReCreateLayerBox( NULL ); break; case ID_LOAD_FILE_1: diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index 2fac845464..6f0b7439eb 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -90,6 +90,9 @@ bool WinEDA_App::OnInit() if( !FFileName.IsEmpty() ) { m_PcbFrame->LoadOnePcbFile( FFileName, FALSE ); + + // update the layer names in the listbox + m_PcbFrame->ReCreateLayerBox( NULL ); } return TRUE; diff --git a/pcbnew/tool_pcb.cpp b/pcbnew/tool_pcb.cpp index 666eabe888..8b07a1e615 100644 --- a/pcbnew/tool_pcb.cpp +++ b/pcbnew/tool_pcb.cpp @@ -629,6 +629,9 @@ void WinEDA_PcbFrame::ReCreateAuxiliaryToolbar() m_SelViaSizeBox_Changed = TRUE; m_SelTrackWidthBox_Changed = TRUE; + + ReCreateLayerBox( NULL ); + SetToolbars(); } diff --git a/todo.txt b/todo.txt index 6351c17b14..bd289ffc82 100644 --- a/todo.txt +++ b/todo.txt @@ -74,3 +74,14 @@ edges editable. (DONE) 2) final solution: get rid of requirement for tracks buried within a zone. Review the GEDA source code and other sources to gather ideas before doing 2). +2008-Apr-29 Assigned To: +asked by: Dick Hollenbeck +================================================================================ ++pcbnew + When picking new board from the menu, when an existing board is already + in memory, the number of layers in the new board is not set to the default + but rather to the number of layers in the previously loaded board, and with + the default layer names, rather than the layer names of the previously + loaded board. I think the number of layers should be reduced to the + default and the default layer names should be used. +