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 | EasyEDAProProjectHandler () |
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 15 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 44 of file import_proj.cpp.
|
private |
Definition at line 171 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 53 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 205 of file import_proj.cpp.
References PCB_IO_MGR::EASYEDAPRO, EasyEDAProProjectHandler(), ImportIndividualFile(), m_properties, PCB_T, and SCHEMATIC_T.
Referenced by KICAD_MANAGER_FRAME::ImportNonKiCadProject().
|
private |
Definition at line 94 of file import_proj.cpp.
References KIWAY::ExpressMail(), FRAME_PCB_EDITOR, FRAME_SCH, KIWAY_HOLDER::Kiway(), m_frame, m_InputFile, m_pcbExtenstions, m_properties, m_schExtenstions, m_TargetProj, MAIL_IMPORT_FILE, PCB_T, KIWAY::Player(), SCHEMATIC_T, and TO_UTF8.
Referenced by ImportFiles().
|
private |
Definition at line 71 of file import_proj.cpp.
|
private |
Definition at line 45 of file import_proj.h.
|
private |
Definition at line 44 of file import_proj.h.
|
private |
Definition at line 40 of file import_proj.h.
Referenced by EasyEDAProProjectHandler(), ImportIndividualFile(), and OutputCopyError().
wxFileName IMPORT_PROJ_HELPER::m_InputFile |
Definition at line 36 of file import_proj.h.
Referenced by EasyEDAProProjectHandler(), ImportIndividualFile(), and KICAD_MANAGER_FRAME::ImportNonKiCadProject().
|
private |
Definition at line 48 of file import_proj.h.
Referenced by ImportIndividualFile().
|
private |
Definition at line 42 of file import_proj.h.
Referenced by EasyEDAProProjectHandler(), ImportFiles(), and ImportIndividualFile().
|
private |
Definition at line 47 of file import_proj.h.
Referenced by ImportIndividualFile().
wxFileName IMPORT_PROJ_HELPER::m_TargetProj |
Definition at line 37 of file import_proj.h.
Referenced by FindEmptyTargetDir(), ImportIndividualFile(), and KICAD_MANAGER_FRAME::ImportNonKiCadProject().