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

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

parent a802ca87
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
+3 −0
Original line number Original line Diff line number Diff line
@@ -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 )
    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;
}
}
+282 −173

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Original line Diff line number Diff line
@@ -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 );