Commit 7055a2bc authored by CHARRAS's avatar CHARRAS
Browse files

zone outlines edition: added drag outline edge

parent a60cbb91
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ bool SnapPoint2( const wxPoint& PosRef, int SearchMask,

            switch( STRUCT->m_Orient )
            {
            case 0:             /* HORIZONTAL */
            case 0:             /* HORIZONTAL Left justified */
                x2 += dx; y2 -= dy;
                break;

@@ -359,12 +359,12 @@ bool SnapPoint2( const wxPoint& PosRef, int SearchMask,
                x2 -= dy; y2 -= dx;
                break;

            case 2:             /* horizontal inverse */
                x2 -= dx; y2 += dy;
            case 2:             /* horizontal  Right justified  */
                x2 -= dx; y2 -= dy;
                break;

            case 3:             /* vertical DOWN */
                x2 += dy; y2 += dx;
                x2 -= dy; y2 += dx;
                break;
            }

@@ -571,7 +571,7 @@ bool DrawStructInBox( int x1, int y1, int x2, int y2,

        switch( STRUCT->m_Orient )
        {
        case 0:             /* HORIZONTAL */
        case 0:             /* HORIZONTAL  Left justified */
            xt2 += dx; yt2 -= dy;
            break;

@@ -579,12 +579,12 @@ bool DrawStructInBox( int x1, int y1, int x2, int y2,
            xt2 -= dy; yt2 -= dx;
            break;

        case 2:             /* horizontal inverse */
            xt2 -= dx; yt2 += dy;
        case 2:             /* horizontal  Right justified  */
            xt2 -= dx; yt2 -= dy;
            break;

        case 3:             /* vertical DOWN */
            xt2 += dy; yt2 += dx;
            xt2 -= dy; yt2 += dx;
            break;
        }

+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@

COMMON_GLOBL wxString g_BuildVersion
#ifdef EDA_BASE
	(wxT("(2008-01-22)"))
	(wxT("(2008-02-01)"))
#endif
;

+2 −2
Original line number Diff line number Diff line
@@ -564,8 +564,8 @@ enum main_id {
	ID_POPUP_PCB_DELETE_ZONE_CUTOUT,
	ID_POPUP_PCB_MOVE_ZONE_OUTLINES,
	ID_POPUP_PCB_PLACE_ZONE_OUTLINES,
	ID_POPUP_ZONE_UNUSED1,
	ID_POPUP_ZONE_UNUSED2,
	ID_POPUP_PCB_DRAG_ZONE_OUTLINE_SEGMENT,
	ID_POPUP_PCB_PLACE_DRAGGED_ZONE_OUTLINE_SEGMENT,
	ID_POPUP_ZONE_UNUSED3,
	ID_POPUP_ZONE_UNUSED4,

+8 −0
Original line number Diff line number Diff line
@@ -560,6 +560,14 @@ public:
                                                int             corner_id,
                                                bool            IsNewCorner );

    /**
     * Function Start_Move_Zone_Corner
     * Prepares a drag edge in an existing zone outline,
     */
    void                Start_Move_Zone_Drag_Outline_Edge( wxDC*           DC,
                                                ZONE_CONTAINER* zone_container,
                                                int             corner_id );

	/**
	 * Function End_Move_Zone_Corner_Or_Outlines
	 * Terminates a move corner in a zone outline, or a move zone outlines
+549 B (138 KiB)

File changed.

No diff preview for this file type.

Loading