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
862d3cdb
Commit
862d3cdb
authored
Dec 02, 2009
by
faa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small improvements for russian GOST
parent
e832a6b8
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
211 additions
and
70 deletions
+211
-70
3d_read_mesh.cpp
3d-viewer/3d_read_mesh.cpp
+1
-1
common_plot_functions.cpp
common/common_plot_functions.cpp
+87
-3
worksheet.cpp
common/worksheet.cpp
+103
-32
zoom.cpp
common/zoom.cpp
+1
-1
pinedit.cpp
eeschema/pinedit.cpp
+2
-2
worksheet.h
include/worksheet.h
+2
-0
kicad.mo
internat/ru/kicad.mo
+0
-0
kicad.po
internat/ru/kicad.po
+15
-31
No files found.
3d-viewer/3d_read_mesh.cpp
View file @
862d3cdb
...
@@ -40,7 +40,7 @@ int S3D_MASTER::ReadData()
...
@@ -40,7 +40,7 @@ int S3D_MASTER::ReadData()
if
(
FullFilename
.
IsEmpty
()
)
if
(
FullFilename
.
IsEmpty
()
)
{
{
wxLogDebug
(
_
(
"3D part library <%s> could not be found."
),
wxLogDebug
(
wxT
(
"3D part library <%s> could not be found."
),
GetChars
(
fn
.
GetFullPath
()
)
);
GetChars
(
fn
.
GetFullPath
()
)
);
return
-
1
;
return
-
1
;
}
}
...
...
common/common_plot_functions.cpp
View file @
862d3cdb
...
@@ -32,6 +32,11 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
...
@@ -32,6 +32,11 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
int
conv_unit
=
screen
->
GetInternalUnits
()
/
1000
;
int
conv_unit
=
screen
->
GetInternalUnits
()
/
1000
;
wxString
msg
;
wxString
msg
;
wxSize
text_size
;
wxSize
text_size
;
#if defined(KICAD_GOST)
wxSize
text_size2
;
wxSize
text_size3
;
wxSize
text_size1_5
;
#endif
int
UpperLimit
=
VARIABLE_BLOCK_START_POSITION
;
int
UpperLimit
=
VARIABLE_BLOCK_START_POSITION
;
bool
italic
=
false
;
bool
italic
=
false
;
bool
bold
=
false
;
bool
bold
=
false
;
...
@@ -234,6 +239,12 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
...
@@ -234,6 +239,12 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
text_size
.
x
=
SIZETEXT
*
conv_unit
;
text_size
.
x
=
SIZETEXT
*
conv_unit
;
text_size
.
y
=
SIZETEXT
*
conv_unit
;
text_size
.
y
=
SIZETEXT
*
conv_unit
;
#if defined(KICAD_GOST)
#if defined(KICAD_GOST)
text_size2
.
x
=
SIZETEXT
*
conv_unit
*
2
;
text_size2
.
y
=
SIZETEXT
*
conv_unit
*
2
;
text_size3
.
x
=
SIZETEXT
*
conv_unit
*
3
;
text_size3
.
y
=
SIZETEXT
*
conv_unit
*
3
;
text_size1_5
.
x
=
SIZETEXT
*
conv_unit
*
1.5
;
text_size1_5
.
y
=
SIZETEXT
*
conv_unit
*
1.5
;
ref
.
x
=
PageSize
.
x
-
Sheet
->
m_RightMargin
;
ref
.
x
=
PageSize
.
x
-
Sheet
->
m_RightMargin
;
ref
.
y
=
PageSize
.
y
-
Sheet
->
m_BottomMargin
;
ref
.
y
=
PageSize
.
y
-
Sheet
->
m_BottomMargin
;
...
@@ -261,7 +272,8 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
...
@@ -261,7 +272,8 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
case
WS_PODPIS
:
case
WS_PODPIS
:
if
(
WsItem
->
m_Legende
)
if
(
WsItem
->
m_Legende
)
msg
=
WsItem
->
m_Legende
;
msg
=
WsItem
->
m_Legende
;
plotter
->
text
(
pos
,
color
,
msg
,
TEXT_ORIENT_HORIZ
,
text_size
,
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
thickness
,
italic
,
false
);
break
;
break
;
...
@@ -273,7 +285,8 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
...
@@ -273,7 +285,8 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
if
(
WsItem
->
m_Legende
)
if
(
WsItem
->
m_Legende
)
msg
=
WsItem
->
m_Legende
;
msg
=
WsItem
->
m_Legende
;
msg
<<
screen
->
m_ScreenNumber
;
msg
<<
screen
->
m_ScreenNumber
;
plotter
->
text
(
pos
,
color
,
msg
,
TEXT_ORIENT_HORIZ
,
text_size
,
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
thickness
,
italic
,
false
);
break
;
break
;
...
@@ -282,27 +295,82 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
...
@@ -282,27 +295,82 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
if
(
WsItem
->
m_Legende
)
if
(
WsItem
->
m_Legende
)
msg
=
WsItem
->
m_Legende
;
msg
=
WsItem
->
m_Legende
;
msg
<<
screen
->
m_NumberOfScreen
;
msg
<<
screen
->
m_NumberOfScreen
;
plotter
->
text
(
pos
,
color
,
msg
,
TEXT_ORIENT_HORIZ
,
text_size
,
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
thickness
,
italic
,
false
);
break
;
break
;
case
WS_COMPANY_NAME
:
case
WS_COMPANY_NAME
:
msg
=
screen
->
m_Company
;
if
(
!
msg
.
IsEmpty
()
)
{
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size1_5
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
}
break
;
break
;
case
WS_TITLE
:
case
WS_TITLE
:
msg
=
screen
->
m_Title
;
if
(
!
msg
.
IsEmpty
()
)
{
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size1_5
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
}
break
;
break
;
case
WS_COMMENT1
:
case
WS_COMMENT1
:
msg
=
screen
->
m_Commentaire1
;
if
(
!
msg
.
IsEmpty
()
)
{
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size3
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
pos
.
x
=
(
Sheet
->
m_LeftMargin
+
1260
)
*
conv_unit
;
pos
.
y
=
(
Sheet
->
m_TopMargin
+
270
)
*
conv_unit
;
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
1800
,
text_size2
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
}
break
;
break
;
case
WS_COMMENT2
:
case
WS_COMMENT2
:
msg
=
screen
->
m_Commentaire2
;
if
(
!
msg
.
IsEmpty
()
)
{
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
}
break
;
break
;
case
WS_COMMENT3
:
case
WS_COMMENT3
:
msg
=
screen
->
m_Commentaire3
;
if
(
!
msg
.
IsEmpty
()
)
{
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
}
break
;
break
;
case
WS_COMMENT4
:
case
WS_COMMENT4
:
msg
=
screen
->
m_Commentaire4
;
if
(
!
msg
.
IsEmpty
()
)
{
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
}
break
;
break
;
case
WS_UPPER_SEGMENT
:
case
WS_UPPER_SEGMENT
:
...
@@ -330,6 +398,22 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
...
@@ -330,6 +398,22 @@ void WinEDA_DrawFrame::PlotWorkSheet( PLOTTER* plotter, BASE_SCREEN* screen )
{
{
case
WS_CADRE
:
case
WS_CADRE
:
/* Begin list number > 1 */
/* Begin list number > 1 */
msg
=
screen
->
m_Commentaire1
;
if
(
!
msg
.
IsEmpty
()
)
{
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
TEXT_ORIENT_HORIZ
,
text_size3
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
pos
.
x
=
(
Sheet
->
m_LeftMargin
+
1260
)
*
conv_unit
;
pos
.
y
=
(
Sheet
->
m_TopMargin
+
270
)
*
conv_unit
;
plotter
->
text
(
pos
,
color
,
msg
.
GetData
(),
1800
,
text_size2
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
thickness
,
italic
,
false
);
}
break
;
case
WS_PODPIS_D
:
case
WS_PODPIS_D
:
if
(
WsItem
->
m_Legende
)
if
(
WsItem
->
m_Legende
)
msg
=
WsItem
->
m_Legende
;
msg
=
WsItem
->
m_Legende
;
...
...
common/worksheet.cpp
View file @
862d3cdb
...
@@ -86,11 +86,13 @@ Ki_WorkSheetData WS_Title =
...
@@ -86,11 +86,13 @@ Ki_WorkSheetData WS_Title =
{
{
WS_TITLE
,
WS_TITLE
,
&
WS_SheetFilename
,
&
WS_SheetFilename
,
BLOCK_TITLE_X
,
BLOCK_TITLE_Y
,
0
,
0
,
#if defined(KICAD_GOST)
#if defined(KICAD_GOST)
STAMP_X_85
,
STAMP_Y_25
+
90
,
0
,
0
,
NULL
,
NULL
NULL
,
NULL
#else
#else
BLOCK_TITLE_X
,
BLOCK_TITLE_Y
,
0
,
0
,
wxT
(
"Title: "
),
NULL
wxT
(
"Title: "
),
NULL
#endif
#endif
};
};
...
@@ -117,8 +119,13 @@ Ki_WorkSheetData WS_Company =
...
@@ -117,8 +119,13 @@ Ki_WorkSheetData WS_Company =
{
{
WS_COMPANY_NAME
,
WS_COMPANY_NAME
,
&
WS_Comment1
,
&
WS_Comment1
,
#if defined(KICAD_GOST)
STAMP_X_50
/
2
,
STAMP_Y_0
+
270
,
0
,
0
,
#else
BLOCK_COMMENT_X
,
BLOCK_COMPANY_Y
,
BLOCK_COMMENT_X
,
BLOCK_COMPANY_Y
,
0
,
0
,
0
,
0
,
#endif
NULL
,
NULL
NULL
,
NULL
};
};
...
@@ -127,7 +134,7 @@ Ki_WorkSheetData WS_Comment1 =
...
@@ -127,7 +134,7 @@ Ki_WorkSheetData WS_Comment1 =
WS_COMMENT1
,
WS_COMMENT1
,
&
WS_Comment2
,
&
WS_Comment2
,
#if defined(KICAD_GOST)
#if defined(KICAD_GOST)
STAMP_
OX
,
STAMP_OY
,
STAMP_
X_120
/
2
,
STAMP_Y_40
+
270
,
STAMP_OX
,
0
,
STAMP_OX
,
0
,
#else
#else
BLOCK_COMMENT_X
,
BLOCK_COMMENT1_Y
,
BLOCK_COMMENT_X
,
BLOCK_COMMENT1_Y
,
...
@@ -141,7 +148,7 @@ Ki_WorkSheetData WS_Comment2 =
...
@@ -141,7 +148,7 @@ Ki_WorkSheetData WS_Comment2 =
WS_COMMENT2
,
WS_COMMENT2
,
&
WS_Comment3
,
&
WS_Comment3
,
#if defined(KICAD_GOST)
#if defined(KICAD_GOST)
STAMP_
OX
,
STAMP_OY
,
STAMP_
X_168
-
30
,
STAMP_Y_25
+
90
,
STAMP_OX
,
0
,
STAMP_OX
,
0
,
#else
#else
BLOCK_COMMENT_X
,
BLOCK_COMMENT2_Y
,
BLOCK_COMMENT_X
,
BLOCK_COMMENT2_Y
,
...
@@ -155,7 +162,7 @@ Ki_WorkSheetData WS_Comment3 =
...
@@ -155,7 +162,7 @@ Ki_WorkSheetData WS_Comment3 =
WS_COMMENT3
,
WS_COMMENT3
,
&
WS_Comment4
,
&
WS_Comment4
,
#if defined(KICAD_GOST)
#if defined(KICAD_GOST)
STAMP_
OX
,
STAMP_OY
,
STAMP_
X_168
-
30
,
STAMP_Y_20
+
90
,
STAMP_OX
,
0
,
STAMP_OX
,
0
,
#else
#else
BLOCK_COMMENT_X
,
BLOCK_COMMENT3_Y
,
BLOCK_COMMENT_X
,
BLOCK_COMMENT3_Y
,
...
@@ -169,7 +176,7 @@ Ki_WorkSheetData WS_Comment4 =
...
@@ -169,7 +176,7 @@ Ki_WorkSheetData WS_Comment4 =
WS_COMMENT4
,
WS_COMMENT4
,
&
WS_MostLeftLine
,
&
WS_MostLeftLine
,
#if defined(KICAD_GOST)
#if defined(KICAD_GOST)
STAMP_
OX
,
STAMP_OY
,
STAMP_
X_168
-
30
,
STAMP_Y_0
+
90
,
STAMP_OX
,
0
,
STAMP_OX
,
0
,
#else
#else
BLOCK_COMMENT_X
,
BLOCK_COMMENT4_Y
,
BLOCK_COMMENT_X
,
BLOCK_COMMENT4_Y
,
...
@@ -584,7 +591,7 @@ Ki_WorkSheetData WS_CADRE_D =
...
@@ -584,7 +591,7 @@ Ki_WorkSheetData WS_CADRE_D =
{
{
WS_CADRE
,
WS_CADRE
,
&
WS_Segm1_D
,
&
WS_Segm1_D
,
STAMP_
OX
,
0
,
STAMP_
X_65
,
STAMP_Y_0
+
27
0
,
0
,
0
,
0
,
0
,
NULL
,
NULL
NULL
,
NULL
};
};
...
@@ -935,6 +942,11 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen,
...
@@ -935,6 +942,11 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen,
Ki_WorkSheetData
*
WsItem
;
Ki_WorkSheetData
*
WsItem
;
int
scale
=
m_InternalUnits
/
1000
;
int
scale
=
m_InternalUnits
/
1000
;
wxSize
size
(
SIZETEXT
*
scale
,
SIZETEXT
*
scale
);
wxSize
size
(
SIZETEXT
*
scale
,
SIZETEXT
*
scale
);
#if defined(KICAD_GOST)
wxSize
size2
(
SIZETEXT
*
scale
*
2
,
SIZETEXT
*
scale
*
2
);
wxSize
size3
(
SIZETEXT
*
scale
*
3
,
SIZETEXT
*
scale
*
3
);
wxSize
size1_5
(
SIZETEXT
*
scale
*
1.5
,
SIZETEXT
*
scale
*
1.5
);
#endif
wxSize
size_ref
(
SIZETEXT_REF
*
scale
,
SIZETEXT_REF
*
scale
);
wxSize
size_ref
(
SIZETEXT_REF
*
scale
,
SIZETEXT_REF
*
scale
);
wxString
msg
;
wxString
msg
;
...
@@ -1152,21 +1164,79 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen,
...
@@ -1152,21 +1164,79 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen,
break
;
break
;
case
WS_COMPANY_NAME
:
case
WS_COMPANY_NAME
:
msg
=
screen
->
m_Company
;
if
(
!
msg
.
IsEmpty
()
)
{
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size1_5
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
}
break
;
break
;
case
WS_TITLE
:
case
WS_TITLE
:
msg
=
screen
->
m_Title
;
if
(
!
msg
.
IsEmpty
()
)
{
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size1_5
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
}
break
;
break
;
case
WS_COMMENT1
:
case
WS_COMMENT1
:
msg
=
screen
->
m_Commentaire1
;
if
(
!
msg
.
IsEmpty
()
)
{
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size3
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
pos
.
x
=
(
Sheet
->
m_LeftMargin
+
1260
)
*
scale
;
pos
.
y
=
(
Sheet
->
m_TopMargin
+
270
)
*
scale
;
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
1800
,
size2
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
}
break
;
break
;
case
WS_COMMENT2
:
case
WS_COMMENT2
:
msg
=
screen
->
m_Commentaire2
;
if
(
!
msg
.
IsEmpty
()
)
{
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
}
break
;
break
;
case
WS_COMMENT3
:
case
WS_COMMENT3
:
msg
=
screen
->
m_Commentaire3
;
if
(
!
msg
.
IsEmpty
()
)
{
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
}
break
;
break
;
case
WS_COMMENT4
:
case
WS_COMMENT4
:
msg
=
screen
->
m_Commentaire4
;
if
(
!
msg
.
IsEmpty
()
)
{
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
}
break
;
break
;
case
WS_UPPER_SEGMENT
:
case
WS_UPPER_SEGMENT
:
...
@@ -1197,41 +1267,42 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen,
...
@@ -1197,41 +1267,42 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen,
{
{
case
WS_CADRE
:
case
WS_CADRE
:
/* Begin list number > 1 */
/* Begin list number > 1 */
msg
=
screen
->
m_Commentaire1
;
if
(
!
msg
.
IsEmpty
()
)
{
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size3
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
pos
.
x
=
(
Sheet
->
m_LeftMargin
+
1260
)
*
scale
;
pos
.
y
=
(
Sheet
->
m_TopMargin
+
270
)
*
scale
;
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
msg
,
1800
,
size2
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
);
}
break
;
case
WS_PODPIS_D
:
case
WS_PODPIS_D
:
if
(
WsItem
->
m_Legende
)
if
(
WsItem
->
m_Legende
)
msg
=
WsItem
->
m_Legende
;
msg
=
WsItem
->
m_Legende
;
DrawGraphicText
(
DrawPanel
,
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
DC
,
msg
,
TEXT_ORIENT_HORIZ
,
size
,
pos
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
Color
,
msg
,
TEXT_ORIENT_HORIZ
,
size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
width
,
false
,
false
,
false
,
false
);
false
,
false
);
break
;
break
;
case
WS_IDENTSHEET_D
:
case
WS_IDENTSHEET_D
:
if
(
WsItem
->
m_Legende
)
if
(
WsItem
->
m_Legende
)
msg
=
WsItem
->
m_Legende
;
msg
=
WsItem
->
m_Legende
;
msg
<<
screen
->
m_ScreenNumber
;
msg
<<
screen
->
m_ScreenNumber
;
DrawGraphicText
(
DrawPanel
,
DrawGraphicText
(
DrawPanel
,
DC
,
pos
,
Color
,
DC
,
msg
,
TEXT_ORIENT_HORIZ
,
size
,
pos
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
Color
,
width
,
false
,
false
,
false
);
msg
,
TEXT_ORIENT_HORIZ
,
size
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_VJUSTIFY_CENTER
,
width
,
false
,
false
,
false
);
break
;
break
;
case
WS_LEFT_SEGMENT_D
:
case
WS_LEFT_SEGMENT_D
:
...
...
common/zoom.cpp
View file @
862d3cdb
...
@@ -159,7 +159,7 @@ void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event )
...
@@ -159,7 +159,7 @@ void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event )
if
(
(
i
<
0
)
||
(
(
size_t
)
i
>=
screen
->
m_ZoomList
.
GetCount
()
)
)
if
(
(
i
<
0
)
||
(
(
size_t
)
i
>=
screen
->
m_ZoomList
.
GetCount
()
)
)
{
{
wxLogDebug
(
_
T
(
"%s %d: index %d is outside the bounds of the zoom list."
),
wxLogDebug
(
wx
T
(
"%s %d: index %d is outside the bounds of the zoom list."
),
__TFILE__
,
__LINE__
,
i
);
__TFILE__
,
__LINE__
,
i
);
return
;
return
;
}
}
...
...
eeschema/pinedit.cpp
View file @
862d3cdb
...
@@ -299,7 +299,7 @@ static void DrawMovePin( WinEDA_DrawPanel* panel, wxDC* DC, bool erase )
...
@@ -299,7 +299,7 @@ static void DrawMovePin( WinEDA_DrawPanel* panel, wxDC* DC, bool erase )
/* Erase pin in old position */
/* Erase pin in old position */
if
(
erase
||
CurrentPin
->
IsNew
()
)
if
(
erase
||
CurrentPin
->
IsNew
()
)
{
{
wxLogDebug
(
_
(
"Initial pin position (%d, %d)"
),
wxLogDebug
(
wxT
(
"Initial pin position (%d, %d)"
),
PinPreviousPos
.
x
,
PinPreviousPos
.
y
);
PinPreviousPos
.
x
,
PinPreviousPos
.
y
);
CurrentPin
->
m_Pos
=
PinPreviousPos
;
CurrentPin
->
m_Pos
=
PinPreviousPos
;
CurrentPin
->
Draw
(
panel
,
DC
,
wxPoint
(
0
,
0
),
-
1
,
g_XorMode
,
CurrentPin
->
Draw
(
panel
,
DC
,
wxPoint
(
0
,
0
),
-
1
,
g_XorMode
,
...
@@ -417,7 +417,7 @@ void WinEDA_LibeditFrame::CreatePin( wxDC* DC )
...
@@ -417,7 +417,7 @@ void WinEDA_LibeditFrame::CreatePin( wxDC* DC )
DefaultTransformMatrix
);
DefaultTransformMatrix
);
PinPreviousPos
=
pin
->
m_Pos
;
PinPreviousPos
=
pin
->
m_Pos
;
wxLogDebug
(
_
(
"Initial pin position (%d, %d)"
),
wxLogDebug
(
wxT
(
"Initial pin position (%d, %d)"
),
PinPreviousPos
.
x
,
PinPreviousPos
.
y
);
PinPreviousPos
.
x
,
PinPreviousPos
.
y
);
DrawPanel
->
m_IgnoreMouseEvents
=
true
;
DrawPanel
->
m_IgnoreMouseEvents
=
true
;
wxCommandEvent
cmd
(
wxEVT_COMMAND_MENU_SELECTED
);
wxCommandEvent
cmd
(
wxEVT_COMMAND_MENU_SELECTED
);
...
...
include/worksheet.h
View file @
862d3cdb
...
@@ -43,8 +43,10 @@
...
@@ -43,8 +43,10 @@
#define STAMP_X_45 45 * 10000 / 254
#define STAMP_X_45 45 * 10000 / 254
#define STAMP_X_50 50 * 10000 / 254
#define STAMP_X_50 50 * 10000 / 254
#define STAMP_X_53 53 * 10000 / 254
#define STAMP_X_53 53 * 10000 / 254
#define STAMP_X_65 65 * 10000 / 254
#define STAMP_X_70 70 * 10000 / 254
#define STAMP_X_70 70 * 10000 / 254
#define STAMP_X_84 84 * 10000 / 254
#define STAMP_X_84 84 * 10000 / 254
#define STAMP_X_85 85 * 10000 / 254
#define STAMP_X_120 120 * 10000 / 254
#define STAMP_X_120 120 * 10000 / 254
#define STAMP_X_130 130 * 10000 / 254
#define STAMP_X_130 130 * 10000 / 254
#define STAMP_X_137 137 * 10000 / 254
#define STAMP_X_137 137 * 10000 / 254
...
...
internat/ru/kicad.mo
View file @
862d3cdb
No preview for this file type
internat/ru/kicad.po
View file @
862d3cdb
...
@@ -3,7 +3,7 @@ msgstr ""
...
@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: KiCAD\n"
"Project-Id-Version: KiCAD\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-26 21:07+0300\n"
"POT-Creation-Date: 2009-11-26 21:07+0300\n"
"PO-Revision-Date: 2009-12-02
08:19
+0300\n"
"PO-Revision-Date: 2009-12-02
16:03
+0300\n"
"Last-Translator: faa <faa@ntcsm.ru>\n"
"Last-Translator: faa <faa@ntcsm.ru>\n"
"Language-Team: KiCAD russian team <andrf@mail.ru>\n"
"Language-Team: KiCAD russian team <andrf@mail.ru>\n"
"MIME-Version: 1.0\n"
"MIME-Version: 1.0\n"
...
@@ -1095,11 +1095,6 @@ msgstr ""
...
@@ -1095,11 +1095,6 @@ msgstr ""
msgid "Read Project File"
msgid "Read Project File"
msgstr "Читать файл проекта"
msgstr "Читать файл проекта"
#: eeschema/eeschema_config.cpp:111
#, c-format
msgid "Current grid array index %d."
msgstr "Текущий индекс сетки %d."
#: eeschema/eeschema_config.cpp:326
#: eeschema/eeschema_config.cpp:326
msgid "Save Project Settings"
msgid "Save Project Settings"
msgstr "Сохранить настройки проекта"
msgstr "Сохранить настройки проекта"
...
@@ -1441,12 +1436,6 @@ msgstr "Была сделана попытка удалить поле %s у к
...
@@ -1441,12 +1436,6 @@ msgstr "Была сделана попытка удалить поле %s у к
msgid "This position is already occupied by another pin. Continue?"
msgid "This position is already occupied by another pin. Continue?"
msgstr "Позиция занята другим выводом. Продолжить?"
msgstr "Позиция занята другим выводом. Продолжить?"
#: eeschema/pinedit.cpp:302
#: eeschema/pinedit.cpp:420
#, c-format
msgid "Initial pin position (%d, %d)"
msgstr "Начальная позиция вывода (%d, %d)"
#: eeschema/pinedit.cpp:626
#: eeschema/pinedit.cpp:626
msgid "No pins!"
msgid "No pins!"
msgstr "Нет выводов!"
msgstr "Нет выводов!"
...
@@ -5459,7 +5448,7 @@ msgstr "Просмотр выбранного посад.места"
...
@@ -5459,7 +5448,7 @@ msgstr "Просмотр выбранного посад.места"
#: cvpcb/tool_cvpcb.cpp:49
#: cvpcb/tool_cvpcb.cpp:49
msgid "Perform automatic footprint association"
msgid "Perform automatic footprint association"
msgstr "
Perform automatic footprint association
"
msgstr "
Выполнить автоматический выбор посадочных мест
"
#: cvpcb/tool_cvpcb.cpp:54
#: cvpcb/tool_cvpcb.cpp:54
msgid "Select previous free component"
msgid "Select previous free component"
...
@@ -7168,11 +7157,6 @@ msgstr "Сдвинуть вниз"
...
@@ -7168,11 +7157,6 @@ msgstr "Сдвинуть вниз"
msgid "3D Image filename:"
msgid "3D Image filename:"
msgstr "Имя файла 3D изображения:"
msgstr "Имя файла 3D изображения:"
#: 3d-viewer/3d_read_mesh.cpp:43
#, c-format
msgid "3D part library <%s> could not be found."
msgstr "3D библиотека <%s> не найдена."
#: 3d-viewer/3d_aux.cpp:195
#: 3d-viewer/3d_aux.cpp:195
msgid "Vertex "
msgid "Vertex "
msgstr "Узел "
msgstr "Узел "
...
@@ -10225,11 +10209,11 @@ msgstr "Ввод значения зазора в единицах (mils или
...
@@ -10225,11 +10209,11 @@ msgstr "Ввод значения зазора в единицах (mils или
#: pcbnew/dialog_drc_base.cpp:54
#: pcbnew/dialog_drc_base.cpp:54
msgid "Min via size"
msgid "Min via size"
msgstr "Мин
имальный
размер переходного отверстия"
msgstr "Мин
.
размер переходного отверстия"
#: pcbnew/dialog_drc_base.cpp:63
#: pcbnew/dialog_drc_base.cpp:63
msgid "Min uVia size"
msgid "Min uVia size"
msgstr "Мин
имальный
размер микропереходного отверстия"
msgstr "Мин
.
размер микропереходного отверстия"
#: pcbnew/dialog_drc_base.cpp:75
#: pcbnew/dialog_drc_base.cpp:75
msgid "Create Report File"
msgid "Create Report File"
...
@@ -10397,12 +10381,12 @@ msgstr "Печать выбранного"
...
@@ -10397,12 +10381,12 @@ msgstr "Печать выбранного"
msgid "Print Board"
msgid "Print Board"
msgstr "Печать платы"
msgstr "Печать платы"
#: pcbnew/hotkeys.cpp:
480
#: pcbnew/hotkeys.cpp:
544
#, c-format
#, c-format
msgid "Footprint %s found, but locked"
msgid "Footprint %s found, but locked"
msgstr "Посадочное место %s найдено, не заблокировано"
msgstr "Посадочное место %s найдено, не заблокировано"
#: pcbnew/hotkeys.cpp:
647
#: pcbnew/hotkeys.cpp:
726
msgid "Delete module?"
msgid "Delete module?"
msgstr "Удалить модуль?"
msgstr "Удалить модуль?"
...
@@ -10582,7 +10566,7 @@ msgstr "Считать список цепей"
...
@@ -10582,7 +10566,7 @@ msgstr "Считать список цепей"
#: pcbnew/tool_pcb.cpp:270
#: pcbnew/tool_pcb.cpp:270
msgid "Perform design rules check"
msgid "Perform design rules check"
msgstr "
Perform design rules check
"
msgstr "
Выполнить проверку правил проекттрования
"
#: pcbnew/tool_pcb.cpp:283
#: pcbnew/tool_pcb.cpp:283
msgid "Manual and automatic move or place of modules"
msgid "Manual and automatic move or place of modules"
...
@@ -12358,11 +12342,11 @@ msgstr ""
...
@@ -12358,11 +12342,11 @@ msgstr ""
#: pcbnew/dialog_design_rules_base.cpp:180
#: pcbnew/dialog_design_rules_base.cpp:180
msgid "Min via diameter"
msgid "Min via diameter"
msgstr "Мин
имальный
диаметр переходного отверстия"
msgstr "Мин
.
диаметр переходного отверстия"
#: pcbnew/dialog_design_rules_base.cpp:187
#: pcbnew/dialog_design_rules_base.cpp:187
msgid "Min via drill dia"
msgid "Min via drill dia"
msgstr "Мин
имальный
диаметр сверла переходного отверстия"
msgstr "Мин
.
диаметр сверла переходного отверстия"
#: pcbnew/dialog_design_rules_base.cpp:199
#: pcbnew/dialog_design_rules_base.cpp:199
msgid "Micro Via Options:"
msgid "Micro Via Options:"
...
@@ -12386,11 +12370,11 @@ msgstr ""
...
@@ -12386,11 +12370,11 @@ msgstr ""
#: pcbnew/dialog_design_rules_base.cpp:215
#: pcbnew/dialog_design_rules_base.cpp:215
msgid "Min uvia diameter"
msgid "Min uvia diameter"
msgstr "Мин
имальный
диаметр микропереходного отверстия"
msgstr "Мин
.
диаметр микропереходного отверстия"
#: pcbnew/dialog_design_rules_base.cpp:223
#: pcbnew/dialog_design_rules_base.cpp:223
msgid "Min uvia drill dia"
msgid "Min uvia drill dia"
msgstr "Мин
имальное
сверло микропереходного отверстия"
msgstr "Мин
.
сверло микропереходного отверстия"
#: pcbnew/dialog_design_rules_base.cpp:236
#: pcbnew/dialog_design_rules_base.cpp:236
msgid "Minimum Allowed Values:"
msgid "Minimum Allowed Values:"
...
@@ -12403,12 +12387,12 @@ msgid ""
...
@@ -12403,12 +12387,12 @@ msgid ""
"on demand, for arbitrary via or track segments."
"on demand, for arbitrary via or track segments."
msgstr ""
msgstr ""
"Особые диаметры переходных отверстий и ширины дорожек, которые \n"
"Особые диаметры переходных отверстий и ширины дорожек, которые \n"
"могут использоваться для замены значений класса цепи \n"
"
при необходимости
могут использоваться для замены значений класса цепи \n"
"
при необходимости
для произвольных переходных отверстий и сегментов дорожек."
"для произвольных переходных отверстий и сегментов дорожек."
#: pcbnew/dialog_design_rules_base.cpp:268
#: pcbnew/dialog_design_rules_base.cpp:268
msgid "Custom Via Sizes:"
msgid "Custom Via Sizes:"
msgstr "
Заказанн
ые переходные отверстия:"
msgstr "
Особ
ые переходные отверстия:"
#: pcbnew/dialog_design_rules_base.cpp:270
#: pcbnew/dialog_design_rules_base.cpp:270
msgid "Drill value: a blank or 0 => default Netclass value"
msgid "Drill value: a blank or 0 => default Netclass value"
...
@@ -12448,7 +12432,7 @@ msgstr "Via 7"
...
@@ -12448,7 +12432,7 @@ msgstr "Via 7"
#: pcbnew/dialog_design_rules_base.cpp:312
#: pcbnew/dialog_design_rules_base.cpp:312
msgid "Custom Track Widths:"
msgid "Custom Track Widths:"
msgstr "
Заказанн
ые дорожки:"
msgstr "
Особ
ые дорожки:"
#: pcbnew/dialog_design_rules_base.cpp:337
#: pcbnew/dialog_design_rules_base.cpp:337
msgid "Track 1"
msgid "Track 1"
...
...
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