Commit 339a90e7 authored by CHARRAS's avatar CHARRAS
Browse files

Block commands now works with zones.

parent cfd09d02
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4,6 +4,13 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.

2008-jan-06 UPDATE  Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+pcbnew:
    Block commands now works with zones.
	Some code cleanning.


2008-Jan-5 UPDATE   Dick Hollenbeck <dick@softplc.com>
================================================================================
+pcbnew:
+14 −0
Original line number Diff line number Diff line
@@ -294,6 +294,20 @@ bool EDA_TextStruct::HitTest( const wxPoint& posref )
    return false;
}

/**
 * Function HitTest (overlayed)
 * tests if the given EDA_Rect intersect this object.
 * @param refArea the given EDA_Rect to test
 * @return bool - true if a hit, else false
 */
/*********************************************************/
bool    EDA_TextStruct::HitTest( EDA_Rect& refArea )
/*********************************************************/
{
	if( refArea.Inside( m_Pos ) )
		return true;
	return false;
}

/*******************************/
int EDA_TextStruct::Pitch()
+22 −0
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ enum SEARCH_RESULT {
class EDA_BaseStruct;
class WinEDA_DrawFrame;
class BOARD;
class EDA_Rect;

/**
 * Class INSPECTOR
@@ -254,6 +255,18 @@ public:
        return false;   // derived classes should override this function
    }

	/**
	 * Function HitTest (overlayed)
	 * tests if the given EDA_Rect intersect this object.
	 * For now, an ending point must be inside this rect.
	 * @param refArea : the given EDA_Rect
	 * @return bool - true if a hit, else false
	 */
    virtual bool    HitTest( EDA_Rect& refArea )
    {
        return false;   // derived classes should override this function
    }


    /**
     * Function IterateForward
@@ -418,6 +431,15 @@ public:
     */
    bool    HitTest( const wxPoint& ref_pos );

    /**
     * Function HitTest (overlayed)
     * tests if the given EDA_Rect intersect this object.
	 * For now, the anchor must be inside this rect.
     * @param refArea : the given EDA_Rect
     * @return bool - true if a hit, else false
     */
    bool    HitTest( EDA_Rect& refArea );

	/**
     * Function Len_Size
     * Return the text lenght in internal units
+9 −0
Original line number Diff line number Diff line
@@ -301,6 +301,15 @@ public:
     */
    bool    HitTest( const wxPoint& ref_pos );
    
    /**
     * Function HitTest (overlayed)
     * tests if the given EDA_Rect intersect this object.
	 * For now, an ending point must be inside this rect.
     * @param refPos the given EDA_Rect to test
     * @return bool - true if a hit, else false
     */
    bool    HitTest( EDA_Rect& refArea );

    /**
     * Function GetClass
     * returns the class name.
Loading