vymmodel.cpp
changeset 722 462d39502273
parent 721 12958f987bcf
child 723 11f9124c1cca
     1.1 --- a/vymmodel.cpp	Wed Jul 16 10:46:14 2008 +0000
     1.2 +++ b/vymmodel.cpp	Wed Jul 16 11:56:44 2008 +0000
     1.3 @@ -1421,10 +1421,6 @@
     1.4  	return NULL;
     1.5  }
     1.6  
     1.7 -void VymModel::removeSelection()
     1.8 -{
     1.9 -}
    1.10 -
    1.11  QString VymModel::saveToDir (const QString &tmpdir,const QString &prefix, int verbose, const QPointF &offset)
    1.12  {
    1.13      QString s;
    1.14 @@ -2134,6 +2130,11 @@
    1.15  	}
    1.16  	if (bo && selection.type()==Selection::Branch)
    1.17  	{
    1.18 +		//FIXME need to check if any animObj is part of Branch, remove from animated obj list then
    1.19 +
    1.20 +		// missing!!!!
    1.21 +
    1.22 +
    1.23  		BranchObj* par=(BranchObj*)bo->getParObj();
    1.24  		selection.unselect();
    1.25  		saveStateRemovingPart (bo, QString ("Delete %1").arg(getObjectName(bo)));
    1.26 @@ -4063,6 +4064,13 @@
    1.27  	}
    1.28  }
    1.29  
    1.30 +void VymModel::stopAnimation (MapObj *mo)
    1.31 +{
    1.32 +	int i=animObjList.indexOf(mo);
    1.33 +    if (i>=0)
    1.34 +		animObjList.removeAt (i);
    1.35 +}
    1.36 +
    1.37  void VymModel::sendSelection()
    1.38  {
    1.39  	if (netstate!=Server) return;