From 0107042e04e00c9f6ead13c5f4c978a537b74e02 Mon Sep 17 00:00:00 2001 From: Damien Dupuis Date: Mon, 26 Oct 2009 12:15:47 +0000 Subject: [PATCH] ADDS - setRealSnapGridStep on CellWidget useful to set snapGridStep to DbU::grid(1.0) when I want to debug layout (misalignment) --- hurricane/src/hviewer/hurricane/viewer/CellWidget.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hurricane/src/hviewer/hurricane/viewer/CellWidget.h b/hurricane/src/hviewer/hurricane/viewer/CellWidget.h index ece12979..54775535 100644 --- a/hurricane/src/hviewer/hurricane/viewer/CellWidget.h +++ b/hurricane/src/hviewer/hurricane/viewer/CellWidget.h @@ -141,6 +141,7 @@ namespace Hurricane { inline Command* getActiveCommand () const; inline void resetActiveCommand (); inline void setCursorStep ( DbU::Unit ); + inline void setRealSnapGridStep ( DbU::Unit step ); inline bool realMode () const; inline bool symbolicMode () const; inline bool showBoundaries () const; @@ -1052,6 +1053,10 @@ namespace Hurricane { { _state->setCursorStep(step); } + inline void CellWidget::setRealSnapGridStep ( DbU::Unit step ) + { DbU::setRealSnapGridStep(step); } + + inline shared_ptr& CellWidget::getState () { _state->setTopLeft ( getTopLeft() );