From 153df79699291c951c8de1f12336736699e7294c Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Wed, 15 May 2013 05:32:41 -0500 Subject: [PATCH] replace BOM dialog with a pointer to FAQ https://answers.launchpad.net/kicad/+faq/2265 --- eeschema/{BOM_lister.h => BOM_lister.h.notused} | 0 eeschema/CMakeLists.txt | 3 --- eeschema/{build_BOM.cpp => build_BOM.cpp.notused} | 0 eeschema/schframe.cpp | 10 +++++----- 4 files changed, 5 insertions(+), 8 deletions(-) rename eeschema/{BOM_lister.h => BOM_lister.h.notused} (100%) rename eeschema/{build_BOM.cpp => build_BOM.cpp.notused} (100%) diff --git a/eeschema/BOM_lister.h b/eeschema/BOM_lister.h.notused similarity index 100% rename from eeschema/BOM_lister.h rename to eeschema/BOM_lister.h.notused diff --git a/eeschema/CMakeLists.txt b/eeschema/CMakeLists.txt index a4f03f0ce2..6e1af9d9a4 100644 --- a/eeschema/CMakeLists.txt +++ b/eeschema/CMakeLists.txt @@ -16,8 +16,6 @@ set(EESCHEMA_DLGS dialogs/dialog_annotate_base.cpp dialogs/dialog_lib_edit_text.cpp dialogs/dialog_lib_edit_text_base.cpp - dialogs/dialog_build_BOM.cpp - dialogs/dialog_build_BOM_base.cpp dialogs/dialog_edit_component_in_lib.cpp dialogs/dialog_edit_component_in_lib_base.cpp dialogs/dialog_edit_component_in_schematic_fbp.cpp @@ -60,7 +58,6 @@ set(EESCHEMA_SRCS backanno.cpp block.cpp block_libedit.cpp - build_BOM.cpp busentry.cpp bus-wire-junction.cpp class_drc_erc_item.cpp diff --git a/eeschema/build_BOM.cpp b/eeschema/build_BOM.cpp.notused similarity index 100% rename from eeschema/build_BOM.cpp rename to eeschema/build_BOM.cpp.notused diff --git a/eeschema/schframe.cpp b/eeschema/schframe.cpp index 8aa50de101..154d1faafd 100644 --- a/eeschema/schframe.cpp +++ b/eeschema/schframe.cpp @@ -644,10 +644,10 @@ void SCH_EDIT_FRAME::OnCreateNetlist( wxCommandEvent& event ) void SCH_EDIT_FRAME::OnCreateBillOfMaterials( wxCommandEvent& ) { - DIALOG_BUILD_BOM* dlg = new DIALOG_BUILD_BOM( this ); - - dlg->ShowModal(); - dlg->Destroy(); + wxMessageDialog dlg( this, + wxT( "https://answers.launchpad.net/kicad/+faq/2265" ), + _( "BOM Howto" ) ); + dlg.ShowModal(); } @@ -852,7 +852,7 @@ void SCH_EDIT_FRAME::OnPrint( wxCommandEvent& event ) } } -void SCH_EDIT_FRAME::PrintPage( wxDC* aDC, LAYER_MSK aPrintMask, bool aPrintMirrorMode, +void SCH_EDIT_FRAME::PrintPage( wxDC* aDC, LAYER_MSK aPrintMask, bool aPrintMirrorMode, void* aData ) { GetScreen()->Draw( m_canvas, aDC, GR_DEFAULT_DRAWMODE );