KiCad PCB EDA Suite
Loading...
Searching...
No Matches
import_proj.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef IMPORT_PROJ_H
21#define IMPORT_PROJ_H
22
23#include <wx/filename.h>
24#include <core/typeinfo.h>
25#include <core/utf8.h>
26
27#include <map>
28
30
35{
36public:
38 const std::vector<wxString>& aSchFileExtensions,
39 const std::vector<wxString>& aPcbFileExtensions );
40
45 void FindEmptyTargetDir();
46
53 void ImportFiles( int aImportedSchFileType, int aImportedPcbFileType );
54
55 wxFileName m_InputFile;
56 wxFileName m_TargetProj;
57
58private:
60
61 std::map<std::string, UTF8> m_properties;
62
63 std::vector<wxString> m_copiedSchPaths;
64 std::vector<wxString> m_copiedPcbPaths;
65
66 std::vector<wxString> m_schExtenstions;
67 std::vector<wxString> m_pcbExtenstions;
68
69 void OutputCopyError( const wxFileName& aSrc, const wxFileName& aFileCopy );
70 void ImportIndividualFile( KICAD_T aKicad_T, int aImportedFileType );
71
73};
74
75#endif
A helper class to import non Kicad project.
Definition: import_proj.h:35
wxFileName m_TargetProj
Definition: import_proj.h:56
void EasyEDAProProjectHandler()
std::vector< wxString > m_copiedSchPaths
Definition: import_proj.h:63
std::map< std::string, UTF8 > m_properties
Definition: import_proj.h:61
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:67
KICAD_MANAGER_FRAME * m_frame
Definition: import_proj.h:59
void ImportFiles(int aImportedSchFileType, int aImportedPcbFileType)
Converts imported files to kicad type files.
std::vector< wxString > m_copiedPcbPaths
Definition: import_proj.h:64
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:55
std::vector< wxString > m_schExtenstions
Definition: import_proj.h:66
The main KiCad project manager frame.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition: typeinfo.h:78