diff -r 192e1392ba6a -r 12958f987bcf selection.cpp --- a/selection.cpp Wed Jul 16 10:44:44 2008 +0000 +++ b/selection.cpp Wed Jul 16 10:46:14 2008 +0000 @@ -13,6 +13,7 @@ Selection::Selection() { color= QColor(255,255,0); + blocked=false; } Selection::~Selection() @@ -37,7 +38,7 @@ lastSelectList.clear(); } -void Selection::update() +void Selection::update() // FIXME this needs to be adapted to several views { QRectF bbox; int w=0; @@ -120,6 +121,21 @@ } } +bool Selection::isBlocked() +{ + return blocked; +} + +void Selection::block() +{ + blocked=true; +} + +void Selection::unblock() +{ + blocked=false; +} + bool Selection::isEmpty() { return selectList.isEmpty();