KiCad PCB EDA Suite
Loading...
Searching...
No Matches
downgrade_target.h File Reference
#include <vector>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  DOWNGRADE_TARGET
 An older KiCad release we can export a project back to. More...
 

Functions

const std::vector< DOWNGRADE_TARGET > & GetDowngradeTargets ()
 Supported downgrade targets, newest first.
 
const DOWNGRADE_TARGET * FindDowngradeTarget (const wxString &aNameOrId)
 Match a user-supplied target string against name or stable id, case-insensitively.
 
wxString DowngradeTargetNames ()
 The valid target choices as one user-facing list, for error messages.
 

Function Documentation

◆ DowngradeTargetNames()

wxString DowngradeTargetNames ( )
inline

The valid target choices as one user-facing list, for error messages.

Definition at line 65 of file downgrade_target.h.

References GetDowngradeTargets().

Referenced by CLI::PROJECT_DOWNGRADE_COMMAND::doPerform(), ExportProjectForDowngrade(), EESCHEMA_JOBS_HANDLER::JobDowngrade(), and PCBNEW_JOBS_HANDLER::JobDowngrade().

◆ FindDowngradeTarget()

const DOWNGRADE_TARGET * FindDowngradeTarget ( const wxString & aNameOrId)
inline

◆ GetDowngradeTargets()

const std::vector< DOWNGRADE_TARGET > & GetDowngradeTargets ( )
inline

Supported downgrade targets, newest first.

Only the last release or two. Exporting further back loses too much.

Definition at line 39 of file downgrade_target.h.

Referenced by CLI::PROJECT_DOWNGRADE_COMMAND::doPerform(), DowngradeTargetNames(), KICAD_MANAGER_CONTROL::ExportForOlderVersion(), FindDowngradeTarget(), EESCHEMA_JOBS_HANDLER::JobDowngrade(), and PCBNEW_JOBS_HANDLER::JobDowngrade().