KiCad PCB EDA Suite
Loading...
Searching...
No Matches
import_proj.h
Go to the documentation of this file.
1#ifndef IMPORT_PROJ_H
2#define IMPORT_PROJ_H
3
4#include <wx/filename.h>
5#include <core/typeinfo.h>
6#include <core/utf8.h>
7
8#include <map>
9
11
16{
17public:
19 const std::vector<wxString>& aSchFileExtensions,
20 const std::vector<wxString>& aPcbFileExtensions );
21
26 void FindEmptyTargetDir();
27
34 void ImportFiles( int aImportedSchFileType, int aImportedPcbFileType );
35
36 wxFileName m_InputFile;
37 wxFileName m_TargetProj;
38
39private:
41
42 std::map<std::string, UTF8> m_properties;
43
44 std::vector<wxString> m_copiedSchPaths;
45 std::vector<wxString> m_copiedPcbPaths;
46
47 std::vector<wxString> m_schExtenstions;
48 std::vector<wxString> m_pcbExtenstions;
49
50 void OutputCopyError( const wxFileName& aSrc, const wxFileName& aFileCopy );
51 void ImportIndividualFile( KICAD_T aKicad_T, int aImportedFileType );
52
54};
55
56#endif
A helper class to import non Kicad project.
Definition: import_proj.h:16
wxFileName m_TargetProj
Definition: import_proj.h:37
void EasyEDAProProjectHandler()
std::vector< wxString > m_copiedSchPaths
Definition: import_proj.h:44
std::map< std::string, UTF8 > m_properties
Definition: import_proj.h:42
void FindEmptyTargetDir()
Appends a new directory with the name of the project file Keep iterating until an empty directory is ...
Definition: import_proj.cpp:53
std::vector< wxString > m_pcbExtenstions
Definition: import_proj.h:48
KICAD_MANAGER_FRAME * m_frame
Definition: import_proj.h:40
void ImportFiles(int aImportedSchFileType, int aImportedPcbFileType)
Converts imported files to kicad type files.
std::vector< wxString > m_copiedPcbPaths
Definition: import_proj.h:45
void OutputCopyError(const wxFileName &aSrc, const wxFileName &aFileCopy)
Definition: import_proj.cpp:71
void ImportIndividualFile(KICAD_T aKicad_T, int aImportedFileType)
Definition: import_proj.cpp:94
wxFileName m_InputFile
Definition: import_proj.h:36
std::vector< wxString > m_schExtenstions
Definition: import_proj.h:47
The main KiCad project manager frame.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition: typeinfo.h:78