Footprint library table improvements.
* Add save table and set project path environment variable code to FP_LIB_TABLE object. * Add code to Pcbnew and CvPcb to set project path environment variable. * Create empty footprint table in Pcbnew when new board created. * Save current project specific footprint library table to path on file save as or empty project path. * Fix a bug in Pcbnew in file save function that would silently overwrite an existing board file. * Disable selecting the current library in the module editor when there are no libraries defined. * Catch exceptions and report errors when writing footprint library tables. * Fix Boost build CMakeFile to fix bug when bootstrapping a Boost build in MSys.
This commit is contained in:
+12
-1
@@ -38,6 +38,7 @@
|
||||
#include <3d_viewer.h>
|
||||
#include <pcbcommon.h>
|
||||
#include <msgpanel.h>
|
||||
#include <fp_lib_table.h>
|
||||
|
||||
#include <class_board.h>
|
||||
#include <class_module.h>
|
||||
@@ -133,7 +134,7 @@ BEGIN_EVENT_TABLE( FOOTPRINT_EDIT_FRAME, PCB_BASE_FRAME )
|
||||
EVT_MENU( ID_MENU_PCB_SHOW_3D_FRAME, FOOTPRINT_EDIT_FRAME::Show3D_Frame )
|
||||
|
||||
EVT_UPDATE_UI( ID_MODEDIT_DELETE_PART, FOOTPRINT_EDIT_FRAME::OnUpdateLibSelected )
|
||||
|
||||
EVT_UPDATE_UI( ID_MODEDIT_SELECT_CURRENT_LIB, FOOTPRINT_EDIT_FRAME::OnUpdateSelectCurrentLib )
|
||||
EVT_UPDATE_UI( ID_MODEDIT_EXPORT_PART, FOOTPRINT_EDIT_FRAME::OnUpdateModuleSelected )
|
||||
EVT_UPDATE_UI( ID_MODEDIT_CREATE_NEW_LIB_AND_SAVE_CURRENT_PART,
|
||||
FOOTPRINT_EDIT_FRAME::OnUpdateModuleSelected )
|
||||
@@ -455,6 +456,16 @@ void FOOTPRINT_EDIT_FRAME::OnUpdateReplaceModuleInBoard( wxUpdateUIEvent& aEvent
|
||||
}
|
||||
|
||||
|
||||
void FOOTPRINT_EDIT_FRAME::OnUpdateSelectCurrentLib( wxUpdateUIEvent& aEvent )
|
||||
{
|
||||
#if defined( USE_FP_LIB_TABLE )
|
||||
aEvent.Enable( m_footprintLibTable && !m_footprintLibTable->IsEmpty() );
|
||||
#else
|
||||
aEvent.Enable( !g_LibraryNames.IsEmpty() );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void FOOTPRINT_EDIT_FRAME::Show3D_Frame( wxCommandEvent& event )
|
||||
{
|
||||
if( m_Draw3DFrame )
|
||||
|
||||
Reference in New Issue
Block a user