KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DESIGN_BLOCK_IO_MGR Class Reference

#include <design_block_io.h>

Inheritance diagram for DESIGN_BLOCK_IO_MGR:
IO_MGR

Public Types

enum  DESIGN_BLOCK_FILE_T { DESIGN_BLOCK_FILE_UNKNOWN = 0 , KICAD_SEXP , FILE_TYPE_NONE }
 

Static Public Member Functions

static const wxString ShowType (DESIGN_BLOCK_FILE_T aFileType)
 
static DESIGN_BLOCK_IOFindPlugin (DESIGN_BLOCK_FILE_T aFileType)
 
static DESIGN_BLOCK_FILE_T EnumFromStr (const wxString &aFileType)
 
static DESIGN_BLOCK_FILE_T GuessPluginTypeFromLibPath (const wxString &aLibPath, int aCtl=0)
 
static bool ConvertLibrary (std::map< std::string, UTF8 > *aOldFileProps, const wxString &aOldFilePath, const wxString &aNewFilePath)
 Convert a design block library to the latest KiCad format.
 

Detailed Description

Definition at line 35 of file design_block_io.h.

Member Enumeration Documentation

◆ DESIGN_BLOCK_FILE_T

Enumerator
DESIGN_BLOCK_FILE_UNKNOWN 

0 is not a legal menu id on Mac

KICAD_SEXP 

S-expression KiCad file format.

FILE_TYPE_NONE 

Definition at line 38 of file design_block_io.h.

Member Function Documentation

◆ ConvertLibrary()

bool DESIGN_BLOCK_IO_MGR::ConvertLibrary ( std::map< std::string, UTF8 > *  aOldFileProps,
const wxString &  aOldFilePath,
const wxString &  aNewFilePath 
)
static

Convert a design block library to the latest KiCad format.

Definition at line 83 of file design_block_io.cpp.

References FILE_TYPE_NONE, FindPlugin(), GuessPluginTypeFromLibPath(), and KICAD_SEXP.

Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::onMigrateLibraries().

◆ EnumFromStr()

DESIGN_BLOCK_IO_MGR::DESIGN_BLOCK_FILE_T DESIGN_BLOCK_IO_MGR::EnumFromStr ( const wxString &  aFileType)
static

◆ FindPlugin()

◆ GuessPluginTypeFromLibPath()

DESIGN_BLOCK_IO_MGR::DESIGN_BLOCK_FILE_T DESIGN_BLOCK_IO_MGR::GuessPluginTypeFromLibPath ( const wxString &  aLibPath,
int  aCtl = 0 
)
static

◆ ShowType()


The documentation for this class was generated from the following files: