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
ec5e682e
Commit
ec5e682e
authored
Apr 20, 2010
by
jp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some issues in SVG export.
parent
bd381d94
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
22 deletions
+25
-22
CMakeLists.txt
bitmaps/CMakeLists.txt
+1
-0
dcsvg.cpp
common/dcsvg.cpp
+2
-2
menucfg.cpp
cvpcb/menucfg.cpp
+1
-1
dialog_SVG_print.cpp
eeschema/dialog_SVG_print.cpp
+6
-4
menubar.cpp
eeschema/menubar.cpp
+1
-1
menubar_libedit.cpp
eeschema/menubar_libedit.cpp
+1
-1
tool_gerber.cpp
gerbview/tool_gerber.cpp
+1
-1
bitmaps.h
include/bitmaps.h
+1
-0
menubar.cpp
kicad/menubar.cpp
+1
-1
dialog_SVG_print.cpp
pcbnew/dialog_SVG_print.cpp
+8
-9
menubar_modedit.cpp
pcbnew/menubar_modedit.cpp
+1
-1
menubar_pcbframe.cpp
pcbnew/menubar_pcbframe.cpp
+1
-1
No files found.
bitmaps/CMakeLists.txt
View file @
ec5e682e
...
...
@@ -262,6 +262,7 @@ set(BITMAP_SRCS
new.xpm
noconn.xpm
Normal.xpm
online_help.xpm
Open_Library.xpm
Open_Project.xpm
open.xpm
...
...
common/dcsvg.cpp
View file @
ec5e682e
...
...
@@ -157,8 +157,8 @@ void wxSVGFileDC::Init( wxString f, int Width, int Height, float dpi )
write
(
s
);
s
.
Printf
(
wxT
(
" version=
\"
1.1
\"\n
"
)
);
write
(
s
);
s
.
Printf
(
wxT
(
" width=
\"
%
.2gcm
\"
height=
\"
%.2gcm
\"
viewBox=
\"
0 0 %d %d
\"\n
"
),
float
(
Width
)
/
dpi
*
2.54
,
float
(
Height
)
/
dpi
*
2.54
,
Width
,
Height
);
s
.
Printf
(
wxT
(
" width=
\"
%
gin
\"
height=
\"
%gin
\"
viewBox=
\"
0 0 %d %d
\"\n
"
),
double
(
Width
)
/
dpi
,
double
(
Height
)
/
dpi
,
Width
,
Height
);
write
(
s
);
s
.
Printf
(
wxT
(
">
\n
"
)
);
write
(
s
);
...
...
cvpcb/menucfg.cpp
View file @
ec5e682e
...
...
@@ -80,7 +80,7 @@ void WinEDA_CvpcbFrame::ReCreateMenuBar()
wxMenu
*
helpMenu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the cvpcb manual"
)
);
item
->
SetBitmap
(
help_xpm
);
item
->
SetBitmap
(
online_
help_xpm
);
helpMenu
->
Append
(
item
);
/* About on all platforms except WXMAC */
...
...
eeschema/dialog_SVG_print.cpp
View file @
ec5e682e
...
...
@@ -230,12 +230,16 @@ bool DIALOG_SVG_PRINT::DrawSVGPage( WinEDA_DrawFrame * frame,
old_org
=
screen
->
m_DrawOrg
;
screen
->
m_DrawOrg
.
x
=
screen
->
m_DrawOrg
.
y
=
0
;
screen
->
m_StartVisu
.
x
=
screen
->
m_StartVisu
.
y
=
0
;
SheetSize
=
screen
->
ReturnPageSize
(
);
SheetSize
=
screen
->
ReturnPageSize
(
);
// page size in 1/1000 inch, ie in internal units
screen
->
SetScalingFactor
(
1.0
);
WinEDA_DrawPanel
*
panel
=
frame
->
DrawPanel
;
wxSVGFileDC
dc
(
FullFileName
,
SheetSize
.
x
,
SheetSize
.
y
);
SetLocaleTo_C_standard
(
);
// Switch the locale to standard C (needed
// to print floating point numbers like 1.3)
float
dpi
=
(
float
)
frame
->
m_InternalUnits
;
wxSVGFileDC
dc
(
FullFileName
,
SheetSize
.
x
,
SheetSize
.
y
,
dpi
);
EDA_Rect
tmp
=
panel
->
m_ClipBox
;
GRResetPenAndBrush
(
&
dc
);
...
...
@@ -248,8 +252,6 @@ bool DIALOG_SVG_PRINT::DrawSVGPage( WinEDA_DrawFrame * frame,
panel
->
m_ClipBox
.
SetHeight
(
0x7FFFFF0
);
screen
->
m_IsPrinting
=
true
;
SetLocaleTo_C_standard
(
);
// Switch the locale to standard C (needed
// to print floating point numbers like 1.3)
frame
->
PrintPage
(
&
dc
,
aPrint_Sheet_Ref
,
1
,
false
);
SetLocaleTo_Default
(
);
// revert to the current locale
screen
->
m_IsPrinting
=
false
;
...
...
eeschema/menubar.cpp
View file @
ec5e682e
...
...
@@ -429,7 +429,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
wxMenu
*
helpMenu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the eeschema manual"
)
);
item
->
SetBitmap
(
help_xpm
);
item
->
SetBitmap
(
online_
help_xpm
);
helpMenu
->
Append
(
item
);
/* About on all platforms except WXMAC */
...
...
eeschema/menubar_libedit.cpp
View file @
ec5e682e
...
...
@@ -251,7 +251,7 @@ void WinEDA_LibeditFrame::ReCreateMenuBar()
wxMenu
*
helpMenu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the eeschema manual"
)
);
item
->
SetBitmap
(
help_xpm
);
item
->
SetBitmap
(
online_
help_xpm
);
helpMenu
->
Append
(
item
);
/**
...
...
gerbview/tool_gerber.cpp
View file @
ec5e682e
...
...
@@ -118,7 +118,7 @@ void WinEDA_GerberFrame::ReCreateMenuBar( void )
_
(
"Open the gerbview manual"
),
help_xpm
);
ADD_MENUITEM_WITH_HELP
(
helpMenu
,
ID_KICAD_ABOUT
,
_
(
"&About Gerbview"
),
_
(
"About gerbview gerber and drill viewer"
),
info
_xpm
);
online_help
_xpm
);
menuBar
->
Append
(
filesMenu
,
_
(
"&File"
)
);
menuBar
->
Append
(
configmenu
,
_
(
"&Preferences"
)
);
...
...
include/bitmaps.h
View file @
ec5e682e
...
...
@@ -255,6 +255,7 @@ extern const char* new_txt_xpm[];
extern
const
char
*
new_xpm
[];
extern
const
char
*
noconn_button
[];
extern
const
char
*
normal_xpm
[];
extern
const
char
*
online_help_xpm
[];
extern
const
char
*
open_library_xpm
[];
extern
const
char
*
open_project_xpm
[];
extern
const
char
*
open_xpm
[];
...
...
kicad/menubar.cpp
View file @
ec5e682e
...
...
@@ -227,7 +227,7 @@ void WinEDA_MainFrame::ReCreateMenuBar()
/* Contents */
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the kicad manual"
)
);
item
->
SetBitmap
(
help_xpm
);
item
->
SetBitmap
(
online_
help_xpm
);
helpMenu
->
Append
(
item
);
/* About on all platforms except WXMAC */
...
...
pcbnew/dialog_SVG_print.cpp
View file @
ec5e682e
...
...
@@ -38,7 +38,6 @@ class DIALOG_SVG_PRINT : public DIALOG_SVG_PRINT_base
{
private
:
WinEDA_BasePcbFrame
*
m_Parent
;
int
m_ImageXSize_mm
;
wxConfig
*
m_Config
;
long
m_PrintMaskLayer
;
wxCheckBox
*
m_BoxSelectLayer
[
32
];
...
...
@@ -90,7 +89,6 @@ void DIALOG_SVG_PRINT::initDialog( )
{
SetFocus
();
// Make ESC key working
m_ImageXSize_mm
=
270
;
if
(
m_Config
)
{
m_Config
->
Read
(
PLOTSVGMODECOLOR_KEY
,
&
s_Parameters
.
m_Print_Black_and_White
);
...
...
@@ -245,7 +243,7 @@ void DIALOG_SVG_PRINT::PrintSVGDoc( bool aPrintAll, bool aPrint_Frame_Ref )
/*
*
Routine actual print
*
Actual print function.
*/
bool
DIALOG_SVG_PRINT
::
DrawPage
(
const
wxString
&
FullFileName
,
BASE_SCREEN
*
screen
,
...
...
@@ -255,7 +253,6 @@ bool DIALOG_SVG_PRINT::DrawPage( const wxString& FullFileName,
wxPoint
tmp_startvisu
;
wxSize
SheetSize
;
// Sheet size in internal units
wxPoint
old_org
;
float
dpi
;
bool
success
=
true
;
/* Change frames and local settings */
...
...
@@ -269,16 +266,16 @@ bool DIALOG_SVG_PRINT::DrawPage( const wxString& FullFileName,
SheetSize
.
y
*=
m_Parent
->
m_InternalUnits
/
1000
;
// size in pixels
screen
->
SetScalingFactor
(
1.0
);
dpi
=
(
float
)
SheetSize
.
x
*
25.4
/
m_ImageXSize_mm
;
float
dpi
=
(
float
)
m_Parent
->
m_InternalUnits
;
WinEDA_DrawPanel
*
panel
=
m_Parent
->
DrawPanel
;
SetLocaleTo_C_standard
();
// Switch the locale to standard C (needed
// to print floating point numbers like 1.3)
wxSVGFileDC
dc
(
FullFileName
,
SheetSize
.
x
,
SheetSize
.
y
,
dpi
);
EDA_Rect
tmp
=
panel
->
m_ClipBox
;
GRResetPenAndBrush
(
&
dc
);
s_Parameters
.
m_PenDefaultSize
=
ReturnValueFromTextCtrl
(
*
m_DialogPenWidth
,
m_Parent
->
m_InternalUnits
);
GRForceBlackPen
(
m_ModeColorOption
->
GetSelection
()
==
0
?
false
:
true
);
s_Parameters
.
m_DrillShapeOpt
=
PRINT_PARAMETERS
::
FULL_DRILL_SHAPE
;
...
...
@@ -288,9 +285,11 @@ bool DIALOG_SVG_PRINT::DrawPage( const wxString& FullFileName,
0x7FFFFF0
);
screen
->
m_IsPrinting
=
true
;
SetLocaleTo_C_standard
();
// Switch the locale to standard C (needed
// to print floating point numbers like 1.3)
int
tmp_cb
=
g_DrawBgColor
;
g_DrawBgColor
=
WHITE
;
m_Parent
->
PrintPage
(
&
dc
,
aPrint_Frame_Ref
,
m_PrintMaskLayer
,
false
,
&
s_Parameters
);
g_DrawBgColor
=
tmp_cb
;
SetLocaleTo_Default
();
// revert to the current locale
screen
->
m_IsPrinting
=
false
;
panel
->
m_ClipBox
=
tmp
;
...
...
pcbnew/menubar_modedit.cpp
View file @
ec5e682e
...
...
@@ -53,7 +53,7 @@ void WinEDA_ModuleEditFrame::ReCreateMenuBar()
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the pcbnew manual"
)
);
item
->
SetBitmap
(
help_xpm
);
item
->
SetBitmap
(
online_
help_xpm
);
helpMenu
->
Append
(
item
);
...
...
pcbnew/menubar_pcbframe.cpp
View file @
ec5e682e
...
...
@@ -488,7 +488,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
wxMenu
*
helpMenu
=
new
wxMenu
;
item
=
new
wxMenuItem
(
helpMenu
,
ID_GENERAL_HELP
,
_
(
"&Contents"
),
_
(
"Open the PCBnew manual"
)
);
item
->
SetBitmap
(
help_xpm
);
item
->
SetBitmap
(
online_
help_xpm
);
helpMenu
->
Append
(
item
);
...
...
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