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
57c69b41
Commit
57c69b41
authored
Feb 19, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Continous mode for drawing tools (i.e. they do not finish after adding a single object).
parent
a802ca87
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
287 additions
and
175 deletions
+287
-175
tool_event.h
include/tool/tool_event.h
+1
-1
router_tool.cpp
pcbnew/router/router_tool.cpp
+3
-0
drawing_tool.cpp
pcbnew/tools/drawing_tool.cpp
+282
-173
drawing_tool.h
pcbnew/tools/drawing_tool.h
+1
-1
No files found.
include/tool/tool_event.h
View file @
57c69b41
...
@@ -207,7 +207,7 @@ public:
...
@@ -207,7 +207,7 @@ public:
///> Returns information about difference between current mouse cursor position and the place
///> Returns information about difference between current mouse cursor position and the place
///> where dragging has started.
///> where dragging has started.
const
VECTOR2D
Delta
()
const
const
VECTOR2D
&
Delta
()
const
{
{
assert
(
m_category
==
TC_MOUSE
);
// this should be used only with mouse events
assert
(
m_category
==
TC_MOUSE
);
// this should be used only with mouse events
return
m_mouseDelta
;
return
m_mouseDelta
;
...
...
pcbnew/router/router_tool.cpp
View file @
57c69b41
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include "class_board.h"
#include "class_board.h"
#include <wxPcbStruct.h>
#include <wxPcbStruct.h>
#include <id.h>
#include <view/view_controls.h>
#include <view/view_controls.h>
#include <pcbcommon.h>
#include <pcbcommon.h>
#include <pcb_painter.h>
#include <pcb_painter.h>
...
@@ -464,6 +465,8 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent )
...
@@ -464,6 +465,8 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent )
ctls
->
ShowCursor
(
false
);
ctls
->
ShowCursor
(
false
);
ctls
->
ForceCursorPosition
(
false
);
ctls
->
ForceCursorPosition
(
false
);
getEditFrame
<
PCB_EDIT_FRAME
>
()
->
SetToolID
(
ID_NO_TOOL_SELECTED
,
wxCURSOR_DEFAULT
,
wxEmptyString
);
return
0
;
return
0
;
}
}
pcbnew/tools/drawing_tool.cpp
View file @
57c69b41
This diff is collapsed.
Click to expand it.
pcbnew/tools/drawing_tool.h
View file @
57c69b41
...
@@ -116,7 +116,7 @@ public:
...
@@ -116,7 +116,7 @@ public:
/**
/**
* Function PlaceModule()
* Function PlaceModule()
* Displays a dialog to selected a module to be added and then allows user to set its position.
.
* Displays a dialog to selected a module to be added and then allows user to set its position.
*/
*/
int
PlaceModule
(
TOOL_EVENT
&
aEvent
);
int
PlaceModule
(
TOOL_EVENT
&
aEvent
);
...
...
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