Commit aac10106 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

more eagle_plugin work

parent cb210042
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1340,7 +1340,7 @@ public:
    void ShowTargetOptionsDialog( PCB_TARGET* aTarget, wxDC* DC );
    void ShowTargetOptionsDialog( PCB_TARGET* aTarget, wxDC* DC );


    // Graphic segments type DRAWSEGMENT handling:
    // Graphic segments type DRAWSEGMENT handling:
    DRAWSEGMENT* Begin_DrawSegment( DRAWSEGMENT* Segment, int shape, wxDC* DC );
    DRAWSEGMENT* Begin_DrawSegment( DRAWSEGMENT* Segment, STROKE_T shape, wxDC* DC );
    void End_Edge( DRAWSEGMENT* Segment, wxDC* DC );
    void End_Edge( DRAWSEGMENT* Segment, wxDC* DC );
    void Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC );
    void Delete_Segment_Edge( DRAWSEGMENT* Segment, wxDC* DC );
    void Delete_Drawings_All_Layer( int aLayer );
    void Delete_Drawings_All_Layer( int aLayer );
+45 −35
Original line number Original line Diff line number Diff line
@@ -124,6 +124,10 @@ const wxPoint DRAWSEGMENT::GetArcEnd() const
        // m_Start is the arc centre
        // m_Start is the arc centre
        endPoint  = m_End;         // m_End = start point of arc
        endPoint  = m_End;         // m_End = start point of arc
        RotatePoint( &endPoint, m_Start, -m_Angle );
        RotatePoint( &endPoint, m_Start, -m_Angle );
        break;

    default:
        ;
    }
    }


    return endPoint;   // after rotation, the end of the arc.
    return endPoint;   // after rotation, the end of the arc.
@@ -429,8 +433,11 @@ EDA_RECT DRAWSEGMENT::GetBoundingBox() const
            }
            }


            bbox.SetEnd( p_end );
            bbox.SetEnd( p_end );
            break;
        }
        }
        break;

    default:
        ;
    }
    }


    bbox.Inflate( ((m_Width+1) / 2) + 1 );
    bbox.Inflate( ((m_Width+1) / 2) + 1 );
@@ -520,6 +527,9 @@ bool DRAWSEGMENT::HitTest( const EDA_RECT& aRect ) const
        if( aRect.Contains( GetEnd() ) )
        if( aRect.Contains( GetEnd() ) )
            return true;
            return true;
        break;
        break;

    default:
        ;
    }
    }
    return false;
    return false;
}
}
+14 −14
Original line number Original line Diff line number Diff line
@@ -47,7 +47,7 @@ protected:
    wxPoint     m_Start;        ///< Line start point or Circle and Arc center
    wxPoint     m_Start;        ///< Line start point or Circle and Arc center
    wxPoint     m_End;          ///< Line end point or circle and arc start point
    wxPoint     m_End;          ///< Line end point or circle and arc start point


    int     m_Shape;            ///< Shape: line, Circle, Arc
    STROKE_T    m_Shape;        ///< Shape: line, Circle, Arc
    int         m_Type;         ///< Used in complex associations ( Dimensions.. )
    int         m_Type;         ///< Used in complex associations ( Dimensions.. )
    double      m_Angle;        ///< Used only for Arcs: Arc angle in 1/10 deg
    double      m_Angle;        ///< Used only for Arcs: Arc angle in 1/10 deg
    wxPoint     m_BezierC1;     ///< Bezier Control Point 1
    wxPoint     m_BezierC1;     ///< Bezier Control Point 1
@@ -83,8 +83,8 @@ public:
    void SetType( int aType )                       { m_Type = aType; }
    void SetType( int aType )                       { m_Type = aType; }
    int GetType() const                             { return m_Type; }
    int GetType() const                             { return m_Type; }


    void SetShape( int aShape )             { m_Shape = aShape; }
    void SetShape( STROKE_T aShape )                { m_Shape = aShape; }
    int GetShape() const                    { return m_Shape; }
    STROKE_T GetShape() const                       { return m_Shape; }


    void SetBezControl1( const wxPoint& aPoint )    { m_BezierC1 = aPoint; }
    void SetBezControl1( const wxPoint& aPoint )    { m_BezierC1 = aPoint; }
    const wxPoint& GetBezControl1() const           { return m_BezierC1; }
    const wxPoint& GetBezControl1() const           { return m_BezierC1; }
+5 −0
Original line number Original line Diff line number Diff line
@@ -294,6 +294,11 @@ public:
        m_Value->m_Text = aValue;
        m_Value->m_Text = aValue;
    }
    }


    /// read/write accessors:
    TEXTE_MODULE& Value()       { return *m_Value; }
    TEXTE_MODULE& Reference()   { return *m_Reference; }


    /**
    /**
     * Function FindPadByName
     * Function FindPadByName
     * returns a D_PAD* with a matching name.  Note that names may not be
     * returns a D_PAD* with a matching name.  Note that names may not be
+556 −27

File changed.

Preview size limit exceeded, changes collapsed.

Loading