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
3ddc57e6
Commit
3ddc57e6
authored
Nov 28, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some minor bugs and code cleanup
parent
826daace
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
10033 additions
and
8634 deletions
+10033
-8634
base_struct.cpp
common/base_struct.cpp
+16
-5
class_sch_component.h
eeschema/class_sch_component.h
+8
-0
class_schematic_items.cpp
eeschema/class_schematic_items.cpp
+25
-18
class_schematic_items.h
eeschema/class_schematic_items.h
+31
-4
class_text-label.cpp
eeschema/class_text-label.cpp
+67
-2
class_text-label.h
eeschema/class_text-label.h
+30
-0
locate.cpp
eeschema/locate.cpp
+40
-227
plot.cpp
eeschema/plot.cpp
+6
-7
schframe.cpp
eeschema/schframe.cpp
+1
-0
base_struct.h
include/base_struct.h
+7
-4
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+58
-53
kicad.mo
internat/nl/kicad.mo
+0
-0
kicad.po
internat/nl/kicad.po
+9743
-8313
board_items_to_polygon_shape_transform.cpp
pcbnew/board_items_to_polygon_shape_transform.cpp
+1
-1
No files found.
common/base_struct.cpp
View file @
3ddc57e6
...
...
@@ -235,17 +235,18 @@ EDA_Rect EDA_TextStruct::GetTextBox( int aLine )
// calculate the H and V size
int
dx
=
LenSize
(
*
text
);
int
dy
=
m_Size
.
y
+
m_Width
;
int
extra_dy
=
(
m_Size
.
y
*
3
)
/
10
;
// extra dy value for letters like j and y
int
dy
=
GetInterline
();
/* Creates bounding box (rectangle) for an horizontal text */
wxSize
textsize
=
wxSize
(
dx
,
dy
);
rect
.
SetOrigin
(
m_Pos
);
// extra dy interval for letters like j and y and ]
int
extra_dy
=
dy
-
m_Size
.
y
;
rect
.
Move
(
wxPoint
(
0
,
-
extra_dy
/
2
)
);
// move origin by the half extra interval
// for multiline texts an
s
aLine < 0, merge all rectangles
// for multiline texts an
d
aLine < 0, merge all rectangles
if
(
m_MultilineAllowed
&&
aLine
<
0
)
{
dy
=
GetInterline
();
for
(
unsigned
ii
=
1
;
ii
<
list
->
GetCount
();
ii
++
)
{
text
=
&
list
->
Item
(
ii
);
...
...
@@ -256,8 +257,8 @@ EDA_Rect EDA_TextStruct::GetTextBox( int aLine )
}
delete
list
;
textsize
.
y
+=
extra_dy
;
rect
.
SetSize
(
textsize
);
rect
.
Inflate
(
m_Width
/
2
);
// ensure a small margin
/* Now, calculate the rect origin, according to text justification
* At this point the rectangle origin is the text origin (m_Pos).
...
...
@@ -474,6 +475,16 @@ void EDA_Rect::Normalize()
}
/** Function Move
* Move this rectangle by the aMoveVector value (this is a relative move)
* @param aMoveVector = a wxPoint that is the value to move this rectangle
*/
void
EDA_Rect
::
Move
(
const
wxPoint
&
aMoveVector
)
{
m_Pos
+=
aMoveVector
;
}
/*******************************************/
bool
EDA_Rect
::
Inside
(
const
wxPoint
&
point
)
/*******************************************/
...
...
eeschema/class_sch_component.h
View file @
3ddc57e6
...
...
@@ -210,6 +210,14 @@ public:
void
SetTimeStamp
(
long
aNewTimeStamp
);
EDA_Rect
GetBoundaryBox
()
const
;
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
/**
...
...
eeschema/class_schematic_items.cpp
View file @
3ddc57e6
...
...
@@ -144,15 +144,20 @@ void DrawBusEntryStruct::Draw( WinEDA_DrawPanel* panel, wxDC* DC,
DrawJunctionStruct
::
DrawJunctionStruct
(
const
wxPoint
&
pos
)
:
SCH_ITEM
(
NULL
,
DRAW_JUNCTION_STRUCT_TYPE
)
{
#define DRAWJUNCTION_DIAMETER 32
/* Diameter of junction symbol between wires */
m_Pos
=
pos
;
m_Layer
=
LAYER_JUNCTION
;
m_Size
.
x
=
m_Size
.
y
=
DRAWJUNCTION_DIAMETER
;
#undef DRAWJUNCTION_DIAMETER
}
DrawJunctionStruct
*
DrawJunctionStruct
::
GenCopy
()
{
DrawJunctionStruct
*
newitem
=
new
DrawJunctionStruct
(
m_Pos
);
newitem
->
m_Size
=
m_Size
;
newitem
->
m_Layer
=
m_Layer
;
newitem
->
m_Flags
=
m_Flags
;
...
...
@@ -183,13 +188,11 @@ EDA_Rect DrawJunctionStruct::GetBoundingBox()
// return a bounding box
{
int
width
=
DRAWJUNCTION_DIAMETER
;
int
xmin
=
m_Pos
.
x
-
(
DRAWJUNCTION_DIAMETER
/
2
);
int
ymin
=
m_Pos
.
y
-
(
DRAWJUNCTION_DIAMETER
/
2
);
EDA_Rect
ret
(
wxPoint
(
xmin
,
ymin
),
wxSize
(
width
,
width
)
);
EDA_Rect
rect
;
rect
.
SetOrigin
(
m_Pos
);
rect
.
Inflate
(
(
GetPenSize
()
+
m_Size
.
x
)
/
2
);
return
ret
;
return
re
c
t
;
};
...
...
@@ -202,7 +205,7 @@ bool DrawJunctionStruct::HitTest( const wxPoint& aPosRef )
wxPoint
dist
=
aPosRef
-
m_Pos
;
return
sqrt
(
(
(
double
)
(
dist
.
x
*
dist
.
x
)
)
+
(
(
double
)
(
dist
.
y
*
dist
.
y
)
)
)
<
(
DRAWJUNCTION_DIAMETER
/
2
);
(
(
double
)
(
dist
.
y
*
dist
.
y
)
)
)
<
(
m_Size
.
x
/
2
);
}
...
...
@@ -231,7 +234,7 @@ void DrawJunctionStruct::Draw( WinEDA_DrawPanel* panel, wxDC* DC,
GRSetDrawMode
(
DC
,
DrawMode
);
GRFilledCircle
(
&
panel
->
m_ClipBox
,
DC
,
m_Pos
.
x
+
offset
.
x
,
m_Pos
.
y
+
offset
.
y
,
(
DRAWJUNCTION_DIAMETER
/
2
),
0
,
color
,
m_Pos
.
y
+
offset
.
y
,
(
m_Size
.
x
/
2
),
0
,
color
,
color
);
}
...
...
@@ -257,7 +260,10 @@ void DrawJunctionStruct::Show( int nestLevel, std::ostream& os )
DrawNoConnectStruct
::
DrawNoConnectStruct
(
const
wxPoint
&
pos
)
:
SCH_ITEM
(
NULL
,
DRAW_NOCONNECT_STRUCT_TYPE
)
{
#define DRAWNOCONNECT_SIZE 48
/* No symbol connection range. */
m_Pos
=
pos
;
m_Size
.
x
=
m_Size
.
y
=
DRAWNOCONNECT_SIZE
;
#undef DRAWNOCONNECT_SIZE
}
...
...
@@ -265,6 +271,7 @@ DrawNoConnectStruct* DrawNoConnectStruct::GenCopy()
{
DrawNoConnectStruct
*
newitem
=
new
DrawNoConnectStruct
(
m_Pos
);
newitem
->
m_Size
=
m_Size
;
newitem
->
m_Flags
=
m_Flags
;
return
newitem
;
...
...
@@ -273,11 +280,11 @@ DrawNoConnectStruct* DrawNoConnectStruct::GenCopy()
EDA_Rect
DrawNoConnectStruct
::
GetBoundingBox
()
{
const
int
DELTA
=
DRAWNOCONNECT_SIZE
/
2
;
EDA_Rect
box
(
wxPoint
(
m_Pos
.
x
-
DELTA
,
m_Pos
.
y
-
DELTA
),
wxSize
(
2
*
DELTA
,
2
*
DELTA
)
);
int
delta
=
(
GetPenSize
()
+
m_Size
.
x
)
/
2
;
EDA_Rect
box
;
box
.
SetOrigin
(
m_Pos
);
box
.
Inflate
(
delta
);
box
.
Normalize
();
return
box
;
}
...
...
@@ -290,7 +297,7 @@ EDA_Rect DrawNoConnectStruct::GetBoundingBox()
bool
DrawNoConnectStruct
::
HitTest
(
const
wxPoint
&
aPosRef
)
{
int
width
=
g_DrawDefaultLineThickness
;
int
delta
=
(
DRAWNOCONNECT_SIZE
+
width
)
/
2
;
int
delta
=
(
m_Size
.
x
+
width
)
/
2
;
wxPoint
dist
=
aPosRef
-
m_Pos
;
...
...
@@ -331,7 +338,7 @@ int DrawNoConnectStruct::GetPenSize()
void
DrawNoConnectStruct
::
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
const
wxPoint
&
offset
,
int
DrawMode
,
int
Color
)
{
const
int
DELTA
=
(
DRAWNOCONNECT_SIZE
/
2
)
;
int
delta
=
m_Size
.
x
/
2
;
int
pX
,
pY
,
color
;
int
width
=
g_DrawDefaultLineThickness
;
...
...
@@ -343,10 +350,10 @@ void DrawNoConnectStruct::Draw( WinEDA_DrawPanel* panel, wxDC* DC,
color
=
ReturnLayerColor
(
LAYER_NOCONNECT
);
GRSetDrawMode
(
DC
,
DrawMode
);
GRLine
(
&
panel
->
m_ClipBox
,
DC
,
pX
-
DELTA
,
pY
-
DELTA
,
pX
+
DELTA
,
pY
+
DELTA
,
width
,
color
);
GRLine
(
&
panel
->
m_ClipBox
,
DC
,
pX
+
DELTA
,
pY
-
DELTA
,
pX
-
DELTA
,
pY
+
DELTA
,
width
,
color
);
GRLine
(
&
panel
->
m_ClipBox
,
DC
,
pX
-
delta
,
pY
-
delta
,
pX
+
delta
,
pY
+
delta
,
width
,
color
);
GRLine
(
&
panel
->
m_ClipBox
,
DC
,
pX
+
delta
,
pY
-
delta
,
pX
-
delta
,
pY
+
delta
,
width
,
color
);
}
...
...
eeschema/class_schematic_items.h
View file @
3ddc57e6
...
...
@@ -5,10 +5,6 @@
#ifndef CLASS_SCHEMATIC_ITEMS_H
#define CLASS_SCHEMATIC_ITEMS_H
#define DRAWJUNCTION_DIAMETER 32
/* Diameter of junction symbol between
* wires */
#define DRAWNOCONNECT_SIZE 48
/* No symbol connection range. */
/* Flags for BUS ENTRY (bus to bus or wire to bus */
#define WIRE_TO_BUS 0
#define BUS_TO_BUS 1
...
...
@@ -51,6 +47,13 @@ public:
}
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
virtual
void
Draw
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
const
wxPoint
&
offset
,
...
...
@@ -107,6 +110,7 @@ class DrawNoConnectStruct : public SCH_ITEM
{
public
:
wxPoint
m_Pos
;
/* XY coordinates of NoConnect. */
wxSize
m_Size
;
// size of this symbol
public
:
DrawNoConnectStruct
(
const
wxPoint
&
pos
);
...
...
@@ -143,7 +147,15 @@ public:
*/
bool
HitTest
(
const
wxPoint
&
aPosRef
);
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
// Geometric transforms (used in block operations):
/** virtual function Move
* move item to a new position.
...
...
@@ -204,6 +216,13 @@ public:
*/
bool
Save
(
FILE
*
aFile
)
const
;
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
/** Function GetPenSize
...
...
@@ -313,6 +332,7 @@ class DrawJunctionStruct : public SCH_ITEM
{
public
:
wxPoint
m_Pos
;
/* XY coordinates of connection. */
wxSize
m_Size
;
public
:
DrawJunctionStruct
(
const
wxPoint
&
pos
);
...
...
@@ -330,6 +350,13 @@ public:
*/
bool
HitTest
(
const
wxPoint
&
aPosRef
);
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
DrawJunctionStruct
*
GenCopy
();
...
...
eeschema/class_text-label.cpp
View file @
3ddc57e6
...
...
@@ -600,6 +600,19 @@ void SCH_TEXT::Draw( WinEDA_DrawPanel* panel, wxDC* DC, const wxPoint& aOffset,
EXCHG
(
linewidth
,
m_Width
);
// set initial value
if
(
m_IsDangling
)
DrawDanglingSymbol
(
panel
,
DC
,
m_Pos
+
aOffset
,
color
);
// Enable these line to draw the bounding box (debug tests purposes only)
#if 0
{
EDA_Rect BoundaryBox;
BoundaryBox = GetBoundingBox();
int x1 = BoundaryBox.GetX();
int y1 = BoundaryBox.GetY();
int x2 = BoundaryBox.GetRight();
int y2 = BoundaryBox.GetBottom();
GRRect( &panel->m_ClipBox, DC, x1, y1, x2, y2, BROWN );
}
#endif
}
...
...
@@ -844,6 +857,19 @@ void SCH_HIERLABEL::Draw( WinEDA_DrawPanel* panel,
if
(
m_IsDangling
)
DrawDanglingSymbol
(
panel
,
DC
,
m_Pos
+
offset
,
color
);
// Enable these line to draw the bounding box (debug tests purposes only)
#if 0
{
EDA_Rect BoundaryBox;
BoundaryBox = GetBoundingBox();
int x1 = BoundaryBox.GetX();
int y1 = BoundaryBox.GetY();
int x2 = BoundaryBox.GetRight();
int y2 = BoundaryBox.GetBottom();
GRRect( &panel->m_ClipBox, DC, x1, y1, x2, y2, BROWN );
}
#endif
}
...
...
@@ -965,6 +991,19 @@ void SCH_GLOBALLABEL::Draw( WinEDA_DrawPanel* panel,
if
(
m_IsDangling
)
DrawDanglingSymbol
(
panel
,
DC
,
m_Pos
+
aOffset
,
color
);
// Enable these line to draw the bounding box (debug tests purposes only)
#if 0
{
EDA_Rect BoundaryBox;
BoundaryBox = GetBoundingBox();
int x1 = BoundaryBox.GetX();
int y1 = BoundaryBox.GetY();
int x2 = BoundaryBox.GetRight();
int y2 = BoundaryBox.GetBottom();
GRRect( &panel->m_ClipBox, DC, x1, y1, x2, y2, BROWN );
}
#endif
}
...
...
@@ -1109,9 +1148,9 @@ EDA_Rect SCH_GLOBALLABEL::GetBoundingBox()
/***********************************/
EDA_Rect
SCH_TEXT
::
GetBoundingBox
()
{
EDA_Rect
SCH_LABEL
::
GetBoundingBox
()
/***********************************/
{
int
x
,
y
,
dx
,
dy
,
length
,
height
;
x
=
m_Pos
.
x
;
...
...
@@ -1156,3 +1195,29 @@ EDA_Rect SCH_TEXT::GetBoundingBox()
box
.
Normalize
();
return
box
;
}
/***********************************/
EDA_Rect
SCH_TEXT
::
GetBoundingBox
()
/***********************************/
{
// We must pass the effective text thickness to GetTextBox
// when calculating the bounding box
int
linewidth
=
(
m_Width
==
0
)
?
g_DrawDefaultLineThickness
:
m_Width
;
linewidth
=
Clamp_Text_PenSize
(
linewidth
,
m_Size
,
m_Bold
);
EXCHG
(
linewidth
,
m_Width
);
// Set the real width
EDA_Rect
rect
=
GetTextBox
(
-
1
);
EXCHG
(
linewidth
,
m_Width
);
// set initial value
if
(
m_Orient
)
// Rotate rect
{
wxPoint
pos
=
rect
.
GetOrigin
();
wxPoint
end
=
rect
.
GetEnd
();
RotatePoint
(
&
pos
,
m_Pos
,
m_Orient
);
RotatePoint
(
&
end
,
m_Pos
,
m_Orient
);
rect
.
SetOrigin
(
pos
);
rect
.
SetEnd
(
end
);
}
return
rect
;
}
eeschema/class_text-label.h
View file @
3ddc57e6
...
...
@@ -104,6 +104,13 @@ public:
*/
bool
HitTest
(
const
wxPoint
&
aPosRef
);
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
/**
...
...
@@ -186,6 +193,15 @@ public:
*/
virtual
wxPoint
GetSchematicTextOffset
();
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
/**
* Function Save
* writes the data structures for this object out to a FILE in "*.sch"
...
...
@@ -253,6 +269,13 @@ public:
*/
bool
HitTest
(
const
wxPoint
&
aPosRef
);
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
/** function CreateGraphicShape
...
...
@@ -335,6 +358,13 @@ public:
*/
bool
HitTest
(
const
wxPoint
&
aPosRef
);
/**
* Function GetBoundingBox
* returns the orthogonal, bounding box of this object for display purposes.
* This box should be an enclosing perimeter for visible components of this
* object, and the units should be in the pcb or schematic coordinate system.
* It is OK to overestimate the size by a few counts.
*/
EDA_Rect
GetBoundingBox
();
/** virtual function Mirror_Y
...
...
eeschema/locate.cpp
View file @
3ddc57e6
This diff is collapsed.
Click to expand it.
eeschema/plot.cpp
View file @
3ddc57e6
...
...
@@ -25,16 +25,16 @@ static void PlotTextField( PLOTTER* plotter, SCH_COMPONENT* DrawLibItem,
static
void
PlotNoConnectStruct
(
PLOTTER
*
plotter
,
DrawNoConnectStruct
*
Struct
)
{
#define DELTA (DRAWNOCONNECT_SIZE / 2)
int
delta
=
Struct
->
m_Size
.
x
/
2
;
int
pX
,
pY
;
pX
=
Struct
->
m_Pos
.
x
;
pY
=
Struct
->
m_Pos
.
y
;
plotter
->
set_current_line_width
(
Struct
->
GetPenSize
()
);
plotter
->
move_to
(
wxPoint
(
pX
-
DELTA
,
pY
-
DELTA
)
);
plotter
->
finish_to
(
wxPoint
(
pX
+
DELTA
,
pY
+
DELTA
)
);
plotter
->
move_to
(
wxPoint
(
pX
+
DELTA
,
pY
-
DELTA
)
);
plotter
->
finish_to
(
wxPoint
(
pX
-
DELTA
,
pY
+
DELTA
)
);
plotter
->
move_to
(
wxPoint
(
pX
-
delta
,
pY
-
delta
)
);
plotter
->
finish_to
(
wxPoint
(
pX
+
delta
,
pY
+
delta
)
);
plotter
->
move_to
(
wxPoint
(
pX
+
delta
,
pY
-
delta
)
);
plotter
->
finish_to
(
wxPoint
(
pX
-
delta
,
pY
+
delta
)
);
}
...
...
@@ -462,8 +462,7 @@ void PlotDrawlist( PLOTTER* plotter, SCH_ITEM* aDrawlist )
#undef STRUCT
#define STRUCT ( (DrawJunctionStruct*) aDrawlist )
plotter
->
set_color
(
ReturnLayerColor
(
STRUCT
->
GetLayer
()
)
);
plotter
->
circle
(
STRUCT
->
m_Pos
,
DRAWJUNCTION_DIAMETER
,
FILLED_SHAPE
);
plotter
->
circle
(
STRUCT
->
m_Pos
,
STRUCT
->
m_Size
.
x
,
FILLED_SHAPE
);
break
;
case
TYPE_SCH_TEXT
:
...
...
eeschema/schframe.cpp
View file @
3ddc57e6
...
...
@@ -102,6 +102,7 @@ BEGIN_EVENT_TABLE( WinEDA_SchematicFrame, WinEDA_DrawFrame )
EVT_MENU
(
ID_KICAD_ABOUT
,
WinEDA_DrawFrame
::
GetKicadAbout
)
// Tools and buttons for vertical toolbar.
EVT_TOOL
(
ID_NO_SELECT_BUTT
,
WinEDA_SchematicFrame
::
Process_Special_Functions
)
EVT_TOOL_RANGE
(
ID_SCHEMATIC_VERTICAL_TOOLBAR_START
,
ID_SCHEMATIC_VERTICAL_TOOLBAR_END
,
WinEDA_SchematicFrame
::
Process_Special_Functions
)
...
...
include/base_struct.h
View file @
3ddc57e6
...
...
@@ -166,9 +166,12 @@ public:
}
void
Normalize
();
// Ensure the height and width are
// >= 0
bool
Inside
(
const
wxPoint
&
point
);
// Return TRUE if point is in Rect
/* Move this by the aMoveVector value (this is a relative move
*/
void
Move
(
const
wxPoint
&
aMoveVector
);
void
Normalize
();
// Ensure the height and width are >= 0
bool
Inside
(
const
wxPoint
&
point
);
// Return TRUE if point is in Rect
bool
Inside
(
int
x
,
int
y
)
{
return
Inside
(
wxPoint
(
x
,
y
)
);
}
wxSize
GetSize
()
{
return
m_Size
;
}
...
...
@@ -662,7 +665,7 @@ public:
*/
int
GetInterline
()
{
return
(
(
m_Size
.
y
*
13
)
/
10
)
+
m_Width
;
return
(
(
m_Size
.
y
*
14
)
/
10
)
+
m_Width
;
}
};
...
...
internat/fr/kicad.mo
View file @
3ddc57e6
No preview for this file type
internat/fr/kicad.po
View file @
3ddc57e6
...
...
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: kicad\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-2
3 18:13
+0100\n"
"PO-Revision-Date: 2009-11-2
3 18:22
+0100\n"
"POT-Creation-Date: 2009-11-2
7 09:37
+0100\n"
"PO-Revision-Date: 2009-11-2
7 09:51
+0100\n"
"Last-Translator: \n"
"Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n"
"MIME-Version: 1.0\n"
...
...
@@ -968,7 +968,7 @@ msgstr "Pas en Netliste:"
msgid "File <%s> not found, use Netlist for lib module selection"
msgstr "Fichier <%s> non trouvé, Netliste utilisée pour sélection des modules en lib."
#: pcbnew/netlist.cpp:101
8
#: pcbnew/netlist.cpp:101
6
#, c-format
msgid "Component [%s]: footprint <%s> not found"
msgstr "Composant [%s]: Module <%s> non trouvé en librairie"
...
...
@@ -1005,121 +1005,121 @@ msgstr "Fenêtre 3D déjà ouverte"
msgid "3D Viewer"
msgstr "Visu 3D"
#: pcbnew/muonde.cpp:22
5
#: pcbnew/muonde.cpp:22
7
msgid "Length(inch):"
msgstr "Longueur (pouces):"
#: pcbnew/muonde.cpp:22
5
#: pcbnew/muonde.cpp:23
1
#: pcbnew/muonde.cpp:22
7
#: pcbnew/muonde.cpp:23
3
msgid "Length"
msgstr "Longueur"
#: pcbnew/muonde.cpp:23
1
#: pcbnew/muonde.cpp:23
3
msgid "Length(mm):"
msgstr "Long. (mm):"
#: pcbnew/muonde.cpp:2
39
#: pcbnew/muonde.cpp:69
5
#: pcbnew/muonde.cpp:7
08
#: pcbnew/muonde.cpp:2
41
#: pcbnew/muonde.cpp:69
7
#: pcbnew/muonde.cpp:7
10
msgid "Incorrect number, abort"
msgstr "Nombre incorrect, arrêt"
#: pcbnew/muonde.cpp:24
7
#: pcbnew/muonde.cpp:24
9
msgid "Requested length < minimum length"
msgstr "Longueur demandée < longueur minimum"
#: pcbnew/muonde.cpp:2
69
#: pcbnew/muonde.cpp:2
71
msgid "Unable to create line: Requested length is too big"
msgstr "Incapable de créer la ligne: longueur demandée trop grande"
#: pcbnew/muonde.cpp:28
1
#: pcbnew/muonde.cpp:28
3
#, c-format
msgid "Segment count = %d, length = "
msgstr "Nbr segm = %d, longueur = "
#: pcbnew/muonde.cpp:65
6
#: pcbnew/muonde.cpp:65
8
msgid "Gap"
msgstr "Gap"
#: pcbnew/muonde.cpp:66
1
#: pcbnew/muonde.cpp:66
3
msgid "Stub"
msgstr "Stub"
#: pcbnew/muonde.cpp:66
7
#: pcbnew/muonde.cpp:66
9
msgid "Arc Stub"
msgstr "Arc Stub"
#: pcbnew/muonde.cpp:68
2
#: pcbnew/muonde.cpp:68
4
msgid " (mm):"
msgstr " (mm):"
#: pcbnew/muonde.cpp:6
88
#: pcbnew/muonde.cpp:6
90
msgid " (inch):"
msgstr " (pouce):"
#: pcbnew/muonde.cpp:69
0
#: pcbnew/muonde.cpp:70
5
#: pcbnew/muonde.cpp:69
2
#: pcbnew/muonde.cpp:70
7
msgid "Create microwave module"
msgstr "Créer Module MicroOnde"
#: pcbnew/muonde.cpp:70
4
#: pcbnew/muonde.cpp:70
6
msgid "Angle (0.1deg):"
msgstr "Angle (0.1deg):"
#: pcbnew/muonde.cpp:82
6
#: pcbnew/muonde.cpp:82
8
msgid "Complex shape"
msgstr "Forme complexe"
#: pcbnew/muonde.cpp:85
1
#: pcbnew/muonde.cpp:85
3
msgid "Read Shape Description File..."
msgstr "Lire Fichier de Description de Forme..."
#: pcbnew/muonde.cpp:85
4
#: pcbnew/muonde.cpp:85
6
msgid "Symmetrical"
msgstr "Symétrique"
#: pcbnew/muonde.cpp:85
5
#: pcbnew/muonde.cpp:85
7
msgid "Mirrored"
msgstr "Miroir"
#: pcbnew/muonde.cpp:85
6
#: pcbnew/muonde.cpp:85
8
msgid "Shape Option"
msgstr "Option Forme"
#: pcbnew/muonde.cpp:91
6
#: pcbnew/muonde.cpp:91
8
msgid "Read descr shape file"
msgstr "Lire fichier de description de forme"
#: pcbnew/muonde.cpp:93
1
#: pcbnew/muonde.cpp:93
3
msgid "File not found"
msgstr "fichier non trouvé"
#: pcbnew/muonde.cpp:10
39
#: pcbnew/muonde.cpp:10
41
msgid "Shape has a null size!"
msgstr "La forme a une taille nulle"
#: pcbnew/muonde.cpp:104
4
#: pcbnew/muonde.cpp:104
6
msgid "Shape has no points!"
msgstr "La forme n'a pas de points"
#: pcbnew/muonde.cpp:11
48
#: pcbnew/muonde.cpp:11
50
msgid "No pad for this module"
msgstr "Pas de pad dans ce module"
#: pcbnew/muonde.cpp:115
4
#: pcbnew/muonde.cpp:115
6
msgid "Only one pad for this module"
msgstr "Seulement un pad dans ce module"
#: pcbnew/muonde.cpp:11
68
#: pcbnew/muonde.cpp:11
70
msgid "Gap (mm):"
msgstr "Gap (mm):"
#: pcbnew/muonde.cpp:11
68
#: pcbnew/muonde.cpp:117
4
#: pcbnew/muonde.cpp:11
70
#: pcbnew/muonde.cpp:117
6
msgid "Create Microwave Gap"
msgstr "Créer Gap MicroOnde "
#: pcbnew/muonde.cpp:117
4
#: pcbnew/muonde.cpp:117
6
msgid "Gap (inch):"
msgstr "Gap (inch):"
...
...
@@ -1464,58 +1464,58 @@ msgstr "Erreur. Vous devez choisir une équipotentielle"
msgid "You have chosen the \"not connected\" option. This will create insulated copper islands. Are you sure ?"
msgstr "Vous avez choisi l'option \"non connecté\". Cela créera des blocs non connectés. Etes vous sûr ?"
#: pcbnew/class_text_mod.cpp:44
3
#: pcbnew/class_text_mod.cpp:44
2
msgid "Ref."
msgstr "Ref."
#: pcbnew/class_text_mod.cpp:44
3
#: pcbnew/class_text_mod.cpp:44
2
msgid "Value"
msgstr "Valeur"
#: pcbnew/class_text_mod.cpp:44
3
#: pcbnew/class_text_mod.cpp:45
2
#: pcbnew/class_text_mod.cpp:44
2
#: pcbnew/class_text_mod.cpp:45
1
msgid "Text"
msgstr "Texte"
#: pcbnew/class_text_mod.cpp:44
9
#: pcbnew/class_text_mod.cpp:44
8
msgid "Module"
msgstr "Module"
#: pcbnew/class_text_mod.cpp:45
7
#: pcbnew/class_text_mod.cpp:45
6
#: pcbnew/class_zone.cpp:915
msgid "Type"
msgstr "Type"
#: pcbnew/class_text_mod.cpp:4
60
#: pcbnew/class_text_mod.cpp:4
59
msgid "No"
msgstr "Non"
#: pcbnew/class_text_mod.cpp:46
2
#: pcbnew/class_text_mod.cpp:46
1
msgid "Yes"
msgstr "Oui"
#: pcbnew/class_text_mod.cpp:47
2
#: pcbnew/class_text_mod.cpp:47
1
#: pcbnew/class_zone.cpp:945
msgid "Layer"
msgstr "Couche"
#: pcbnew/class_text_mod.cpp:47
4
#: pcbnew/class_text_mod.cpp:47
3
msgid " No"
msgstr "Non"
#: pcbnew/class_text_mod.cpp:47
6
#: pcbnew/class_text_mod.cpp:47
5
msgid " Yes"
msgstr "Oui"
#: pcbnew/class_text_mod.cpp:4
80
#: pcbnew/class_text_mod.cpp:4
79
msgid "Orient"
msgstr "Orient"
#: pcbnew/class_text_mod.cpp:48
6
#: pcbnew/class_text_mod.cpp:48
5
msgid "H Size"
msgstr "Taille H"
#: pcbnew/class_text_mod.cpp:48
9
#: pcbnew/class_text_mod.cpp:48
8
msgid "V Size"
msgstr "Taille V"
...
...
@@ -5164,6 +5164,9 @@ msgid ""
"can be used to replace default Netclass values \n"
"on demand, for arbitrary via or track segments."
msgstr ""
"Diamètres de vias et largeurs de pistes spécifiques, qui\n"
"peuvent être utilisées pour remplacer les valeurs par défault des Netclass\n"
"quand c'est nécessaire, pour des vias ou segments de pistes arbitraires."
#: pcbnew/dialog_design_rules_base.cpp:268
msgid "Custom Via Sizes:"
...
...
@@ -7180,7 +7183,7 @@ msgstr "Ne peut ajouter un double de l'alias <%s> en librairie <%s>."
#: eeschema/class_library.cpp:246
#, c-format
msgid "Conflict in library <%s>: alias <%s> already has root name <%s> and will not be assigned to root name <%s>."
msgstr ""
msgstr "
Conflit en librairie <%s>: l'alias <%s> a déjà un composant racine <%s> et ne peut prendre ce nom <%s>.
"
#: eeschema/class_library.cpp:476
msgid "The component library file name is not set."
...
...
@@ -8680,7 +8683,7 @@ msgstr ""
#: eeschema/edit_component_in_lib.cpp:402
msgid "Delete alternate body style (DeMorgan) draw items from component?"
msgstr ""
msgstr "
Supprimer les éléments de la représentation alternative (DeMorgan) di composant?
"
#: eeschema/edit_component_in_lib.cpp:426
msgid "Doc Files"
...
...
@@ -9263,6 +9266,8 @@ msgid ""
"Check this option to have pin names inside the body and pin number outside.\n"
"If not checked pins names and pins numbers are outside."
msgstr ""
"Cocher cette option pour avoir les noms de pins à l'intérieur du corps et les numéros de pins à l'extérieur.\n"
"Si non coché, les noms de pins et les numéros de pins sont à l'extérieur."
#: eeschema/dialog_edit_component_in_lib_base.cpp:65
msgid "Number of Units:"
...
...
@@ -11035,7 +11040,7 @@ msgstr "Masque pate à souder composant (*.GTP)|*.GTP;*.gtp|"
#: gerbview/files.cpp:126
msgid "Keep-out layer (*.GKO)|*.GKO;*.gko|"
msgstr ""
msgstr "
Couche de \"Keep-out\" (*.GKO)|*.GKO;*.gko|
"
#: gerbview/files.cpp:127
msgid "Mechanical layers (*.GMx)|*.GM1;*.gm1;*.GM2;*.gm2;*.GM3;*.gm3|"
...
...
internat/nl/kicad.mo
View file @
3ddc57e6
No preview for this file type
internat/nl/kicad.po
View file @
3ddc57e6
This diff is collapsed.
Click to expand it.
pcbnew/board_items_to_polygon_shape_transform.cpp
View file @
3ddc57e6
...
...
@@ -100,7 +100,7 @@ void TEXTE_PCB::TransformShapeWithClearanceToPolygon(
CPolyPt
corners
[
4
];
// Buffer of polygon corners
EDA_Rect
rect
=
GetTextBox
(
-
1
);
rect
.
Inflate
(
aClearanceValue
,
aClearanceValue
);
rect
.
Inflate
(
aClearanceValue
);
corners
[
0
].
x
=
rect
.
GetOrigin
().
x
;
corners
[
0
].
y
=
rect
.
GetOrigin
().
y
;
corners
[
1
].
y
=
corners
[
0
].
y
;
...
...
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