Loading change_log.txt +7 −0 Original line number Original line Diff line number Diff line Loading @@ -4,6 +4,13 @@ Started 2007-June-11 Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with email address. 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> 2008-Jan-5 UPDATE Dick Hollenbeck <dick@softplc.com> ================================================================================ ================================================================================ +pcbnew: +pcbnew: Loading common/base_struct.cpp +14 −0 Original line number Original line Diff line number Diff line Loading @@ -294,6 +294,20 @@ bool EDA_TextStruct::HitTest( const wxPoint& posref ) return false; 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() int EDA_TextStruct::Pitch() Loading include/base_struct.h +22 −0 Original line number Original line Diff line number Diff line Loading @@ -89,6 +89,7 @@ enum SEARCH_RESULT { class EDA_BaseStruct; class EDA_BaseStruct; class WinEDA_DrawFrame; class WinEDA_DrawFrame; class BOARD; class BOARD; class EDA_Rect; /** /** * Class INSPECTOR * Class INSPECTOR Loading Loading @@ -254,6 +255,18 @@ public: return false; // derived classes should override this function 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 * Function IterateForward Loading Loading @@ -418,6 +431,15 @@ public: */ */ bool HitTest( const wxPoint& ref_pos ); 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 * Function Len_Size * Return the text lenght in internal units * Return the text lenght in internal units Loading include/pcbstruct.h +9 −0 Original line number Original line Diff line number Diff line Loading @@ -301,6 +301,15 @@ public: */ */ bool HitTest( const wxPoint& ref_pos ); 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 * Function GetClass * returns the class name. * returns the class name. Loading Loading
change_log.txt +7 −0 Original line number Original line Diff line number Diff line Loading @@ -4,6 +4,13 @@ Started 2007-June-11 Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with email address. 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> 2008-Jan-5 UPDATE Dick Hollenbeck <dick@softplc.com> ================================================================================ ================================================================================ +pcbnew: +pcbnew: Loading
common/base_struct.cpp +14 −0 Original line number Original line Diff line number Diff line Loading @@ -294,6 +294,20 @@ bool EDA_TextStruct::HitTest( const wxPoint& posref ) return false; 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() int EDA_TextStruct::Pitch() Loading
include/base_struct.h +22 −0 Original line number Original line Diff line number Diff line Loading @@ -89,6 +89,7 @@ enum SEARCH_RESULT { class EDA_BaseStruct; class EDA_BaseStruct; class WinEDA_DrawFrame; class WinEDA_DrawFrame; class BOARD; class BOARD; class EDA_Rect; /** /** * Class INSPECTOR * Class INSPECTOR Loading Loading @@ -254,6 +255,18 @@ public: return false; // derived classes should override this function 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 * Function IterateForward Loading Loading @@ -418,6 +431,15 @@ public: */ */ bool HitTest( const wxPoint& ref_pos ); 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 * Function Len_Size * Return the text lenght in internal units * Return the text lenght in internal units Loading
include/pcbstruct.h +9 −0 Original line number Original line Diff line number Diff line Loading @@ -301,6 +301,15 @@ public: */ */ bool HitTest( const wxPoint& ref_pos ); 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 * Function GetClass * returns the class name. * returns the class name. Loading