|
KiCad PCB EDA Suite
|
#include <filesystem>#include <string>#include <system_error>#include <vector>#include <wx/filename.h>#include <wx/intl.h>#include <compatibility_report.h>#include <downgrade_scan.h>#include <downgrade_target.h>#include <kiplatform/io.h>Go to the source code of this file.
Classes | |
| class | DOWNGRADE_OUTPUT_DIRECTORIES |
Functions | |
| std::filesystem::path | DowngradeNativePath (const wxString &aPath) |
| wxString | DowngradeWxPath (const std::filesystem::path &aPath) |
| bool | ValidateDowngradeReportPath (const wxString &aPath, wxString &aError) |
| A report destination that is a design or library file is a mistyped path, not a report. | |
| bool | WriteDowngradeReport (const COMPATIBILITY_REPORT &aReport, const wxString &aTarget, const wxString &aPath, wxString &aError) |
| Write the readable compatibility report, the same text the export dialog shows. | |
| bool | ValidateFreshDowngradeOutput (const wxString &aOutput, wxString &aError) |
| bool | IsDowngradeLibraryWorkingArtifact (const wxString &aPath) |
| bool | ValidateDowngradeLibrarySource (const wxString &aSource, wxString &aError) |
| bool | ValidateDowngradeLibraryCopy (const wxString &aSource, const wxString &aDestination, wxString &aError) |
| wxString | DowngradeLibraryCopyPath (const wxString &aLibrary, const wxString &aOutputDirectory) |
| bool | CopyDowngradeLibraryDirectory (const wxString &aSource, const wxString &aDestination, DOWNGRADE_OUTPUT_DIRECTORIES &aDirectories, wxString &aError) |
|
inline |
Definition at line 261 of file downgrade_copy.h.
References _, DOWNGRADE_OUTPUT_DIRECTORIES::Create(), DowngradeNativePath(), DowngradeWxPath(), end, IsDowngradeLibraryWorkingArtifact(), source, and ValidateDowngradeLibraryCopy().
Referenced by EESCHEMA_JOBS_HANDLER::JobDowngrade(), PCBNEW_JOBS_HANDLER::JobDowngrade(), and PCBNEW_JOBS_HANDLER::JobFpDowngrade().
|
inline |
Definition at line 250 of file downgrade_copy.h.
References DowngradeNativePath(), DowngradeWxPath(), and source.
Referenced by EESCHEMA_JOBS_HANDLER::JobDowngrade(), and PCBNEW_JOBS_HANDLER::JobDowngrade().
|
inline |
Definition at line 20 of file downgrade_copy.h.
Referenced by CopyDowngradeLibraryDirectory(), DOWNGRADE_OUTPUT_DIRECTORIES::Create(), DowngradeLibraryCopyPath(), EESCHEMA_JOBS_HANDLER::JobDowngrade(), ValidateDowngradeLibraryCopy(), ValidateDowngradeLibrarySource(), and ValidateFreshDowngradeOutput().
|
inline |
Definition at line 29 of file downgrade_copy.h.
Referenced by CopyDowngradeLibraryDirectory(), DowngradeLibraryCopyPath(), EESCHEMA_JOBS_HANDLER::JobDowngrade(), and ValidateDowngradeLibrarySource().
|
inline |
Definition at line 105 of file downgrade_copy.h.
References IsDowngradeWorkingArtifact().
Referenced by CopyDowngradeLibraryDirectory(), and ValidateDowngradeLibrarySource().
|
inline |
Definition at line 160 of file downgrade_copy.h.
References _, DowngradeNativePath(), source, ValidateDowngradeLibrarySource(), and ValidateFreshDowngradeOutput().
Referenced by CopyDowngradeLibraryDirectory(), EESCHEMA_JOBS_HANDLER::JobDowngrade(), and PCBNEW_JOBS_HANDLER::JobDowngrade().
|
inline |
Definition at line 113 of file downgrade_copy.h.
References _, DowngradeNativePath(), DowngradeWxPath(), end, IsDowngradeLibraryWorkingArtifact(), path, and source.
Referenced by EESCHEMA_JOBS_HANDLER::JobDowngrade(), PCBNEW_JOBS_HANDLER::JobDowngrade(), and ValidateDowngradeLibraryCopy().
|
inline |
A report destination that is a design or library file is a mistyped path, not a report.
Definition at line 39 of file downgrade_copy.h.
References _, and IsDowngradeDesignFile().
Referenced by CLI::FP_DOWNGRADE_COMMAND::doPerform(), CLI::PCB_DOWNGRADE_COMMAND::doPerform(), CLI::PROJECT_DOWNGRADE_COMMAND::doPerform(), CLI::SCH_DOWNGRADE_COMMAND::doPerform(), and CLI::SYM_DOWNGRADE_COMMAND::doPerform().
|
inline |
Definition at line 75 of file downgrade_copy.h.
References _, and DowngradeNativePath().
Referenced by CLI::PCB_DOWNGRADE_COMMAND::doPerform(), EESCHEMA_JOBS_HANDLER::JobDowngrade(), PCBNEW_JOBS_HANDLER::JobDowngrade(), EESCHEMA_JOBS_HANDLER::JobSymDowngrade(), and ValidateDowngradeLibraryCopy().
|
inline |
Write the readable compatibility report, the same text the export dialog shows.
Does nothing when no path was asked for, or when the target is one the command itself already refused.
Definition at line 51 of file downgrade_copy.h.
References _, KIPLATFORM::IO::AtomicWriteFile(), FindDowngradeTarget(), GetDowngradeTargets(), DOWNGRADE_TARGET::m_name, text, and COMPATIBILITY_REPORT::ToText().
Referenced by CLI::FP_DOWNGRADE_COMMAND::doPerform(), CLI::PCB_DOWNGRADE_COMMAND::doPerform(), CLI::PROJECT_DOWNGRADE_COMMAND::doPerform(), CLI::SCH_DOWNGRADE_COMMAND::doPerform(), and CLI::SYM_DOWNGRADE_COMMAND::doPerform().