KiCad PCB EDA Suite
import_proj.h
Go to the documentation of this file.
1#ifndef IMPORT_PROJ_H
2#define IMPORT_PROJ_H
3
5#include <wx/filename.h>
6#include <core/typeinfo.h>
7
12{
13public:
14 IMPORT_PROJ_HELPER( KICAD_MANAGER_FRAME* aframe, const wxString& aFile,
15 const wxString& aSchFileExtension, const wxString& aPcbFileExtension );
16 const wxFileName& GetProj();
17 wxString GetProjPath();
18 void SetProjPath( const wxString aPath );
19 wxString GetProjFullPath();
20 wxString GetProjName();
21
27
29
34 bool CopyImportedFiles( bool displayError = true );
35
42 void AssociateFilesWithProj( int aImportedSchFileType, int aImportedPcbFileType );
43
44private:
46 wxFileName m_sch;
47 wxFileName m_shCopy;
48 wxFileName m_pcb;
49 wxFileName m_pcbCopy;
50 wxFileName m_pro;
51 bool CopyImportedFile( KICAD_T aKicad_T, bool displayError = true );
52 void OutputCopyError( const wxFileName& aSrc, const wxFileName& aFileCopy );
53 void AssociateFileWithProj( KICAD_T aKicad_T, int aImportedFileType );
54};
55
56#endif
A helper class to import non Kicad project.
Definition: import_proj.h:12
void AssociateFilesWithProj(int aImportedSchFileType, int aImportedPcbFileType)
Converts imported files to kicad type files.
wxString GetProjFullPath()
Definition: import_proj.cpp:62
wxString GetProjPath()
Definition: import_proj.cpp:50
wxFileName m_pcb
Definition: import_proj.h:48
wxFileName m_shCopy
Definition: import_proj.h:47
const wxFileName & GetProj()
Definition: import_proj.cpp:44
bool CopyImportedFile(KICAD_T aKicad_T, bool displayError=true)
void SetProjPath(const wxString aPath)
Definition: import_proj.cpp:56
IMPORT_PROJ_HELPER(KICAD_MANAGER_FRAME *aframe, const wxString &aFile, const wxString &aSchFileExtension, const wxString &aPcbFileExtension)
Definition: import_proj.cpp:31
void CreateEmptyDirForProject()
Appends a new directory with the name of the project file Keep iterating until an empty directory is ...
Definition: import_proj.cpp:74
wxFileName m_pcbCopy
Definition: import_proj.h:49
KICAD_MANAGER_FRAME * m_frame
Definition: import_proj.h:45
void SetProjAbsolutePath()
Definition: import_proj.cpp:92
void OutputCopyError(const wxFileName &aSrc, const wxFileName &aFileCopy)
void AssociateFileWithProj(KICAD_T aKicad_T, int aImportedFileType)
wxFileName m_pro
Definition: import_proj.h:50
bool CopyImportedFiles(bool displayError=true)
Copies project files to the destination directory.
wxString GetProjName()
Definition: import_proj.cpp:68
wxFileName m_sch
Definition: import_proj.h:46
The main KiCad project manager frame.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition: typeinfo.h:78