#ifndef IMPORT_PROJ_H #define IMPORT_PROJ_H #include #include #include class KICAD_MANAGER_FRAME; /** * A helper class to import non Kicad project. * */ class IMPORT_PROJ_HELPER { public: IMPORT_PROJ_HELPER( KICAD_MANAGER_FRAME* aframe, const std::vector& aSchFileExtensions, const std::vector& aPcbFileExtensions ); /** * @brief Appends a new directory with the name of the project file * Keep iterating until an empty directory is found */ void FindEmptyTargetDir(); /** * @brief Converts imported files to kicad type files. * Types of imported files are needed for conversion * @param aImportedSchFileType type of the imported schematic * @param aImportedPcbFileType type of the imported PCB */ void ImportFiles( int aImportedSchFileType, int aImportedPcbFileType ); wxFileName m_InputFile; wxFileName m_TargetProj; private: KICAD_MANAGER_FRAME* m_frame; STRING_UTF8_MAP m_properties; std::vector m_copiedSchPaths; std::vector m_copiedPcbPaths; std::vector m_schExtenstions; std::vector m_pcbExtenstions; void OutputCopyError( const wxFileName& aSrc, const wxFileName& aFileCopy ); void ImportIndividualFile( KICAD_T aKicad_T, int aImportedFileType ); void EasyEDAProProjectHandler(); }; #endif