Update 5 files
- /eeschema/CMakeLists.txt - /eeschema/eeschema.cpp - /pcbnew/pcbnew.cpp - /qa/qa_utils/pcb_test_frame.cpp - /qa/unittests/eeschema/test_module.cpp
This commit is contained in:
parent
1c59574cbf
commit
57ae43890c
|
@ -34,7 +34,6 @@ include_directories(
|
|||
${CMAKE_SOURCE_DIR}/common
|
||||
${CMAKE_SOURCE_DIR}/common/dialogs
|
||||
${CMAKE_SOURCE_DIR}/libs/sexpr/include
|
||||
${CMAKE_SOURCE_DIR}/3d-viewer
|
||||
${INC_AFTER}
|
||||
./dialogs
|
||||
./libview
|
||||
|
|
|
@ -332,11 +332,12 @@ bool IFACE::OnKifaceStart( PGM_BASE* aProgram, int aCtlBits )
|
|||
// This is process-level-initialization, not project-level-initialization of the DSO.
|
||||
// Do nothing in here pertinent to a project!
|
||||
InitSettings( new EESCHEMA_SETTINGS );
|
||||
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings() );
|
||||
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings(), false );
|
||||
|
||||
// Register the symbol editor settings as well because they share a KiFACE and need to be
|
||||
// loaded prior to use to avoid threading deadlocks
|
||||
aProgram->GetSettingsManager().RegisterSettings( new SYMBOL_EDITOR_SETTINGS, false );
|
||||
aProgram->GetSettingsManager().Load();
|
||||
|
||||
start_common( aCtlBits );
|
||||
|
||||
|
|
|
@ -348,14 +348,15 @@ bool IFACE::OnKifaceStart( PGM_BASE* aProgram, int aCtlBits )
|
|||
// This is process-level-initialization, not project-level-initialization of the DSO.
|
||||
// Do nothing in here pertinent to a project!
|
||||
InitSettings( new PCBNEW_SETTINGS );
|
||||
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings() );
|
||||
aProgram->GetSettingsManager().RegisterSettings( KifaceSettings(), false );
|
||||
|
||||
// Register the footprint editor settings as well because they share a KiFACE and need to be
|
||||
// loaded prior to use to avoid threading deadlocks
|
||||
aProgram->GetSettingsManager().RegisterSettings( new FOOTPRINT_EDITOR_SETTINGS );
|
||||
aProgram->GetSettingsManager().RegisterSettings( new CVPCB_SETTINGS );
|
||||
aProgram->GetSettingsManager().RegisterSettings( new EDA_3D_VIEWER_SETTINGS );
|
||||
aProgram->GetSettingsManager().RegisterSettings( new FOOTPRINT_EDITOR_SETTINGS, false );
|
||||
aProgram->GetSettingsManager().RegisterSettings( new CVPCB_SETTINGS, false );
|
||||
aProgram->GetSettingsManager().RegisterSettings( new EDA_3D_VIEWER_SETTINGS, false );
|
||||
|
||||
aProgram->GetSettingsManager().Load();
|
||||
start_common( aCtlBits );
|
||||
|
||||
if( !loadGlobalLibTable() )
|
||||
|
|
|
@ -83,6 +83,9 @@ void PCB_TEST_FRAME_BASE::SetBoard( std::shared_ptr<BOARD> b )
|
|||
|
||||
#ifdef USE_TOOL_MANAGER
|
||||
SETTINGS_MANAGER& mgr = Pgm().GetSettingsManager();
|
||||
|
||||
mgr.RegisterSettings( new PCBNEW_SETTINGS, false );
|
||||
|
||||
PCBNEW_SETTINGS* cfg = mgr.GetAppSettings<PCBNEW_SETTINGS>();
|
||||
|
||||
m_toolManager->SetEnvironment( m_board.get(), m_galPanel->GetView(),
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
#include <kiplatform/app.h>
|
||||
|
||||
#include <pgm_base.h>
|
||||
#include <settings/settings_manager.h>
|
||||
#include <eeschema_settings.h>
|
||||
#include <symbol_editor/symbol_editor_settings.h>
|
||||
#include <wx/app.h>
|
||||
#include <wx/init.h>
|
||||
|
||||
|
@ -60,6 +63,10 @@ bool init_unit_test()
|
|||
wxSetAssertHandler( &wxAssertThrower );
|
||||
|
||||
Pgm().InitPgm( true, true, true );
|
||||
Pgm().GetSettingsManager().RegisterSettings( new EESCHEMA_SETTINGS, false );
|
||||
Pgm().GetSettingsManager().RegisterSettings( new SYMBOL_EDITOR_SETTINGS, false );
|
||||
Pgm().GetSettingsManager().Load();
|
||||
|
||||
|
||||
return ok;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue