Commit b7d43776 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Refactoring: zones and keepout areas are drawn using the same function.

parent 2b62a852
Loading
Loading
Loading
Loading
+246 −353

File changed.

Preview size limit exceeded, changes collapsed.

+6 −1
Original line number Original line Diff line number Diff line
@@ -75,9 +75,14 @@ public:
    int PlaceModule( TOOL_EVENT& aEvent );
    int PlaceModule( TOOL_EVENT& aEvent );


private:
private:
    ///> Starts drawing a selected shape.
    ///> Starts drawing a selected shape (i.e. DRAWSEGMENT).
    ///> @param aShape is the type of created shape (@see STROKE_T).
    int draw( int aShape );
    int draw( int aShape );


    ///> Draws a polygon, that is added as a zone or a keepout area.
    ///> @param aKeepout decides if the drawn polygon is a zone or a keepout area.
    int drawZone( bool aKeepout );

    ///> Sets up handlers for various events.
    ///> Sets up handlers for various events.
    void setTransitions();
    void setTransitions();