selection.cpp
changeset 729 7ddbe3fa34a1
parent 728 a8a98a94899a
child 732 b77b56f707f1
     1.1 --- a/selection.cpp	Tue Nov 04 12:09:10 2008 +0000
     1.2 +++ b/selection.cpp	Mon Dec 08 16:57:33 2008 +0000
     1.3 @@ -36,23 +36,23 @@
     1.4  	lastSelectList.clear();
     1.5  }
     1.6  
     1.7 -void Selection::update() // TODO this needs to be adapted to several views
     1.8 +
     1.9 +void Selection::update() // FIXME VM emit signal in VM instead
    1.10  {
    1.11 +/*
    1.12  	QRectF bbox;
    1.13  	//int w=0;
    1.14  	for (int i=0; i< selectList.count(); ++i) 
    1.15  	{
    1.16  		bbox=selectList.at(i)->getBBox();
    1.17 -		/* FIXME VM move to MapEditor
    1.18  		selboxList.at(i)->setRect (
    1.19  			bbox.x()-w,bbox.y()-w, 
    1.20  			bbox.width()+2*w, bbox.height()+2*w);
    1.21  		selboxList.at(i)->setPen (color);	
    1.22  		selboxList.at(i)->setBrush (color);	
    1.23 -		*/
    1.24  	}	
    1.25 +*/
    1.26  }
    1.27 -
    1.28  bool Selection::select(LinkableMapObj *lmo)	// TODO no multiselections yet
    1.29  {
    1.30  	if (!selectList.isEmpty()) unselect();
    1.31 @@ -203,7 +203,8 @@
    1.32  		return NULL;
    1.33  }
    1.34  
    1.35 -QString Selection::getSelectString()// TODO no multiselections yet
    1.36 +QString Selection::getSelectString() // FIXME VM this is also in VM ?! clean up here...
    1.37 +// TODO no multiselections yet
    1.38  {
    1.39  	if (selectList.count()==1)
    1.40  	{