Commit a674dd65 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Pcbnew: class DIMENSION: code cleaning

parent ea603c4d
Loading
Loading
Loading
Loading
+0 −0

File moved.

+199 −250

File changed.

Preview size limit exceeded, changes collapsed.

+38 −38
Original line number Original line Diff line number Diff line
@@ -44,20 +44,20 @@ class DIMENSION : public BOARD_ITEM
{
{
public:
public:
    int         m_Width;
    int         m_Width;
    wxPoint    m_Pos;
    int         m_Shape;        // / Currently always 0.
    int        m_Shape;         /// Current always 0.
    int         m_Unit;         // / 0 = inches, 1 = mm
    int         m_Unit;         // / 0 = inches, 1 = mm
    int         m_Value;        // / value of PCB dimensions.
    int         m_Value;        // / value of PCB dimensions.


    TEXTE_PCB   m_Text;
    TEXTE_PCB   m_Text;
    int        m_crossBarOx, m_crossBarOy, m_crossBarFx, m_crossBarFy;
    int        m_featureLineGOx, m_featureLineGOy, m_featureLineGFx, m_featureLineGFy;
    int        m_featureLineDOx, m_featureLineDOy, m_featureLineDFx, m_featureLineDFy;
    int        m_arrowD1Ox, m_arrowD1Oy, m_arrowD1Fx, m_arrowD1Fy;
    int        m_arrowD2Ox, m_arrowD2Oy, m_arrowD2Fx, m_arrowD2Fy;
    int        m_arrowG1Ox, m_arrowG1Oy, m_arrowG1Fx, m_arrowG1Fy;
    int        m_arrowG2Ox, m_arrowG2Oy, m_arrowG2Fx, m_arrowG2Fy;


// private: These member should be private. they are public only due to legacy code
    wxPoint     m_crossBarO, m_crossBarF;
    wxPoint     m_featureLineGO, m_featureLineGF;
    wxPoint     m_featureLineDO, m_featureLineDF;
    wxPoint     m_arrowD1O, m_arrowD1F;
    wxPoint     m_arrowD2O, m_arrowD2F;
    wxPoint     m_arrowG1O, m_arrowG1F;
    wxPoint     m_arrowG2O, m_arrowG2F;
public:
public:
    DIMENSION( BOARD_ITEM* aParent );
    DIMENSION( BOARD_ITEM* aParent );


@@ -65,7 +65,7 @@ public:


    ~DIMENSION();
    ~DIMENSION();


    const wxPoint& GetPosition() const      { return m_Pos; }
    const wxPoint&  GetPosition() const;


    void            SetPosition( const wxPoint& aPos ); // override, sets m_Text's position too
    void            SetPosition( const wxPoint& aPos ); // override, sets m_Text's position too


+19 −35

File changed.

Preview size limit exceeded, changes collapsed.

+28 −28

File changed.

Preview size limit exceeded, changes collapsed.

Loading