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
d4d80120
Commit
d4d80120
authored
Sep 20, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cursor for the move tool
parent
2c03bf41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
move_tool.cpp
pcbnew/tools/move_tool.cpp
+8
-5
No files found.
pcbnew/tools/move_tool.cpp
View file @
d4d80120
...
...
@@ -73,11 +73,13 @@ int MOVE_TOOL::Main( TOOL_EVENT& aEvent )
VECTOR2D
dragPosition
;
bool
dragging
=
false
;
bool
restore
=
false
;
// Should items' state be restored when finishing the tool?
VIEW
*
view
=
m_toolMgr
->
GetView
();
VIEW
*
view
=
getView
();
VIEW_CONTROLS
*
controls
=
getViewControls
();
view
->
Add
(
&
m_items
);
getViewControls
()
->
SetSnapping
(
true
);
getViewControls
()
->
SetAutoPan
(
true
);
controls
->
ShowCursor
(
true
);
controls
->
SetSnapping
(
true
);
controls
->
SetAutoPan
(
true
);
// Main loop: keep receiving events
while
(
OPT_TOOL_EVENT
evt
=
Wait
()
)
...
...
@@ -163,8 +165,9 @@ int MOVE_TOOL::Main( TOOL_EVENT& aEvent )
m_itemsState
.
clear
();
m_items
.
Clear
();
view
->
Remove
(
&
m_items
);
getViewControls
()
->
SetSnapping
(
false
);
getViewControls
()
->
SetAutoPan
(
false
);
controls
->
ShowCursor
(
false
);
controls
->
SetSnapping
(
false
);
controls
->
SetAutoPan
(
false
);
return
0
;
}
...
...
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