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
33b8142b
Commit
33b8142b
authored
Aug 16, 2013
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix layer alignment target default size.
parent
2afe1eab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
11 deletions
+34
-11
mirepcb.cpp
pcbnew/mirepcb.cpp
+34
-11
No files found.
pcbnew/mirepcb.cpp
View file @
33b8142b
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2004 Jean-Pierre Charras, jean-pierre.charras@gipsa-lab.inpg.fr
* Copyright (C) 1992-2011 KiCad Developers, see change_log.txt for contributors.
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file mirepcb.cpp
* @file mirepcb.cpp
* @brief Functions to edit targets (class
MIRE
).
* @brief Functions to edit targets (class
#PCB_TARGET
).
*/
*/
#include <fctsys.h>
#include <fctsys.h>
...
@@ -24,16 +49,17 @@ static void ShowTargetShapeWhileMovingMouse( EDA_DRAW_PANEL* aPanel,
...
@@ -24,16 +49,17 @@ static void ShowTargetShapeWhileMovingMouse( EDA_DRAW_PANEL* aPanel,
bool
aErase
);
bool
aErase
);
// Local variables :
// Local variables :
static
int
MireDefaultSize
=
5000
;
static
int
MireDefaultSize
=
Millimeter2iu
(
5
);
static
PCB_TARGET
s_TargetCopy
(
NULL
);
/* Used to store "old" values of the
static
PCB_TARGET
s_TargetCopy
(
NULL
);
/* Used to store "old" values of the
* current item parameters before
* current item parameters before
* edition (used in undo/redo or
* edition (used in undo/redo or
* cancel operations)
* cancel operations)
*/
*/
/************************************/
/************************************
*****
/
/* class TARGET_PROPERTIES_DIALOG_EDITOR */
/* class TARGET_PROPERTIES_DIALOG_EDITOR */
/************************************/
/************************************
*****
/
class
TARGET_PROPERTIES_DIALOG_EDITOR
:
public
wxDialog
class
TARGET_PROPERTIES_DIALOG_EDITOR
:
public
wxDialog
{
{
...
@@ -196,14 +222,13 @@ static void AbortMoveAndEditTarget( EDA_DRAW_PANEL* Panel, wxDC* DC )
...
@@ -196,14 +222,13 @@ static void AbortMoveAndEditTarget( EDA_DRAW_PANEL* Panel, wxDC* DC )
target
->
SetSize
(
s_TargetCopy
.
GetSize
()
);
target
->
SetSize
(
s_TargetCopy
.
GetSize
()
);
target
->
SetShape
(
s_TargetCopy
.
GetShape
()
);
target
->
SetShape
(
s_TargetCopy
.
GetShape
()
);
}
}
target
->
ClearFlags
();
target
->
ClearFlags
();
target
->
Draw
(
Panel
,
DC
,
GR_OR
);
target
->
Draw
(
Panel
,
DC
,
GR_OR
);
}
}
}
}
/* Draw Symbol PCB type MIRE.
*/
PCB_TARGET
*
PCB_EDIT_FRAME
::
CreateTarget
(
wxDC
*
DC
)
PCB_TARGET
*
PCB_EDIT_FRAME
::
CreateTarget
(
wxDC
*
DC
)
{
{
PCB_TARGET
*
target
=
new
PCB_TARGET
(
GetBoard
()
);
PCB_TARGET
*
target
=
new
PCB_TARGET
(
GetBoard
()
);
...
@@ -223,8 +248,6 @@ PCB_TARGET* PCB_EDIT_FRAME::CreateTarget( wxDC* DC )
...
@@ -223,8 +248,6 @@ PCB_TARGET* PCB_EDIT_FRAME::CreateTarget( wxDC* DC )
}
}
/* Routine to initialize the displacement of a focal
*/
void
PCB_EDIT_FRAME
::
BeginMoveTarget
(
PCB_TARGET
*
aTarget
,
wxDC
*
DC
)
void
PCB_EDIT_FRAME
::
BeginMoveTarget
(
PCB_TARGET
*
aTarget
,
wxDC
*
DC
)
{
{
if
(
aTarget
==
NULL
)
if
(
aTarget
==
NULL
)
...
...
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