Use HTML report window for symbol loading issues
This commit is contained in:
parent
c1573744be
commit
358f01ba66
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <symbol_library_manager.h>
|
||||
#include <class_library.h>
|
||||
#include <dialogs/html_messagebox.h>
|
||||
#include <symbol_edit_frame.h>
|
||||
#include <env_paths.h>
|
||||
#include <pgm_base.h>
|
||||
|
@ -90,7 +91,15 @@ void SYMBOL_LIBRARY_MANAGER::Preload( PROGRESS_REPORTER& aReporter )
|
|||
|
||||
if( !loader.GetErrors().IsEmpty() )
|
||||
{
|
||||
wxLogError( loader.GetErrors() );
|
||||
HTML_MESSAGE_BOX dlg( &m_frame, _( "Load Error" ) );
|
||||
|
||||
dlg.MessageSet( _( "Errors were encountered loading symbols:" ) );
|
||||
|
||||
wxString msg = loader.GetErrors();
|
||||
msg.Replace( "\n", "<BR>" );
|
||||
|
||||
dlg.AddHTML_Text( msg );
|
||||
dlg.ShowModal();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,13 +23,14 @@
|
|||
#include <wx/window.h>
|
||||
#include <widgets/progress_reporter.h>
|
||||
|
||||
#include <dialogs/html_messagebox.h>
|
||||
#include <eda_pattern_match.h>
|
||||
#include <symbol_lib_table.h>
|
||||
#include <generate_alias_info.h>
|
||||
#include <lib_symbol.h>
|
||||
#include <locale_io.h>
|
||||
#include <generate_alias_info.h>
|
||||
#include <symbol_tree_model_adapter.h>
|
||||
#include <symbol_async_loader.h>
|
||||
#include <symbol_lib_table.h>
|
||||
#include <symbol_tree_model_adapter.h>
|
||||
|
||||
|
||||
bool SYMBOL_TREE_MODEL_ADAPTER::m_show_progress = true;
|
||||
|
@ -98,7 +99,15 @@ void SYMBOL_TREE_MODEL_ADAPTER::AddLibraries( const std::vector<wxString>& aNick
|
|||
|
||||
if( !loader.GetErrors().IsEmpty() )
|
||||
{
|
||||
wxLogError( loader.GetErrors() );
|
||||
HTML_MESSAGE_BOX dlg( aParent, _( "Load Error" ) );
|
||||
|
||||
dlg.MessageSet( _( "Errors were encountered loading symbols:" ) );
|
||||
|
||||
wxString msg = loader.GetErrors();
|
||||
msg.Replace( "\n", "<BR>" );
|
||||
|
||||
dlg.AddHTML_Text( msg );
|
||||
dlg.ShowModal();
|
||||
}
|
||||
|
||||
if( loadedSymbols.size() > 0 )
|
||||
|
|
Loading…
Reference in New Issue