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
b7d43776
Commit
b7d43776
authored
Feb 14, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring: zones and keepout areas are drawn using the same function.
parent
2b62a852
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
252 additions
and
354 deletions
+252
-354
drawing_tool.cpp
pcbnew/tools/drawing_tool.cpp
+246
-353
drawing_tool.h
pcbnew/tools/drawing_tool.h
+6
-1
No files found.
pcbnew/tools/drawing_tool.cpp
View file @
b7d43776
This diff is collapsed.
Click to expand it.
pcbnew/tools/drawing_tool.h
View file @
b7d43776
...
@@ -75,9 +75,14 @@ public:
...
@@ -75,9 +75,14 @@ public:
int
PlaceModule
(
TOOL_EVENT
&
aEvent
);
int
PlaceModule
(
TOOL_EVENT
&
aEvent
);
private
:
private
:
///> Starts drawing a selected shape.
///> Starts drawing a selected shape (i.e. DRAWSEGMENT).
///> @param aShape is the type of created shape (@see STROKE_T).
int
draw
(
int
aShape
);
int
draw
(
int
aShape
);
///> Draws a polygon, that is added as a zone or a keepout area.
///> @param aKeepout decides if the drawn polygon is a zone or a keepout area.
int
drawZone
(
bool
aKeepout
);
///> Sets up handlers for various events.
///> Sets up handlers for various events.
void
setTransitions
();
void
setTransitions
();
...
...
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