Commit 57c69b41 authored by Maciej Suminski's avatar Maciej Suminski

Continous mode for drawing tools (i.e. they do not finish after adding a single object).

parent a802ca87
......@@ -207,7 +207,7 @@ public:
///> Returns information about difference between current mouse cursor position and the place
///> 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
return m_mouseDelta;
......
......@@ -26,6 +26,7 @@
#include "class_board.h"
#include <wxPcbStruct.h>
#include <id.h>
#include <view/view_controls.h>
#include <pcbcommon.h>
#include <pcb_painter.h>
......@@ -464,6 +465,8 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent )
ctls->ShowCursor( false );
ctls->ForceCursorPosition( false );
getEditFrame<PCB_EDIT_FRAME>()->SetToolID( ID_NO_TOOL_SELECTED, wxCURSOR_DEFAULT, wxEmptyString );
return 0;
}
This diff is collapsed.
......@@ -116,7 +116,7 @@ public:
/**
* 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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment