KiCad PCB EDA Suite
|
A helper class to import non Kicad project. More...
#include <import_proj.h>
Public Member Functions | |
IMPORT_PROJ_HELPER (KICAD_MANAGER_FRAME *aframe, const std::vector< wxString > &aSchFileExtensions, const std::vector< wxString > &aPcbFileExtensions) | |
void | FindEmptyTargetDir () |
Appends a new directory with the name of the project file Keep iterating until an empty directory is found. | |
void | ImportFiles (int aImportedSchFileType, int aImportedPcbFileType) |
Converts imported files to kicad type files. | |
Public Attributes | |
wxFileName | m_InputFile |
wxFileName | m_TargetProj |
Private Member Functions | |
void | OutputCopyError (const wxFileName &aSrc, const wxFileName &aFileCopy) |
void | ImportIndividualFile (KICAD_T aKicad_T, int aImportedFileType) |
void | doImport (const wxString &aFile, FRAME_T aFrameType, int aImportedFileType) |
void | addLocalLibraries (const std::set< wxString > &aLibName, FRAME_T aFrameType) |
void | EasyEDAProProjectHandler () |
void | AltiumProjectHandler () |
Private Attributes | |
KICAD_MANAGER_FRAME * | m_frame |
std::map< std::string, UTF8 > | m_properties |
std::vector< wxString > | m_copiedSchPaths |
std::vector< wxString > | m_copiedPcbPaths |
std::vector< wxString > | m_schExtenstions |
std::vector< wxString > | m_pcbExtenstions |
A helper class to import non Kicad project.
Definition at line 36 of file import_proj.h.
IMPORT_PROJ_HELPER::IMPORT_PROJ_HELPER | ( | KICAD_MANAGER_FRAME * | aframe, |
const std::vector< wxString > & | aSchFileExtensions, | ||
const std::vector< wxString > & | aPcbFileExtensions | ||
) |
Definition at line 53 of file import_proj.cpp.
|
private |
Definition at line 220 of file import_proj.cpp.
References KIWAY::ExpressMail(), KIWAY_HOLDER::Kiway(), m_frame, m_InputFile, MAIL_ADD_LOCAL_LIB, name, KIWAY::Player(), and TO_UTF8.
Referenced by AltiumProjectHandler().
|
private |
Definition at line 238 of file import_proj.cpp.
References addLocalLibraries(), PCB_IO_MGR::ALTIUM_DESIGNER, config, doImport(), FRAME_PCB_EDITOR, FRAME_SCH, m_InputFile, m_properties, and path.
Referenced by ImportFiles().
|
private |
Definition at line 162 of file import_proj.cpp.
References KIWAY::ExpressMail(), KIWAY_HOLDER::Kiway(), m_frame, m_properties, MAIL_IMPORT_FILE, KIWAY::Player(), and TO_UTF8.
Referenced by AltiumProjectHandler(), and ImportIndividualFile().
|
private |
Definition at line 186 of file import_proj.cpp.
References m_frame, m_InputFile, m_properties, IMPORT_PROJECT_DESC::PCBId, project, EASYEDAPRO::ProjectToSelectorDialog(), EASYEDAPRO::ReadProjectOrDeviceFile(), DIALOG_IMPORT_CHOOSE_PROJECT::RunModal(), and IMPORT_PROJECT_DESC::SchematicId.
Referenced by ImportFiles().
void IMPORT_PROJ_HELPER::FindEmptyTargetDir | ( | ) |
Appends a new directory with the name of the project file Keep iterating until an empty directory is found.
Definition at line 62 of file import_proj.cpp.
References m_TargetProj.
Referenced by KICAD_MANAGER_FRAME::ImportNonKiCadProject().
void IMPORT_PROJ_HELPER::ImportFiles | ( | int | aImportedSchFileType, |
int | aImportedPcbFileType | ||
) |
Converts imported files to kicad type files.
Types of imported files are needed for conversion
aImportedSchFileType | type of the imported schematic |
aImportedPcbFileType | type of the imported PCB |
Definition at line 310 of file import_proj.cpp.
References PCB_IO_MGR::ALTIUM_DESIGNER, AltiumProjectHandler(), PCB_IO_MGR::EASYEDAPRO, EasyEDAProProjectHandler(), ImportIndividualFile(), m_properties, PCB_T, and SCHEMATIC_T.
Referenced by KICAD_MANAGER_FRAME::ImportNonKiCadProject().
|
private |
Definition at line 103 of file import_proj.cpp.
References copied, doImport(), FRAME_PCB_EDITOR, FRAME_SCH, m_InputFile, m_pcbExtenstions, m_schExtenstions, m_TargetProj, PCB_T, and SCHEMATIC_T.
Referenced by ImportFiles().
|
private |
Definition at line 80 of file import_proj.cpp.
|
private |
Definition at line 66 of file import_proj.h.
|
private |
Definition at line 65 of file import_proj.h.
|
private |
Definition at line 61 of file import_proj.h.
Referenced by addLocalLibraries(), doImport(), EasyEDAProProjectHandler(), and OutputCopyError().
wxFileName IMPORT_PROJ_HELPER::m_InputFile |
Definition at line 57 of file import_proj.h.
Referenced by addLocalLibraries(), AltiumProjectHandler(), EasyEDAProProjectHandler(), ImportIndividualFile(), and KICAD_MANAGER_FRAME::ImportNonKiCadProject().
|
private |
Definition at line 69 of file import_proj.h.
Referenced by ImportIndividualFile().
|
private |
Definition at line 63 of file import_proj.h.
Referenced by AltiumProjectHandler(), doImport(), EasyEDAProProjectHandler(), and ImportFiles().
|
private |
Definition at line 68 of file import_proj.h.
Referenced by ImportIndividualFile().
wxFileName IMPORT_PROJ_HELPER::m_TargetProj |
Definition at line 58 of file import_proj.h.
Referenced by FindEmptyTargetDir(), ImportIndividualFile(), and KICAD_MANAGER_FRAME::ImportNonKiCadProject().