diff --git a/hurricane/src/hurricane/Contact.cpp b/hurricane/src/hurricane/Contact.cpp index 393a24ea..cdcc7e7c 100644 --- a/hurricane/src/hurricane/Contact.cpp +++ b/hurricane/src/hurricane/Contact.cpp @@ -10,7 +10,7 @@ #include "hurricane/BasicLayer.h" #include "hurricane/Plug.h" #include "hurricane/Error.h" -# include "hurricane/Slot.h" +#include "hurricane/Slot.h" namespace Hurricane { diff --git a/hurricane/src/hurricane/Pad.cpp b/hurricane/src/hurricane/Pad.cpp index 82c59610..d1354feb 100644 --- a/hurricane/src/hurricane/Pad.cpp +++ b/hurricane/src/hurricane/Pad.cpp @@ -81,6 +81,18 @@ void Pad::translate(const DbU::Unit& dx, const DbU::Unit& dy) } } +void Pad::setLayer(const Layer* layer) +// *********************************** +{ + if (!layer) + throw Error("Can't set layer : null layer"); + + if (layer != _layer) { + invalidate(false); + _layer = layer; + } +} + void Pad::setBoundingBox(const Box& boundingBox) // ********************************************* { diff --git a/hurricane/src/hurricane/hurricane/Net.h b/hurricane/src/hurricane/hurricane/Net.h index d71110e2..26b75d6f 100644 --- a/hurricane/src/hurricane/hurricane/Net.h +++ b/hurricane/src/hurricane/hurricane/Net.h @@ -281,8 +281,8 @@ inline Hurricane::Record* getRecord INSPECTOR_P_SUPPORT(Hurricane::Net); INSPECTOR_P_SUPPORT(Hurricane::Net::ComponentSet); INSPECTOR_P_SUPPORT(Hurricane::Net::RubberSet); -INSPECTOR_PV_SUPPORT(Hurricane::Net::Type); -INSPECTOR_PV_SUPPORT(Hurricane::Net::Direction); +INSPECTOR_P_SUPPORT(Hurricane::Net::Type); +INSPECTOR_P_SUPPORT(Hurricane::Net::Direction); #endif // HURRICANE_NET diff --git a/hurricane/src/hurricane/hurricane/Pad.h b/hurricane/src/hurricane/hurricane/Pad.h index 8ec2c089..6d38503b 100644 --- a/hurricane/src/hurricane/hurricane/Pad.h +++ b/hurricane/src/hurricane/hurricane/Pad.h @@ -53,6 +53,7 @@ class Pad : public Component { // Updators // ******** + public: void setLayer(const Layer* layer); public: virtual void translate(const DbU::Unit& dx, const DbU::Unit& dy); public: void setBoundingBox(const Box& boundingBox);