From e0c9f0ba3ff45fbf85baa96be1036be9b9a4366d Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 6 May 2009 13:11:03 +0000 Subject: [PATCH] * ./hurricane/src/hviewer : - Bug: In CellWidget, the drawRulers was copying an enlarged redrawArea into the Selection Plane causing the selection to deseapear gradually when slowly shifting. --- hurricane/src/hurricane/hurricane/Cell.h | 4 ---- hurricane/src/hviewer/CellViewer.cpp | 2 +- hurricane/src/hviewer/CellWidget.cpp | 1 + hurricane/src/hviewer/hurricane/viewer/CellWidget.h | 1 + 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/hurricane/src/hurricane/hurricane/Cell.h b/hurricane/src/hurricane/hurricane/Cell.h index bf537553..8214ecdb 100644 --- a/hurricane/src/hurricane/hurricane/Cell.h +++ b/hurricane/src/hurricane/hurricane/Cell.h @@ -60,8 +60,6 @@ typedef multimap SlaveEntityMap; class Cell : public Entity { // *********************** -# if !defined(__DOXYGEN_PROCESSOR__) - // Types // ***** @@ -212,8 +210,6 @@ class Cell : public Entity { public: void _insertSlice ( ExtensionSlice* ); public: void _removeSlice ( ExtensionSlice* ); -#endif - // Constructors // ************ diff --git a/hurricane/src/hviewer/CellViewer.cpp b/hurricane/src/hviewer/CellViewer.cpp index cb2901a7..4c370554 100644 --- a/hurricane/src/hviewer/CellViewer.cpp +++ b/hurricane/src/hviewer/CellViewer.cpp @@ -266,7 +266,7 @@ namespace Hurricane { connect ( _controllerAction , SIGNAL(triggered()) , this , SLOT(showController()) ); connect ( _cellWidget , SIGNAL(mousePositionChanged(const Point&)) - , _mousePosition , SLOT(setPosition(const Point&)) ); + , _mousePosition , SLOT (setPosition(const Point&)) ); connect ( _cellWidget , SIGNAL(selectionModeChanged()) , this , SLOT (changeSelectionMode ()) ); diff --git a/hurricane/src/hviewer/CellWidget.cpp b/hurricane/src/hviewer/CellWidget.cpp index 6b6e1b9b..6913e2df 100644 --- a/hurricane/src/hviewer/CellWidget.cpp +++ b/hurricane/src/hviewer/CellWidget.cpp @@ -1603,6 +1603,7 @@ namespace Hurricane { redrawArea.adjust ( -50, -50, 50, 50 ); Box redrawBox = displayToDbuBox ( redrawArea ); + redrawArea.adjust ( 50, 50, -50, -50 ); RulerSet::iterator iruler = _state->getRulers().begin(); RulerSet::iterator end = _state->getRulers().end(); diff --git a/hurricane/src/hviewer/hurricane/viewer/CellWidget.h b/hurricane/src/hviewer/hurricane/viewer/CellWidget.h index 95c8ce7c..3faee078 100644 --- a/hurricane/src/hviewer/hurricane/viewer/CellWidget.h +++ b/hurricane/src/hviewer/hurricane/viewer/CellWidget.h @@ -1223,6 +1223,7 @@ namespace Hurricane { inline void CellWidget::setRubberShape ( RubberShape shape ) { _state->setRubberShape ( shape ); + _redrawManager.refresh (); emit queryFilterChanged (); }