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
2b62a852
Commit
2b62a852
authored
Feb 14, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring: made VIEW, VIEW_CONTROLS, BOARD and PCB_EDIT_FRAME fields in DRAWING_TOOL.
parent
597e98db
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
146 additions
and
155 deletions
+146
-155
drawing_tool.cpp
pcbnew/tools/drawing_tool.cpp
+132
-153
drawing_tool.h
pcbnew/tools/drawing_tool.h
+14
-2
No files found.
pcbnew/tools/drawing_tool.cpp
View file @
2b62a852
This diff is collapsed.
Click to expand it.
pcbnew/tools/drawing_tool.h
View file @
2b62a852
...
...
@@ -26,7 +26,14 @@
#define __DRAWING_TOOL_H
#include <tool/tool_interactive.h>
#include <class_board_item.h>
namespace
KIGFX
{
class
VIEW
;
class
VIEW_CONTROLS
;
}
class
BOARD
;
class
PCB_EDIT_FRAME
;
/**
* Class DRAWING_TOOL
...
...
@@ -69,7 +76,7 @@ public:
private
:
///> Starts drawing a selected shape.
int
draw
(
STROKE_T
aShape
);
int
draw
(
int
aShape
);
///> Sets up handlers for various events.
void
setTransitions
();
...
...
@@ -77,6 +84,11 @@ private:
///> Should drawing be stopped after drawing one object or should it continue with another one.
bool
m_continous
;
KIGFX
::
VIEW
*
m_view
;
KIGFX
::
VIEW_CONTROLS
*
m_controls
;
BOARD
*
m_board
;
PCB_EDIT_FRAME
*
m_frame
;
// How does line width change after one -/+ key press.
static
const
int
WIDTH_STEP
=
100000
;
};
...
...
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