Make dialog_footprint_wizard_list.cpp compilable when scripting is not enabled.
This commit is contained in:
parent
e72a3b99ee
commit
1039b6dda7
|
@ -33,7 +33,15 @@
|
||||||
#include <kiface_i.h>
|
#include <kiface_i.h>
|
||||||
#include <dialog_footprint_wizard_list.h>
|
#include <dialog_footprint_wizard_list.h>
|
||||||
#include <class_footprint_wizard.h>
|
#include <class_footprint_wizard.h>
|
||||||
|
|
||||||
|
#if defined(KICAD_SCRIPTING) || defined(KICAD_SCRIPTING_WXPYTHON)
|
||||||
#include <python_scripting.h>
|
#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
|
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 );
|
m_footprintGeneratorsGrid->SetCellValue( ii, FP_GEN_ROW_DESCR, description );
|
||||||
|
|
||||||
}
|
}
|
||||||
//wxLogMessage( KICAD_FAILED_PLUGINS );
|
|
||||||
|
|
||||||
m_footprintGeneratorsGrid->AutoSizeColumns();
|
m_footprintGeneratorsGrid->AutoSizeColumns();
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void OnCellFpGeneratorClick( wxGridEvent& event ) override;
|
void OnCellFpGeneratorClick( wxGridEvent& event ) override;
|
||||||
void OnCellFpGeneratorDoubleClick( wxGridEvent& event ) override;
|
void OnCellFpGeneratorDoubleClick( wxGridEvent& event ) override;
|
||||||
void onShowTrace( wxCommandEvent& event ) override;
|
void onShowTrace( wxCommandEvent& event ) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _DIALOG_FOOTPRINT_WIZARD_LIST_H_
|
#endif // _DIALOG_FOOTPRINT_WIZARD_LIST_H_
|
||||||
|
|
Loading…
Reference in New Issue