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
1b6ad8c7
Commit
1b6ad8c7
authored
Jan 04, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleaning and a minor problem fixed in Gerbview printing option
parent
ef29dabf
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
37 additions
and
239 deletions
+37
-239
CreateSVNVersionHeader.cmake
CMakeModules/CreateSVNVersionHeader.cmake
+3
-6
version.h.cmake
CMakeModules/version.h.cmake
+1
-2
about_kicad.cpp
common/about_kicad.cpp
+14
-15
common.cpp
common/common.cpp
+0
-20
gr_basic.cpp
common/gr_basic.cpp
+7
-12
pcbcommon.cpp
common/pcbcommon.cpp
+0
-22
dialog_print_using_printer.cpp
gerbview/dialog_print_using_printer.cpp
+1
-38
dialog_print_using_printer_base.cpp
gerbview/dialog_print_using_printer_base.cpp
+0
-9
dialog_print_using_printer_base.fbp
gerbview/dialog_print_using_printer_base.fbp
+0
-106
dialog_print_using_printer_base.h
gerbview/dialog_print_using_printer_base.h
+0
-2
pcbplot.h
gerbview/pcbplot.h
+0
-1
tracepcb.cpp
gerbview/tracepcb.cpp
+4
-0
build_version.h
include/build_version.h
+4
-2
common.h
include/common.h
+0
-2
gr_basic.h
include/gr_basic.h
+1
-0
dialog_print_using_printer.cpp
pcbnew/dialog_print_using_printer.cpp
+0
-1
specctra.cpp
pcbnew/specctra.cpp
+2
-1
No files found.
CMakeModules/CreateSVNVersionHeader.cmake
View file @
1b6ad8c7
...
@@ -37,14 +37,12 @@ macro(create_svn_version_header)
...
@@ -37,14 +37,12 @@ macro(create_svn_version_header)
endif
(
Subversion_FOUND
)
endif
(
Subversion_FOUND
)
# Check to make sure 'svn info' command did not fail. Otherwise fallback
# Check to make sure 'svn info' command did not fail. Otherwise fallback
# to vesion strings defined in "<kicad-src-dir>/include/build_version.h".
# to ve
r
sion strings defined in "<kicad-src-dir>/include/build_version.h".
if
(
Kicad_WC_LAST_CHANGED_DATE
)
if
(
Kicad_WC_LAST_CHANGED_DATE
)
string
(
REGEX REPLACE
"^([0-9]+)
\\
-([0-9]+)
\\
-([0-9]+).*"
"
\\
1
\\
2
\\
3"
string
(
REGEX REPLACE
"^([0-9]+)
\\
-([0-9]+)
\\
-([0-9]+).*"
"
\\
1
\\
2
\\
3"
_kicad_svn_date
${
Kicad_WC_LAST_CHANGED_DATE
}
)
_kicad_svn_date
${
Kicad_WC_LAST_CHANGED_DATE
}
)
set
(
KICAD_
SVN
_VERSION
set
(
KICAD_
BUILD
_VERSION
"(
${
_kicad_svn_date
}
SVN-R
${
Kicad_WC_LAST_CHANGED_REV
}
)"
)
"(
${
_kicad_svn_date
}
SVN-R
${
Kicad_WC_LAST_CHANGED_REV
}
)"
)
set
(
KICAD_ABOUT_VERSION
"SVN-R
${
Kicad_WC_LAST_CHANGED_REV
}
(
${
_kicad_svn_date
}
)"
)
# Definition to conditionally use date and revision returned from the
# Definition to conditionally use date and revision returned from the
# Subversion info command instead of hand coded date and revision in
# Subversion info command instead of hand coded date and revision in
...
@@ -58,7 +56,6 @@ macro(create_svn_version_header)
...
@@ -58,7 +56,6 @@ macro(create_svn_version_header)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/CMakeModules/version.h.cmake
configure_file
(
${
CMAKE_SOURCE_DIR
}
/CMakeModules/version.h.cmake
${
CMAKE_BINARY_DIR
}
/version.h
)
${
CMAKE_BINARY_DIR
}
/version.h
)
message
(
STATUS
"Kicad SVN version:
${
KICAD_SVN_VERSION
}
"
)
message
(
STATUS
"Kicad SVN build version:
${
KICAD_BUILD_VERSION
}
"
)
message
(
STATUS
"Kicad about version:
${
KICAD_ABOUT_VERSION
}
"
)
endif
(
Kicad_WC_LAST_CHANGED_DATE
)
endif
(
Kicad_WC_LAST_CHANGED_DATE
)
endmacro
(
create_svn_version_header
)
endmacro
(
create_svn_version_header
)
CMakeModules/version.h.cmake
View file @
1b6ad8c7
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
#ifndef __KICAD_SVN_VERSION_H__
#ifndef __KICAD_SVN_VERSION_H__
#define __KICAD_SVN_VERSION_H__
#define __KICAD_SVN_VERSION_H__
#cmakedefine KICAD_SVN_VERSION "@KICAD_SVN_VERSION@"
#cmakedefine KICAD_BUILD_VERSION "@KICAD_BUILD_VERSION@"
#cmakedefine KICAD_ABOUT_VERSION "@KICAD_ABOUT_VERSION@"
#endif /* __KICAD_SVN_VERSION_H__ */
#endif /* __KICAD_SVN_VERSION_H__ */
common/about_kicad.cpp
View file @
1b6ad8c7
...
@@ -8,29 +8,28 @@
...
@@ -8,29 +8,28 @@
#include "appl_wxstruct.h"
#include "appl_wxstruct.h"
#define BUILD_VERSION "(2009-12-05-unstable)"
#ifdef HAVE_SVN_VERSION
#if defined(HAVE_SVN_VERSION) || defined(HAVE_SVN_REVISION)
#include "version.h" // define the KICAD_BUILD_VERSION
# include "version.h"
#ifndef KICAD_ABOUT_VERSION
#define KICAD_ABOUT_VERSION BUILD_VERSION
#endif
#endif
wxString
g_BuildAboutVersion
(
wxT
(
KICAD_ABOUT_VERSION
)
);
#
else
#
ifndef KICAD_BUILD_VERSION
wxString
g_BuildAboutVersion
(
wxT
(
BUILD_VERSION
)
);
#define KICAD_BUILD_VERSION "(2010-01-04)"
#endif
#endif
#define VERSION_STABILITY "unstable"
/** Function Get
About
BuildVersion()
/** Function GetBuildVersion()
* Return
custom build date for about dialog
* Return
the build date and version
*/
*/
wxString
Get
About
BuildVersion
()
wxString
GetBuildVersion
()
{
{
return
g_BuildAboutVersion
;
wxString
msg
;
msg
.
Printf
(
wxT
(
"%s-%s"
),
wxT
(
KICAD_BUILD_VERSION
),
wxT
(
VERSION_STABILITY
));
return
msg
;
}
}
/**********************************/
/**********************************/
wxString
SetMsg
(
const
wxString
&
msg
)
wxString
SetMsg
(
const
wxString
&
msg
)
/**********************************/
/**********************************/
...
@@ -62,7 +61,7 @@ void InitKiCadAbout( wxAboutDialogInfo& info )
...
@@ -62,7 +61,7 @@ void InitKiCadAbout( wxAboutDialogInfo& info )
wxString
description
;
wxString
description
;
/* KiCad build version */
/* KiCad build version */
description
<<
(
_T
(
"Build: "
)
)
<<
Get
About
BuildVersion
();
description
<<
(
_T
(
"Build: "
)
)
<<
GetBuildVersion
();
/* Print for wxversion */
/* Print for wxversion */
description
<<
(
wxT
(
"
\n\n
wxWidgets "
)
)
description
<<
(
wxT
(
"
\n\n
wxWidgets "
)
)
...
...
common/common.cpp
View file @
1b6ad8c7
...
@@ -118,26 +118,6 @@ StructColors ColorRefs[NBCOLOR] =
...
@@ -118,26 +118,6 @@ StructColors ColorRefs[NBCOLOR] =
};
};
#define BUILD_VERSION "(2009-12-05-unstable)"
#ifdef HAVE_SVN_VERSION
#include "version.h"
wxString
g_BuildVersion
(
wxT
(
KICAD_SVN_VERSION
)
);
#else
wxString
g_BuildVersion
(
wxT
(
BUILD_VERSION
)
);
#endif
/** Function GetBuildVersion()
* Return the build date
*/
wxString
GetBuildVersion
()
{
return
g_BuildVersion
;
}
/** function SetLocaleTo_C_standard
/** function SetLocaleTo_C_standard
* because kicad is internationalized, switch internalization to "C" standard
* because kicad is internationalized, switch internalization to "C" standard
* i.e. uses the . (dot) as separator in print/read float numbers
* i.e. uses the . (dot) as separator in print/read float numbers
...
...
common/gr_basic.cpp
View file @
1b6ad8c7
...
@@ -285,8 +285,13 @@ void GRResetPenAndBrush( wxDC* DC )
...
@@ -285,8 +285,13 @@ void GRResetPenAndBrush( wxDC* DC )
void
SetPenMinWidth
(
int
minwidth
)
void
SetPenMinWidth
(
int
minwidth
)
{
{
PenMinWidth
=
minwidth
;
PenMinWidth
=
minwidth
;
if
(
PenMinWidth
<
1
)
if
(
PenMinWidth
<
0
)
PenMinWidth
=
1
;
PenMinWidth
=
0
;
}
int
GetPenMinWidth
(
)
{
return
PenMinWidth
;
}
}
...
@@ -1037,16 +1042,6 @@ static void GRSClosedPoly( EDA_Rect* ClipBox,
...
@@ -1037,16 +1042,6 @@ static void GRSClosedPoly( EDA_Rect* ClipBox,
}
}
/* not used
* static void GRSClosedPoly( EDA_Rect* ClipBox, wxDC* DC, int n, wxPoint
* Points[],
* bool Fill, int Color, int BgColor )
* {
* GRSClosedPoly( ClipBox, DC, n, Points, Fill, 0, Color, BgColor );
* }
*/
/*
/*
* Draw a new polyline and fill it if Fill, in drawing space.
* Draw a new polyline and fill it if Fill, in drawing space.
*/
*/
...
...
common/pcbcommon.cpp
View file @
1b6ad8c7
...
@@ -118,28 +118,6 @@ int g_GridRoutingSize = 250;
...
@@ -118,28 +118,6 @@ int g_GridRoutingSize = 250;
bool
g_Zone_45_Only
=
FALSE
;
bool
g_Zone_45_Only
=
FALSE
;
/* HPGL plot settings. */
int
g_HPGL_Pen_Num
=
1
;
/* pen number */
int
g_HPGL_Pen_Speed
=
40
;
/* speed in cm/s */
int
g_HPGL_Pen_Diam
;
/* diameter in mils */
int
g_HPGL_Pen_Recouvrement
;
/* recovery in mils ( for filling ) */
float
Scale_X
;
float
Scale_Y
;
/* scale factor in X and Y axis */
int
PlotMarge
;
int
g_PlotLine_Width
;
int
g_PlotFormat
=
PLOT_FORMAT_GERBER
;
int
g_PlotOrient
;
wxPoint
g_PlotOffset
;
FILE
*
dest
=
NULL
;
/* id for plot format (see enum PlotFormat in plot_common.h) */
int
g_PlotScaleOpt
;
int
g_DrillShapeOpt
;
// Default setting used when creating a new zone
// Default setting used when creating a new zone
ZONE_SETTING
g_Zone_Default_Setting
;
ZONE_SETTING
g_Zone_Default_Setting
;
...
...
gerbview/dialog_print_using_printer.cpp
View file @
1b6ad8c7
...
@@ -48,7 +48,6 @@ private:
...
@@ -48,7 +48,6 @@ private:
WinEDA_GerberFrame
*
m_Parent
;
WinEDA_GerberFrame
*
m_Parent
;
wxConfig
*
m_Config
;
wxConfig
*
m_Config
;
wxCheckBox
*
m_BoxSelectLayer
[
32
];
wxCheckBox
*
m_BoxSelectLayer
[
32
];
static
bool
m_ExcludeEdgeLayer
;
public
:
public
:
DIALOG_PRINT_USING_PRINTER
(
WinEDA_GerberFrame
*
parent
);
DIALOG_PRINT_USING_PRINTER
(
WinEDA_GerberFrame
*
parent
);
...
@@ -63,7 +62,6 @@ private:
...
@@ -63,7 +62,6 @@ private:
void
OnButtonCancelClick
(
wxCommandEvent
&
event
)
{
Close
();
}
void
OnButtonCancelClick
(
wxCommandEvent
&
event
)
{
Close
();
}
void
SetPrintParameters
(
);
void
SetPrintParameters
(
);
void
SetPenWidth
();
void
InitValues
(
);
void
InitValues
(
);
public
:
public
:
...
@@ -72,8 +70,6 @@ public:
...
@@ -72,8 +70,6 @@ public:
int
SetLayerMaskFromListSelection
();
int
SetLayerMaskFromListSelection
();
};
};
bool
DIALOG_PRINT_USING_PRINTER
::
m_ExcludeEdgeLayer
;
/*******************************************************/
/*******************************************************/
...
@@ -128,7 +124,6 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( )
...
@@ -128,7 +124,6 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( )
wxString
msg
;
wxString
msg
;
layer_max
=
32
;
layer_max
=
32
;
m_ExcludeEdgeLayer
=
true
;
// no meaning in gerbview
/* Create layer list */
/* Create layer list */
int
mask
=
1
,
ii
;
int
mask
=
1
,
ii
;
...
@@ -154,7 +149,6 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( )
...
@@ -154,7 +149,6 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( )
if
(
m_Config
)
if
(
m_Config
)
{
{
m_Config
->
Read
(
OPTKEY_PLOT_LINEWIDTH_VALUE
,
&
s_Parameters
.
m_PenMinSize
);
m_Config
->
Read
(
OPTKEY_PRINT_X_FINESCALE_ADJ
,
&
s_Parameters
.
m_XScaleAdjust
);
m_Config
->
Read
(
OPTKEY_PRINT_X_FINESCALE_ADJ
,
&
s_Parameters
.
m_XScaleAdjust
);
m_Config
->
Read
(
OPTKEY_PRINT_Y_FINESCALE_ADJ
,
&
s_Parameters
.
m_YScaleAdjust
);
m_Config
->
Read
(
OPTKEY_PRINT_Y_FINESCALE_ADJ
,
&
s_Parameters
.
m_YScaleAdjust
);
m_Config
->
Read
(
OPTKEY_PRINT_SCALE
,
&
scale_idx
);
m_Config
->
Read
(
OPTKEY_PRINT_SCALE
,
&
scale_idx
);
...
@@ -206,10 +200,7 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( )
...
@@ -206,10 +200,7 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( )
else
else
m_ModeColorOption
->
SetSelection
(
0
);
m_ModeColorOption
->
SetSelection
(
0
);
AddUnitSymbol
(
*
m_TextPenWidth
,
g_UnitMetric
);
s_Parameters
.
m_PenMinSize
=
0
;
m_DialogPenWidth
->
SetValue
(
ReturnStringFromValue
(
g_UnitMetric
,
s_Parameters
.
m_PenMinSize
,
m_Parent
->
m_InternalUnits
)
);
// Create scale adjust option
// Create scale adjust option
msg
.
Printf
(
wxT
(
"%f"
),
s_Parameters
.
m_XScaleAdjust
);
msg
.
Printf
(
wxT
(
"%f"
),
s_Parameters
.
m_XScaleAdjust
);
...
@@ -249,7 +240,6 @@ void DIALOG_PRINT_USING_PRINTER::OnCloseWindow( wxCloseEvent& event )
...
@@ -249,7 +240,6 @@ void DIALOG_PRINT_USING_PRINTER::OnCloseWindow( wxCloseEvent& event )
if
(
m_Config
)
if
(
m_Config
)
{
{
m_Config
->
Write
(
OPTKEY_PLOT_LINEWIDTH_VALUE
,
s_Parameters
.
m_PenMinSize
);
m_Config
->
Write
(
OPTKEY_PRINT_X_FINESCALE_ADJ
,
s_Parameters
.
m_XScaleAdjust
);
m_Config
->
Write
(
OPTKEY_PRINT_X_FINESCALE_ADJ
,
s_Parameters
.
m_XScaleAdjust
);
m_Config
->
Write
(
OPTKEY_PRINT_Y_FINESCALE_ADJ
,
s_Parameters
.
m_YScaleAdjust
);
m_Config
->
Write
(
OPTKEY_PRINT_Y_FINESCALE_ADJ
,
s_Parameters
.
m_YScaleAdjust
);
m_Config
->
Write
(
OPTKEY_PRINT_SCALE
,
m_ScaleOption
->
GetSelection
()
);
m_Config
->
Write
(
OPTKEY_PRINT_SCALE
,
m_ScaleOption
->
GetSelection
()
);
...
@@ -301,35 +291,8 @@ void DIALOG_PRINT_USING_PRINTER::SetPrintParameters( )
...
@@ -301,35 +291,8 @@ void DIALOG_PRINT_USING_PRINTER::SetPrintParameters( )
}
}
g_pcb_plot_options
.
ScaleAdjX
=
s_Parameters
.
m_XScaleAdjust
;
g_pcb_plot_options
.
ScaleAdjX
=
s_Parameters
.
m_XScaleAdjust
;
g_pcb_plot_options
.
ScaleAdjX
=
s_Parameters
.
m_YScaleAdjust
;
g_pcb_plot_options
.
ScaleAdjX
=
s_Parameters
.
m_YScaleAdjust
;
SetPenWidth
();
}
/**********************************************/
void
DIALOG_PRINT_USING_PRINTER
::
SetPenWidth
()
/***********************************************/
/* Get the new pen width value, and verify min et max value
* NOTE: s_Parameters.m_PenMinSize is in internal units
*/
{
s_Parameters
.
m_PenMinSize
=
ReturnValueFromTextCtrl
(
*
m_DialogPenWidth
,
m_Parent
->
m_InternalUnits
);
if
(
s_Parameters
.
m_PenMinSize
>
WIDTH_MAX_VALUE
)
{
s_Parameters
.
m_PenMinSize
=
WIDTH_MAX_VALUE
;
}
if
(
s_Parameters
.
m_PenMinSize
<
WIDTH_MIN_VALUE
)
{
s_Parameters
.
m_PenMinSize
=
WIDTH_MIN_VALUE
;
}
m_DialogPenWidth
->
SetValue
(
ReturnStringFromValue
(
g_UnitMetric
,
s_Parameters
.
m_PenMinSize
,
m_Parent
->
m_InternalUnits
)
);
}
}
/**********************************************************/
/**********************************************************/
void
DIALOG_PRINT_USING_PRINTER
::
OnPrintSetup
(
wxCommandEvent
&
event
)
void
DIALOG_PRINT_USING_PRINTER
::
OnPrintSetup
(
wxCommandEvent
&
event
)
/**********************************************************/
/**********************************************************/
...
...
gerbview/dialog_print_using_printer_base.cpp
View file @
1b6ad8c7
...
@@ -69,15 +69,6 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
...
@@ -69,15 +69,6 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
wxStaticBoxSizer
*
sbOptionsSizer
;
wxStaticBoxSizer
*
sbOptionsSizer
;
sbOptionsSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"Options:"
)
),
wxVERTICAL
);
sbOptionsSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"Options:"
)
),
wxVERTICAL
);
m_TextPenWidth
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Pen Width Mini"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TextPenWidth
->
Wrap
(
-
1
);
sbOptionsSizer
->
Add
(
m_TextPenWidth
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_DialogPenWidth
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DialogPenWidth
->
SetToolTip
(
_
(
"Selection of the minimum pen thickness used to draw items."
)
);
sbOptionsSizer
->
Add
(
m_DialogPenWidth
,
0
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
m_Print_Mirror
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Mirror"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_Print_Mirror
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Mirror"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sbOptionsSizer
->
Add
(
m_Print_Mirror
,
0
,
wxALL
,
5
);
sbOptionsSizer
->
Add
(
m_Print_Mirror
,
0
,
wxALL
,
5
);
...
...
gerbview/dialog_print_using_printer_base.fbp
View file @
1b6ad8c7
...
@@ -426,112 +426,6 @@
...
@@ -426,112 +426,6 @@
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
none
</property>
<property
name=
"permission"
>
none
</property>
<event
name=
"OnUpdateUI"
></event>
<event
name=
"OnUpdateUI"
></event>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxTOP|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"bg"
></property>
<property
name=
"context_help"
></property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"font"
></property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Pen Width Mini
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
m_TextPenWidth
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"bg"
></property>
<property
name=
"context_help"
></property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"font"
></property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
>
0
</property>
<property
name=
"minimum_size"
>
-1,-1
</property>
<property
name=
"name"
>
m_DialogPenWidth
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"tooltip"
>
Selection of the minimum pen thickness used to draw items.
</property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL
</property>
<property
name=
"flag"
>
wxALL
</property>
...
...
gerbview/dialog_print_using_printer_base.h
View file @
1b6ad8c7
...
@@ -49,8 +49,6 @@ class DIALOG_PRINT_USING_PRINTER_base : public wxDialog
...
@@ -49,8 +49,6 @@ class DIALOG_PRINT_USING_PRINTER_base : public wxDialog
wxTextCtrl
*
m_FineAdjustXscaleOpt
;
wxTextCtrl
*
m_FineAdjustXscaleOpt
;
wxStaticText
*
m_FineAdjustYscaleTitle
;
wxStaticText
*
m_FineAdjustYscaleTitle
;
wxTextCtrl
*
m_FineAdjustYscaleOpt
;
wxTextCtrl
*
m_FineAdjustYscaleOpt
;
wxStaticText
*
m_TextPenWidth
;
wxTextCtrl
*
m_DialogPenWidth
;
wxCheckBox
*
m_Print_Mirror
;
wxCheckBox
*
m_Print_Mirror
;
wxRadioBox
*
m_ModeColorOption
;
wxRadioBox
*
m_ModeColorOption
;
wxRadioBox
*
m_PagesOption
;
wxRadioBox
*
m_PagesOption
;
...
...
gerbview/pcbplot.h
View file @
1b6ad8c7
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
#define PCBPLOT_H
#define PCBPLOT_H
/* Shared Config keys for plot and print */
/* Shared Config keys for plot and print */
#define OPTKEY_PLOT_LINEWIDTH_VALUE wxT( "PlotLineWidth" )
#define OPTKEY_LAYERBASE wxT( "PlotLayer_%d" )
#define OPTKEY_LAYERBASE wxT( "PlotLayer_%d" )
#define OPTKEY_PRINT_X_FINESCALE_ADJ wxT( "PrintXFineScaleAdj" )
#define OPTKEY_PRINT_X_FINESCALE_ADJ wxT( "PrintXFineScaleAdj" )
#define OPTKEY_PRINT_Y_FINESCALE_ADJ wxT( "PrintYFineScaleAdj" )
#define OPTKEY_PRINT_Y_FINESCALE_ADJ wxT( "PrintYFineScaleAdj" )
...
...
gerbview/tracepcb.cpp
View file @
1b6ad8c7
...
@@ -117,6 +117,8 @@ void WinEDA_GerberFrame::Trace_Gerber( wxDC* DC, int draw_mode, int printmasklay
...
@@ -117,6 +117,8 @@ void WinEDA_GerberFrame::Trace_Gerber( wxDC* DC, int draw_mode, int printmasklay
// minimize reallocations of the vector's internal array by starting with a good sized one.
// minimize reallocations of the vector's internal array by starting with a good sized one.
points
.
reserve
(
10000
);
points
.
reserve
(
10000
);
int
tmp
=
GetPenMinWidth
(
);
SetPenMinWidth
(
0
);
for
(
TRACK
*
track
=
GetBoard
()
->
m_Zone
;
track
;
track
=
track
->
Next
()
)
for
(
TRACK
*
track
=
GetBoard
()
->
m_Zone
;
track
;
track
=
track
->
Next
()
)
{
{
if
(
!
(
track
->
ReturnMaskLayer
()
&
printmasklayer
)
)
if
(
!
(
track
->
ReturnMaskLayer
()
&
printmasklayer
)
)
...
@@ -176,6 +178,8 @@ void WinEDA_GerberFrame::Trace_Gerber( wxDC* DC, int draw_mode, int printmasklay
...
@@ -176,6 +178,8 @@ void WinEDA_GerberFrame::Trace_Gerber( wxDC* DC, int draw_mode, int printmasklay
// Draw tracks and flashes down here. This will probably not be a final solution to drawing order issues
// Draw tracks and flashes down here. This will probably not be a final solution to drawing order issues
Draw_Track_Buffer
(
DrawPanel
,
DC
,
GetBoard
(),
draw_mode
,
printmasklayer
);
Draw_Track_Buffer
(
DrawPanel
,
DC
,
GetBoard
(),
draw_mode
,
printmasklayer
);
SetPenMinWidth
(
tmp
);
if
(
DisplayOpt
.
DisplayPadNum
)
if
(
DisplayOpt
.
DisplayPadNum
)
Affiche_DCodes_Pistes
(
DrawPanel
,
DC
,
GetBoard
(),
GR_COPY
);
Affiche_DCodes_Pistes
(
DrawPanel
,
DC
,
GetBoard
(),
GR_COPY
);
...
...
include/build_version.h
View file @
1b6ad8c7
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
#ifndef KICAD_BUILD_VERSION
#ifndef KICAD_BUILD_VERSION
#define KICAD_BUILD_VERSION
#define KICAD_BUILD_VERSION
extern
wxString
g_BuildVersion
;
/** Function GetBuildVersion()
extern
wxString
g_BuildAboutVersion
;
* Return the build date and version
*/
wxString
GetBuildVersion
();
#endif // KICAD_BUILD_VERSION
#endif // KICAD_BUILD_VERSION
include/common.h
View file @
1b6ad8c7
...
@@ -267,8 +267,6 @@ void InitKiCadAbout( wxAboutDialogInfo& info );
...
@@ -267,8 +267,6 @@ void InitKiCadAbout( wxAboutDialogInfo& info );
/* common.cpp */
/* common.cpp */
/**************/
/**************/
wxString
GetBuildVersion
();
/* Return the build date */
wxString
GetBuildVersion
();
/* Return the build date */
wxString
GetAboutBuildVersion
();
/* Return custom build date for about
* dialog */
/**
/**
* function Affiche_1_Parametre
* function Affiche_1_Parametre
...
...
include/gr_basic.h
View file @
1b6ad8c7
...
@@ -57,6 +57,7 @@ void GRForceBlackPen( bool flagforce );
...
@@ -57,6 +57,7 @@ void GRForceBlackPen( bool flagforce );
*/
*/
bool
GetGRForceBlackPenState
(
void
);
bool
GetGRForceBlackPenState
(
void
);
void
SetPenMinWidth
(
int
minwidth
);
void
SetPenMinWidth
(
int
minwidth
);
int
GetPenMinWidth
(
);
void
GRSPutPixel
(
EDA_Rect
*
ClipBox
,
wxDC
*
DC
,
int
x
,
int
y
,
int
color
);
void
GRSPutPixel
(
EDA_Rect
*
ClipBox
,
wxDC
*
DC
,
int
x
,
int
y
,
int
color
);
void
GRSFilledRect
(
EDA_Rect
*
ClipBox
,
wxDC
*
DC
,
int
x1
,
int
y1
,
void
GRSFilledRect
(
EDA_Rect
*
ClipBox
,
wxDC
*
DC
,
int
x1
,
int
y1
,
...
...
pcbnew/dialog_print_using_printer.cpp
View file @
1b6ad8c7
...
@@ -54,7 +54,6 @@ public:
...
@@ -54,7 +54,6 @@ public:
private
:
private
:
void
OnCloseWindow
(
wxCloseEvent
&
event
);
void
OnCloseWindow
(
wxCloseEvent
&
event
);
void
OnInitDialog
(
wxInitDialogEvent
&
event
);
void
OnPrintSetup
(
wxCommandEvent
&
event
);
void
OnPrintSetup
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
...
...
pcbnew/specctra.cpp
View file @
1b6ad8c7
...
@@ -4170,7 +4170,8 @@ PARSER::PARSER( ELEM* aParent ) :
...
@@ -4170,7 +4170,8 @@ PARSER::PARSER( ELEM* aParent ) :
generated_by_freeroute
=
false
;
generated_by_freeroute
=
false
;
host_cad
=
"Kicad's PCBNEW"
;
host_cad
=
"Kicad's PCBNEW"
;
host_version
=
CONV_TO_UTF8
(
g_BuildVersion
);
wxString
msg
=
GetBuildVersion
();
host_version
=
CONV_TO_UTF8
(
msg
);
}
}
...
...
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