|
KiCad PCB EDA Suite
|
#include <functional>#include <vector>#include <compatibility_report.h>#include <kiway.h>#include <reporter.h>#include <dialogs/dialog_export_older_version_base.h>Go to the source code of this file.
Classes | |
| struct | DOWNGRADE_EXPORT_PASS |
| What one pass of an export is asked to do. More... | |
| struct | DOWNGRADE_EXPORT_RESULT |
| What the flow needs back from a pass. More... | |
| class | DIALOG_EXPORT_OLDER_VERSION |
Typedefs | |
| using | DOWNGRADE_EXPORT_RUNNER = std::function<bool( const DOWNGRADE_EXPORT_PASS&, DOWNGRADE_EXPORT_RESULT& )> |
Functions | |
| template<typename JOB_T> | |
| bool | RunDowngradeJob (KIWAY &aKiway, KIWAY::FACE_T aFace, JOB_T &aJob, const DOWNGRADE_EXPORT_PASS &aPass, DOWNGRADE_EXPORT_RESULT &aResult) |
| Fill in the parts of a downgrade job that every editor sets the same way, run it, and hand back its report. | |
| void | RunExportForOlderVersion (EDA_BASE_FRAME *aFrame, const DOWNGRADE_EXPORT_RUNNER &aRun) |
| using DOWNGRADE_EXPORT_RUNNER = std::function<bool( const DOWNGRADE_EXPORT_PASS&, DOWNGRADE_EXPORT_RESULT& )> |
Definition at line 76 of file dialog_export_older_version.h.
| bool RunDowngradeJob | ( | KIWAY & | aKiway, |
| KIWAY::FACE_T | aFace, | ||
| JOB_T & | aJob, | ||
| const DOWNGRADE_EXPORT_PASS & | aPass, | ||
| DOWNGRADE_EXPORT_RESULT & | aResult ) |
Fill in the parts of a downgrade job that every editor sets the same way, run it, and hand back its report.
Consent for any loss was already taken through the report dialog.
Definition at line 55 of file dialog_export_older_version.h.
References DOWNGRADE_EXPORT_PASS::m_dropInsteadOfApproximate, DOWNGRADE_EXPORT_PASS::m_dryRun, DOWNGRADE_EXPORT_RESULT::m_error, DOWNGRADE_EXPORT_RESULT::m_report, DOWNGRADE_EXPORT_PASS::m_target, KIWAY::ProcessJob(), and reporter.
Referenced by BOARD_EDITOR_CONTROL::ExportForOlderVersion(), FOOTPRINT_EDITOR_CONTROL::ExportForOlderVersion(), SCH_EDITOR_CONTROL::ExportForOlderVersion(), and SYMBOL_EDITOR_CONTROL::ExportForOlderVersion().
| void RunExportForOlderVersion | ( | EDA_BASE_FRAME * | aFrame, |
| const DOWNGRADE_EXPORT_RUNNER & | aRun ) |
Definition at line 109 of file dialog_export_older_version.cpp.
References _, GetDowngradeTargets(), DIALOG_EXPORT_OLDER_VERSION::GetDropInsteadOfApproximate(), EDA_BASE_FRAME::GetMruPath(), DIALOG_EXPORT_OLDER_VERSION::GetPath(), DIALOG_EXPORT_OLDER_VERSION::GetTarget(), DIALOG_EXPORT_OLDER_VERSION::GetVariant(), DOWNGRADE_EXPORT_PASS::m_dropInsteadOfApproximate, DOWNGRADE_EXPORT_PASS::m_dryRun, DOWNGRADE_EXPORT_PASS::m_folder, DOWNGRADE_EXPORT_PASS::m_target, DOWNGRADE_EXPORT_PASS::m_variant, name, result, and DIALOG_SHIM::ShowModal().
Referenced by BOARD_EDITOR_CONTROL::ExportForOlderVersion(), FOOTPRINT_EDITOR_CONTROL::ExportForOlderVersion(), SCH_EDITOR_CONTROL::ExportForOlderVersion(), and SYMBOL_EDITOR_CONTROL::ExportForOlderVersion().