Make dialog_footprint_wizard_list.cpp compilable when scripting is not enabled.

This commit is contained in:
jean-pierre charras 2017-01-08 08:25:04 +01:00
parent e72a3b99ee
commit 1039b6dda7
2 changed files with 9 additions and 2 deletions

View File

@ -33,7 +33,15 @@
#include <kiface_i.h>
#include <dialog_footprint_wizard_list.h>
#include <class_footprint_wizard.h>
#if defined(KICAD_SCRIPTING) || defined(KICAD_SCRIPTING_WXPYTHON)
#include <python_scripting.h>
#else
// Dummy functions, actually defined in python_scripting.h when KICAD_SCRIPTING is enabled
static void pcbnewGetWizardsBackTrace( wxString& aText ) {};
static void pcbnewGetScriptsSearchPaths( wxString& aText ) {};
static void pcbnewGetUnloadableScriptNames( wxString& aText ) {};
#endif
enum FPGeneratorRowNames
{
@ -76,7 +84,6 @@ DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST( wxWindow* aParent )
m_footprintGeneratorsGrid->SetCellValue( ii, FP_GEN_ROW_DESCR, description );
}
//wxLogMessage( KICAD_FAILED_PLUGINS );
m_footprintGeneratorsGrid->AutoSizeColumns();

View File

@ -43,7 +43,7 @@ public:
private:
void OnCellFpGeneratorClick( wxGridEvent& event ) override;
void OnCellFpGeneratorDoubleClick( wxGridEvent& event ) override;
void onShowTrace( wxCommandEvent& event ) override;
void onShowTrace( wxCommandEvent& event ) override;
};
#endif // _DIALOG_FOOTPRINT_WIZARD_LIST_H_