Remove LIB types from API for now

All with the possible exception of LIB_SYMBOL are going away
This commit is contained in:
Jon Evans 2024-04-13 15:03:02 -04:00
parent 14762e3d54
commit 02ec894b83
2 changed files with 13 additions and 13 deletions

View File

@ -72,11 +72,11 @@ enum KiCadObjectType
KOT_SCH_PIN = 38; KOT_SCH_PIN = 38;
KOT_LIB_SYMBOL = 39; KOT_LIB_SYMBOL = 39;
KOT_LIB_SHAPE = 40; // KOT_LIB_SHAPE = 40;
KOT_LIB_TEXT = 41; // KOT_LIB_TEXT = 41;
KOT_LIB_TEXTBOX = 42; // KOT_LIB_TEXTBOX = 42;
KOT_LIB_PIN = 43; // KOT_LIB_PIN = 43;
KOT_LIB_FIELD = 44; // KOT_LIB_FIELD = 44;
KOT_WSG_LINE = 45; KOT_WSG_LINE = 45;
KOT_WSG_RECT = 46; KOT_WSG_RECT = 46;

View File

@ -75,10 +75,10 @@ KICAD_T FromProtoEnum( types::KiCadObjectType aValue )
case types::KiCadObjectType::KOT_SCH_SHEET: return SCH_SHEET_T; case types::KiCadObjectType::KOT_SCH_SHEET: return SCH_SHEET_T;
case types::KiCadObjectType::KOT_SCH_PIN: return SCH_PIN_T; case types::KiCadObjectType::KOT_SCH_PIN: return SCH_PIN_T;
case types::KiCadObjectType::KOT_LIB_SYMBOL: return LIB_SYMBOL_T; case types::KiCadObjectType::KOT_LIB_SYMBOL: return LIB_SYMBOL_T;
case types::KiCadObjectType::KOT_LIB_SHAPE: return LIB_SHAPE_T; // case types::KiCadObjectType::KOT_LIB_SHAPE: return LIB_SHAPE_T;
case types::KiCadObjectType::KOT_LIB_TEXT: return LIB_TEXT_T; // case types::KiCadObjectType::KOT_LIB_TEXT: return LIB_TEXT_T;
case types::KiCadObjectType::KOT_LIB_TEXTBOX: return LIB_TEXTBOX_T; // case types::KiCadObjectType::KOT_LIB_TEXTBOX: return LIB_TEXTBOX_T;
case types::KiCadObjectType::KOT_LIB_PIN: return LIB_PIN_T; // case types::KiCadObjectType::KOT_LIB_PIN: return LIB_PIN_T;
case types::KiCadObjectType::KOT_WSG_LINE: return WSG_LINE_T; case types::KiCadObjectType::KOT_WSG_LINE: return WSG_LINE_T;
case types::KiCadObjectType::KOT_WSG_RECT: return WSG_RECT_T; case types::KiCadObjectType::KOT_WSG_RECT: return WSG_RECT_T;
case types::KiCadObjectType::KOT_WSG_POLY: return WSG_POLY_T; case types::KiCadObjectType::KOT_WSG_POLY: return WSG_POLY_T;
@ -138,10 +138,10 @@ types::KiCadObjectType ToProtoEnum( KICAD_T aValue )
case SCH_SHEET_T: return types::KiCadObjectType::KOT_SCH_SHEET; case SCH_SHEET_T: return types::KiCadObjectType::KOT_SCH_SHEET;
case SCH_PIN_T: return types::KiCadObjectType::KOT_SCH_PIN; case SCH_PIN_T: return types::KiCadObjectType::KOT_SCH_PIN;
case LIB_SYMBOL_T: return types::KiCadObjectType::KOT_LIB_SYMBOL; case LIB_SYMBOL_T: return types::KiCadObjectType::KOT_LIB_SYMBOL;
case LIB_SHAPE_T: return types::KiCadObjectType::KOT_LIB_SHAPE; // case LIB_SHAPE_T: return types::KiCadObjectType::KOT_LIB_SHAPE;
case LIB_TEXT_T: return types::KiCadObjectType::KOT_LIB_TEXT; // case LIB_TEXT_T: return types::KiCadObjectType::KOT_LIB_TEXT;
case LIB_TEXTBOX_T: return types::KiCadObjectType::KOT_LIB_TEXTBOX; // case LIB_TEXTBOX_T: return types::KiCadObjectType::KOT_LIB_TEXTBOX;
case LIB_PIN_T: return types::KiCadObjectType::KOT_LIB_PIN; // case LIB_PIN_T: return types::KiCadObjectType::KOT_LIB_PIN;
case WSG_LINE_T: return types::KiCadObjectType::KOT_WSG_LINE; case WSG_LINE_T: return types::KiCadObjectType::KOT_WSG_LINE;
case WSG_RECT_T: return types::KiCadObjectType::KOT_WSG_RECT; case WSG_RECT_T: return types::KiCadObjectType::KOT_WSG_RECT;
case WSG_POLY_T: return types::KiCadObjectType::KOT_WSG_POLY; case WSG_POLY_T: return types::KiCadObjectType::KOT_WSG_POLY;