|
KiCad PCB EDA Suite
|
Traverser class to duplicate/copy project or template files with proper renaming. More...
#include <project_tree_traverser.h>
Public Member Functions | |
| PROJECT_TREE_TRAVERSER (KICAD_MANAGER_FRAME *aFrame, const wxString &aSrcProjectDirPath, const wxString &aSrcProjectName, const wxString &aNewProjectDirPath, const wxString &aNewProjectName) | |
| virtual wxDirTraverseResult | OnFile (const wxString &aSrcFilePath) override |
| virtual wxDirTraverseResult | OnDir (const wxString &aSrcDirPath) override |
| wxString | GetErrors () const |
| wxFileName | GetNewProjectFile () const |
Private Attributes | |
| KICAD_MANAGER_FRAME * | m_frame |
| wxString | m_projectDirPath |
| wxString | m_projectName |
| wxString | m_newProjectDirPath |
| wxString | m_newProjectName |
| wxFileName | m_newProjectFile |
| wxString | m_errors |
Traverser class to duplicate/copy project or template files with proper renaming.
This class can operate in two modes:
Definition at line 40 of file project_tree_traverser.h.
| PROJECT_TREE_TRAVERSER::PROJECT_TREE_TRAVERSER | ( | KICAD_MANAGER_FRAME * | aFrame, |
| const wxString & | aSrcProjectDirPath, | ||
| const wxString & | aSrcProjectName, | ||
| const wxString & | aNewProjectDirPath, | ||
| const wxString & | aNewProjectName ) |
Definition at line 38 of file project_tree_traverser.cpp.
References m_frame, m_newProjectDirPath, m_newProjectName, m_projectDirPath, and m_projectName.
|
inline |
Definition at line 52 of file project_tree_traverser.h.
References m_errors.
Referenced by TEMPLATE_WIDGET::onDuplicateTemplate(), and KICAD_MANAGER_CONTROL::SaveProjectAs().
|
inline |
Definition at line 53 of file project_tree_traverser.h.
References m_newProjectFile.
Referenced by KICAD_MANAGER_CONTROL::SaveProjectAs().
|
overridevirtual |
Definition at line 173 of file project_tree_traverser.cpp.
References _, m_errors, m_newProjectDirPath, m_newProjectName, m_projectDirPath, m_projectName, and PROJECT_BACKUPS_DIR_SUFFIX.
|
overridevirtual |
Definition at line 52 of file project_tree_traverser.cpp.
References FILEEXT::BackupFileSuffix, FILEEXT::DrawingSheetFileExtension, FILEEXT::DrillFileExtension, eeschema, KIWAY::FACE_GERBVIEW, KIWAY::FACE_PCB, KIWAY::FACE_PL_EDITOR, KIWAY::FACE_SCH, FILEEXT::FootprintAssignmentFileExtension, FILEEXT::FootprintLibraryTableFileName, FILEEXT::GerberJobFileExtension, FILEEXT::IsGerberFileExtension(), FILEEXT::KiCadFootprintFileExtension, FILEEXT::KiCadPcbFileExtension, FILEEXT::KiCadSchematicFileExtension, FILEEXT::KiCadSymbolLibFileExtension, KiCopyFile(), FILEEXT::LegacyFootprintLibPathExtension, FILEEXT::LegacyPcbFileExtension, FILEEXT::LegacyProjectFileExtension, FILEEXT::LegacySchematicFileExtension, FILEEXT::LegacySymbolDocumentFileExtension, FILEEXT::LegacySymbolLibFileExtension, JSON_SETTINGS::LoadFromFile(), PROJECT_FILE::LoadFromFile(), FILEEXT::LockFileExtension, FILEEXT::LockFilePrefix, m_errors, m_frame, m_newProjectDirPath, m_newProjectFile, m_newProjectName, m_projectDirPath, m_projectName, FILEEXT::NetlistFileExtension, pcbnew, FILEEXT::ProjectFileExtension, FILEEXT::ProjectLocalSettingsFileExtension, PROJECT_FILE::SaveAs(), PROJECT_LOCAL_SETTINGS::SaveAs(), KIFACE::SaveFileAs(), FILEEXT::SchematicSymbolFileExtension, and FILEEXT::SymbolLibraryTableFileName.
|
private |
Definition at line 64 of file project_tree_traverser.h.
Referenced by GetErrors(), OnDir(), and OnFile().
|
private |
Definition at line 56 of file project_tree_traverser.h.
Referenced by OnFile(), and PROJECT_TREE_TRAVERSER().
|
private |
Definition at line 60 of file project_tree_traverser.h.
Referenced by OnDir(), OnFile(), and PROJECT_TREE_TRAVERSER().
|
private |
Definition at line 63 of file project_tree_traverser.h.
Referenced by GetNewProjectFile(), and OnFile().
|
private |
Definition at line 61 of file project_tree_traverser.h.
Referenced by OnDir(), OnFile(), and PROJECT_TREE_TRAVERSER().
|
private |
Definition at line 58 of file project_tree_traverser.h.
Referenced by OnDir(), OnFile(), and PROJECT_TREE_TRAVERSER().
|
private |
Definition at line 59 of file project_tree_traverser.h.
Referenced by OnDir(), OnFile(), and PROJECT_TREE_TRAVERSER().