Loading eeschema/libcmp.h +58 −36 Original line number Original line Diff line number Diff line Loading @@ -29,11 +29,19 @@ #define CLOCK_PIN_DIM 40 /* Dim of clock pin symbol. */ #define CLOCK_PIN_DIM 40 /* Dim of clock pin symbol. */ #define IEEE_SYMBOL_PIN_DIM 40 /* Dim of special pin symbol. */ #define IEEE_SYMBOL_PIN_DIM 40 /* Dim of special pin symbol. */ #define NO_FILL 0 // Poly, Squar, Circle, Arc = option No Fill #define FILLED_SHAPE 1 // Poly, Squar, Circle, Arc = option Fill with current color ("Solid shape") /** #define FILLED_WITH_BG_BODYCOLOR 2 /* Poly, Squar, Circle, Arc = option Fill * Enum FILL_T * is the set of fill types used in plotting or drawing enclosed areas. */ enum FILL_T { NO_FILL, // Poly, Square, Circle, Arc = option No Fill FILLED_SHAPE, // Poly, Square, Circle, Arc = option Fill with current color ("Solid shape") FILLED_WITH_BG_BODYCOLOR, /* Poly, Square, Circle, Arc = option Fill * with background body color, translucent (texts on this shape can be see) * with background body color, translucent (texts on this shape can be see) * not fille in B&W plot mode */ * not fille in B&W plot mode */ }; //Offsets used in editing library component, for handle aliad dats //Offsets used in editing library component, for handle aliad dats #define ALIAS_NAME 0 #define ALIAS_NAME 0 Loading @@ -43,7 +51,7 @@ #define ALIAS_NEXT 4 #define ALIAS_NEXT 4 typedef enum { enum LocateDrawStructType { LOCATE_COMPONENT_ARC_DRAW_TYPE = 1, LOCATE_COMPONENT_ARC_DRAW_TYPE = 1, LOCATE_COMPONENT_CIRCLE_DRAW_TYPE = 2, LOCATE_COMPONENT_CIRCLE_DRAW_TYPE = 2, LOCATE_COMPONENT_GRAPHIC_TEXT_DRAW_TYPE = 4, LOCATE_COMPONENT_GRAPHIC_TEXT_DRAW_TYPE = 4, Loading @@ -51,7 +59,7 @@ typedef enum { LOCATE_LINE_DRAW_TYPE = 0x10, LOCATE_LINE_DRAW_TYPE = 0x10, LOCATE_COMPONENT_POLYLINE_DRAW_TYPE = 0x20, LOCATE_COMPONENT_POLYLINE_DRAW_TYPE = 0x20, LOCATE_COMPONENT_LINE_DRAW_TYPE = 0x40 LOCATE_COMPONENT_LINE_DRAW_TYPE = 0x40 } LocateDrawStructType; }; #define LOCATE_ALL_DRAW_ITEM 0xFFFFFFFF #define LOCATE_ALL_DRAW_ITEM 0xFFFFFFFF Loading @@ -62,20 +70,23 @@ typedef enum { * (alias ou racine) */ * (alias ou racine) */ /* definition des types des structures d'elements de librairie */ /* definition des types des structures d'elements de librairie */ typedef enum { enum LibrEntryType { ROOT, /* Structure est a standard EDA_LibComponentStruct */ ROOT, /* Structure est a standard EDA_LibComponentStruct */ ALIAS /* Structure is an alias */ ALIAS /* Structure is an alias */ } LibrEntryType; }; /* valeur du membre .m_Options */ /* valeur du membre .m_Options */ typedef enum { enum LibrEntryOptions { ENTRY_NORMAL, // Libentry is standard ENTRY_NORMAL, // Libentry is standard ENTRY_POWER // Libentry is a power symbol ENTRY_POWER // Libentry is a power symbol } LibrEntryOptions; }; /* Definitions des Pins */ typedef enum { /* Type des Pins. si modif: modifier tableau des mgs suivant */ /** * Enum ElectricPinType * is the set of schematic pin types. */ enum ElectricPinType { /* Type des Pins. si modif: modifier tableau des mgs suivant */ PIN_INPUT, PIN_INPUT, PIN_OUTPUT, PIN_OUTPUT, PIN_BIDI, PIN_BIDI, Loading @@ -88,7 +99,7 @@ typedef enum { /* Type des Pins. si modif: modifier tableau des mgs suivant PIN_OPENEMITTER, PIN_OPENEMITTER, PIN_NC, /* No connect */ PIN_NC, /* No connect */ PIN_NMAX /* Valeur limite ( utilisee comme limite de tableaux) */ PIN_NMAX /* Valeur limite ( utilisee comme limite de tableaux) */ } ElectricPinType; }; /* Messages d'affichage du type electrique */ /* Messages d'affichage du type electrique */ eda_global const wxChar* MsgPinElectricType[] eda_global const wxChar* MsgPinElectricType[] Loading @@ -114,20 +125,30 @@ eda_global const wxChar* MsgPinElectricType[] /* Autres bits: bits du membre .Flag des Pins */ /* Autres bits: bits du membre .Flag des Pins */ #define PINNOTDRAW 1 /* si 1: pin invisible */ #define PINNOTDRAW 1 /* si 1: pin invisible */ typedef enum { /* Forme des Pins */ /** * Enum DrawPinShape * is the set of shapes allowed for pins. */ enum DrawPinShape { NONE = 0, NONE = 0, INVERT = 1, INVERT = 1, CLOCK = 2, CLOCK = 2, LOWLEVEL_IN = 4, LOWLEVEL_IN = 4, LOWLEVEL_OUT = 8 LOWLEVEL_OUT = 8 } DrawPinShape; }; typedef enum { /* Orientation des Pins */ /** * Enum DrawPinOrient * is the set of orientations allowed for pins. */ enum DrawPinOrient { PIN_RIGHT = 'R', PIN_RIGHT = 'R', PIN_LEFT = 'L', PIN_LEFT = 'L', PIN_UP = 'U', PIN_UP = 'U', PIN_DOWN = 'D', PIN_DOWN = 'D', } DrawPinOrient; }; /*************************************/ /*************************************/ /* Classe representant une librairie */ /* Classe representant une librairie */ Loading Loading @@ -239,7 +260,7 @@ class LibDrawArc : public LibEDA_BaseStruct { { public: public: int m_Rayon; int m_Rayon; int m_Fill; // NO_FILL, FILLED_SHAPE or FILLED_WITH_BG_BODYCOLOR FILL_T m_Fill; // NO_FILL, FILLED_SHAPE or FILLED_WITH_BG_BODYCOLOR int t1, t2; /* position des 2 extremites de l'arc en 0,1 degres */ int t1, t2; /* position des 2 extremites de l'arc en 0,1 degres */ wxPoint m_ArcStart, m_ArcEnd; /* position des 2 extremites de l'arc en coord reelles*/ wxPoint m_ArcStart, m_ArcEnd; /* position des 2 extremites de l'arc en coord reelles*/ Loading @@ -260,7 +281,7 @@ class LibDrawCircle : public LibEDA_BaseStruct { { public: public: int m_Rayon; int m_Rayon; int m_Fill; FILL_T m_Fill; public: public: LibDrawCircle(); LibDrawCircle(); Loading @@ -275,6 +296,7 @@ public: bool WriteDescr( FILE* File ); bool WriteDescr( FILE* File ); }; }; class LibDrawText : public LibEDA_BaseStruct class LibDrawText : public LibEDA_BaseStruct { { public: public: Loading @@ -296,11 +318,12 @@ public: bool WriteDescr( FILE* File ); bool WriteDescr( FILE* File ); }; }; class LibDrawSquare : public LibEDA_BaseStruct class LibDrawSquare : public LibEDA_BaseStruct { { public: public: wxPoint m_End; wxPoint m_End; int m_Fill; FILL_T m_Fill; public: public: LibDrawSquare(); LibDrawSquare(); Loading Loading @@ -338,7 +361,7 @@ class LibDrawPolyline : public LibEDA_BaseStruct public: public: int n; int n; int* PolyList; int* PolyList; int m_Fill; FILL_T m_Fill; public: public: LibDrawPolyline(); LibDrawPolyline(); Loading Loading @@ -483,7 +506,6 @@ eda_global int CurrentConvert /* Convert = 1 .. 255 */ #endif #endif ; ; eda_global wxString FindLibName; /* nom de la librairie ou a ete trouve le eda_global wxString FindLibName; /* nom de la librairie ou a ete trouve le * dernier composant recherche par FindLibPart() */ * dernier composant recherche par FindLibPart() */ Loading Loading
eeschema/libcmp.h +58 −36 Original line number Original line Diff line number Diff line Loading @@ -29,11 +29,19 @@ #define CLOCK_PIN_DIM 40 /* Dim of clock pin symbol. */ #define CLOCK_PIN_DIM 40 /* Dim of clock pin symbol. */ #define IEEE_SYMBOL_PIN_DIM 40 /* Dim of special pin symbol. */ #define IEEE_SYMBOL_PIN_DIM 40 /* Dim of special pin symbol. */ #define NO_FILL 0 // Poly, Squar, Circle, Arc = option No Fill #define FILLED_SHAPE 1 // Poly, Squar, Circle, Arc = option Fill with current color ("Solid shape") /** #define FILLED_WITH_BG_BODYCOLOR 2 /* Poly, Squar, Circle, Arc = option Fill * Enum FILL_T * is the set of fill types used in plotting or drawing enclosed areas. */ enum FILL_T { NO_FILL, // Poly, Square, Circle, Arc = option No Fill FILLED_SHAPE, // Poly, Square, Circle, Arc = option Fill with current color ("Solid shape") FILLED_WITH_BG_BODYCOLOR, /* Poly, Square, Circle, Arc = option Fill * with background body color, translucent (texts on this shape can be see) * with background body color, translucent (texts on this shape can be see) * not fille in B&W plot mode */ * not fille in B&W plot mode */ }; //Offsets used in editing library component, for handle aliad dats //Offsets used in editing library component, for handle aliad dats #define ALIAS_NAME 0 #define ALIAS_NAME 0 Loading @@ -43,7 +51,7 @@ #define ALIAS_NEXT 4 #define ALIAS_NEXT 4 typedef enum { enum LocateDrawStructType { LOCATE_COMPONENT_ARC_DRAW_TYPE = 1, LOCATE_COMPONENT_ARC_DRAW_TYPE = 1, LOCATE_COMPONENT_CIRCLE_DRAW_TYPE = 2, LOCATE_COMPONENT_CIRCLE_DRAW_TYPE = 2, LOCATE_COMPONENT_GRAPHIC_TEXT_DRAW_TYPE = 4, LOCATE_COMPONENT_GRAPHIC_TEXT_DRAW_TYPE = 4, Loading @@ -51,7 +59,7 @@ typedef enum { LOCATE_LINE_DRAW_TYPE = 0x10, LOCATE_LINE_DRAW_TYPE = 0x10, LOCATE_COMPONENT_POLYLINE_DRAW_TYPE = 0x20, LOCATE_COMPONENT_POLYLINE_DRAW_TYPE = 0x20, LOCATE_COMPONENT_LINE_DRAW_TYPE = 0x40 LOCATE_COMPONENT_LINE_DRAW_TYPE = 0x40 } LocateDrawStructType; }; #define LOCATE_ALL_DRAW_ITEM 0xFFFFFFFF #define LOCATE_ALL_DRAW_ITEM 0xFFFFFFFF Loading @@ -62,20 +70,23 @@ typedef enum { * (alias ou racine) */ * (alias ou racine) */ /* definition des types des structures d'elements de librairie */ /* definition des types des structures d'elements de librairie */ typedef enum { enum LibrEntryType { ROOT, /* Structure est a standard EDA_LibComponentStruct */ ROOT, /* Structure est a standard EDA_LibComponentStruct */ ALIAS /* Structure is an alias */ ALIAS /* Structure is an alias */ } LibrEntryType; }; /* valeur du membre .m_Options */ /* valeur du membre .m_Options */ typedef enum { enum LibrEntryOptions { ENTRY_NORMAL, // Libentry is standard ENTRY_NORMAL, // Libentry is standard ENTRY_POWER // Libentry is a power symbol ENTRY_POWER // Libentry is a power symbol } LibrEntryOptions; }; /* Definitions des Pins */ typedef enum { /* Type des Pins. si modif: modifier tableau des mgs suivant */ /** * Enum ElectricPinType * is the set of schematic pin types. */ enum ElectricPinType { /* Type des Pins. si modif: modifier tableau des mgs suivant */ PIN_INPUT, PIN_INPUT, PIN_OUTPUT, PIN_OUTPUT, PIN_BIDI, PIN_BIDI, Loading @@ -88,7 +99,7 @@ typedef enum { /* Type des Pins. si modif: modifier tableau des mgs suivant PIN_OPENEMITTER, PIN_OPENEMITTER, PIN_NC, /* No connect */ PIN_NC, /* No connect */ PIN_NMAX /* Valeur limite ( utilisee comme limite de tableaux) */ PIN_NMAX /* Valeur limite ( utilisee comme limite de tableaux) */ } ElectricPinType; }; /* Messages d'affichage du type electrique */ /* Messages d'affichage du type electrique */ eda_global const wxChar* MsgPinElectricType[] eda_global const wxChar* MsgPinElectricType[] Loading @@ -114,20 +125,30 @@ eda_global const wxChar* MsgPinElectricType[] /* Autres bits: bits du membre .Flag des Pins */ /* Autres bits: bits du membre .Flag des Pins */ #define PINNOTDRAW 1 /* si 1: pin invisible */ #define PINNOTDRAW 1 /* si 1: pin invisible */ typedef enum { /* Forme des Pins */ /** * Enum DrawPinShape * is the set of shapes allowed for pins. */ enum DrawPinShape { NONE = 0, NONE = 0, INVERT = 1, INVERT = 1, CLOCK = 2, CLOCK = 2, LOWLEVEL_IN = 4, LOWLEVEL_IN = 4, LOWLEVEL_OUT = 8 LOWLEVEL_OUT = 8 } DrawPinShape; }; typedef enum { /* Orientation des Pins */ /** * Enum DrawPinOrient * is the set of orientations allowed for pins. */ enum DrawPinOrient { PIN_RIGHT = 'R', PIN_RIGHT = 'R', PIN_LEFT = 'L', PIN_LEFT = 'L', PIN_UP = 'U', PIN_UP = 'U', PIN_DOWN = 'D', PIN_DOWN = 'D', } DrawPinOrient; }; /*************************************/ /*************************************/ /* Classe representant une librairie */ /* Classe representant une librairie */ Loading Loading @@ -239,7 +260,7 @@ class LibDrawArc : public LibEDA_BaseStruct { { public: public: int m_Rayon; int m_Rayon; int m_Fill; // NO_FILL, FILLED_SHAPE or FILLED_WITH_BG_BODYCOLOR FILL_T m_Fill; // NO_FILL, FILLED_SHAPE or FILLED_WITH_BG_BODYCOLOR int t1, t2; /* position des 2 extremites de l'arc en 0,1 degres */ int t1, t2; /* position des 2 extremites de l'arc en 0,1 degres */ wxPoint m_ArcStart, m_ArcEnd; /* position des 2 extremites de l'arc en coord reelles*/ wxPoint m_ArcStart, m_ArcEnd; /* position des 2 extremites de l'arc en coord reelles*/ Loading @@ -260,7 +281,7 @@ class LibDrawCircle : public LibEDA_BaseStruct { { public: public: int m_Rayon; int m_Rayon; int m_Fill; FILL_T m_Fill; public: public: LibDrawCircle(); LibDrawCircle(); Loading @@ -275,6 +296,7 @@ public: bool WriteDescr( FILE* File ); bool WriteDescr( FILE* File ); }; }; class LibDrawText : public LibEDA_BaseStruct class LibDrawText : public LibEDA_BaseStruct { { public: public: Loading @@ -296,11 +318,12 @@ public: bool WriteDescr( FILE* File ); bool WriteDescr( FILE* File ); }; }; class LibDrawSquare : public LibEDA_BaseStruct class LibDrawSquare : public LibEDA_BaseStruct { { public: public: wxPoint m_End; wxPoint m_End; int m_Fill; FILL_T m_Fill; public: public: LibDrawSquare(); LibDrawSquare(); Loading Loading @@ -338,7 +361,7 @@ class LibDrawPolyline : public LibEDA_BaseStruct public: public: int n; int n; int* PolyList; int* PolyList; int m_Fill; FILL_T m_Fill; public: public: LibDrawPolyline(); LibDrawPolyline(); Loading Loading @@ -483,7 +506,6 @@ eda_global int CurrentConvert /* Convert = 1 .. 255 */ #endif #endif ; ; eda_global wxString FindLibName; /* nom de la librairie ou a ete trouve le eda_global wxString FindLibName; /* nom de la librairie ou a ete trouve le * dernier composant recherche par FindLibPart() */ * dernier composant recherche par FindLibPart() */ Loading