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
72d4b235
Commit
72d4b235
authored
Apr 17, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uncrustify math_for_graphics, add copyright legacy_plugin.h
parent
597833b5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
563 additions
and
354 deletions
+563
-354
base_screen.cpp
common/base_screen.cpp
+2
-4
legacy_plugin.h
pcbnew/legacy_plugin.h
+4
-3
math_for_graphics.cpp
polygon/math_for_graphics.cpp
+557
-347
No files found.
common/base_screen.cpp
View file @
72d4b235
...
...
@@ -94,7 +94,7 @@ double BASE_SCREEN::GetScalingFactor() const
}
void
BASE_SCREEN
::
SetScalingFactor
(
double
aScale
)
void
BASE_SCREEN
::
SetScalingFactor
(
double
aScale
)
{
double
zoom
=
aScale
;
...
...
@@ -150,12 +150,10 @@ bool BASE_SCREEN::SetZoom( double coeff )
bool
BASE_SCREEN
::
SetNextZoom
()
{
size_t
i
;
if
(
m_ZoomList
.
IsEmpty
()
||
m_Zoom
>=
m_ZoomList
.
Last
()
)
return
false
;
for
(
i
=
0
;
i
<
m_ZoomList
.
GetCount
();
i
++
)
for
(
unsigned
i
=
0
;
i
<
m_ZoomList
.
GetCount
();
i
++
)
{
if
(
m_Zoom
<
m_ZoomList
[
i
]
)
{
...
...
pcbnew/legacy_plugin.h
View file @
72d4b235
...
...
@@ -4,7 +4,8 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 1992-2011 KiCad Developers, see change_log.txt for contributors.
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2012 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
...
...
@@ -59,8 +60,6 @@ struct FPL_CACHE;
*/
class
LEGACY_PLUGIN
:
public
PLUGIN
{
friend
struct
FPL_CACHE
;
public
:
//-----<PLUGIN IMPLEMENTATION>----------------------------------------------
...
...
@@ -272,6 +271,8 @@ protected:
/// we only cache one footprint library for now, this determines which one.
void
cacheLib
(
const
wxString
&
aLibraryPath
);
friend
struct
FPL_CACHE
;
};
#endif // LEGACY_PLUGIN_H_
polygon/math_for_graphics.cpp
View file @
72d4b235
This diff is collapsed.
Click to expand it.
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