Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
9fdc316d
Commit
9fdc316d
authored
Sep 09, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added FILL_T type
parent
7f897c3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
36 deletions
+58
-36
libcmp.h
eeschema/libcmp.h
+58
-36
No files found.
eeschema/libcmp.h
View file @
9fdc316d
...
...
@@ -29,11 +29,19 @@
#define CLOCK_PIN_DIM 40
/* Dim of clock 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)
* not fille in B&W plot mode */
* not fille in B&W plot mode
*/
};
//Offsets used in editing library component, for handle aliad dats
#define ALIAS_NAME 0
...
...
@@ -43,7 +51,7 @@
#define ALIAS_NEXT 4
typedef
enum
{
enum
LocateDrawStructType
{
LOCATE_COMPONENT_ARC_DRAW_TYPE
=
1
,
LOCATE_COMPONENT_CIRCLE_DRAW_TYPE
=
2
,
LOCATE_COMPONENT_GRAPHIC_TEXT_DRAW_TYPE
=
4
,
...
...
@@ -51,7 +59,7 @@ typedef enum {
LOCATE_LINE_DRAW_TYPE
=
0x10
,
LOCATE_COMPONENT_POLYLINE_DRAW_TYPE
=
0x20
,
LOCATE_COMPONENT_LINE_DRAW_TYPE
=
0x40
}
LocateDrawStructType
;
};
#define LOCATE_ALL_DRAW_ITEM 0xFFFFFFFF
...
...
@@ -62,20 +70,23 @@ typedef enum {
* (alias ou racine) */
/* definition des types des structures d'elements de librairie */
typedef
enum
{
enum
LibrEntryType
{
ROOT
,
/* Structure est a standard EDA_LibComponentStruct */
ALIAS
/* Structure is an alias */
}
LibrEntryType
;
};
/* valeur du membre .m_Options */
typedef
enum
{
enum
LibrEntryOptions
{
ENTRY_NORMAL
,
// Libentry is standard
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_OUTPUT
,
PIN_BIDI
,
...
...
@@ -88,7 +99,7 @@ typedef enum { /* Type des Pins. si modif: modifier tableau des mgs suivant
PIN_OPENEMITTER
,
PIN_NC
,
/* No connect */
PIN_NMAX
/* Valeur limite ( utilisee comme limite de tableaux) */
}
ElectricPinType
;
};
/* Messages d'affichage du type electrique */
eda_global
const
wxChar
*
MsgPinElectricType
[]
...
...
@@ -114,20 +125,30 @@ eda_global const wxChar* MsgPinElectricType[]
/* Autres bits: bits du membre .Flag des Pins */
#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
,
INVERT
=
1
,
CLOCK
=
2
,
LOWLEVEL_IN
=
4
,
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_LEFT
=
'L'
,
PIN_UP
=
'U'
,
PIN_DOWN
=
'D'
,
}
DrawPinOrient
;
};
/*************************************/
/* Classe representant une librairie */
...
...
@@ -239,7 +260,7 @@ class LibDrawArc : public LibEDA_BaseStruct
{
public
:
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 */
wxPoint
m_ArcStart
,
m_ArcEnd
;
/* position des 2 extremites de l'arc en coord reelles*/
...
...
@@ -260,7 +281,7 @@ class LibDrawCircle : public LibEDA_BaseStruct
{
public
:
int
m_Rayon
;
int
m_Fill
;
FILL_T
m_Fill
;
public
:
LibDrawCircle
();
...
...
@@ -275,6 +296,7 @@ public:
bool
WriteDescr
(
FILE
*
File
);
};
class
LibDrawText
:
public
LibEDA_BaseStruct
{
public
:
...
...
@@ -296,11 +318,12 @@ public:
bool
WriteDescr
(
FILE
*
File
);
};
class
LibDrawSquare
:
public
LibEDA_BaseStruct
{
public
:
wxPoint
m_End
;
int
m_Fill
;
FILL_T
m_Fill
;
public
:
LibDrawSquare
();
...
...
@@ -338,7 +361,7 @@ class LibDrawPolyline : public LibEDA_BaseStruct
public
:
int
n
;
int
*
PolyList
;
int
m_Fill
;
FILL_T
m_Fill
;
public
:
LibDrawPolyline
();
...
...
@@ -483,7 +506,6 @@ eda_global int CurrentConvert /* Convert = 1 .. 255 */
#endif
;
eda_global
wxString
FindLibName
;
/* nom de la librairie ou a ete trouve le
* dernier composant recherche par FindLibPart() */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment