vymmodel.cpp
changeset 725 7ea31701156e
parent 723 11f9124c1cca
child 726 7f43b93242aa
     1.1 --- a/vymmodel.cpp	Mon Aug 04 13:35:54 2008 +0000
     1.2 +++ b/vymmodel.cpp	Tue Aug 05 07:36:53 2008 +0000
     1.3 @@ -118,6 +118,9 @@
     1.4  	itFind=NULL;				
     1.5  	EOFind=false;
     1.6  
     1.7 +	// TreeModel
     1.8 +	treeModel=new TreeModel;
     1.9 +
    1.10  	// animations
    1.11  	animationUse=settings.readBoolEntry("/animation/use",false);
    1.12  	animationTicks=settings.readNumEntry("/animation/ticks",10);
    1.13 @@ -161,6 +164,11 @@
    1.14  	return mapEditor;
    1.15  }
    1.16  
    1.17 +TreeModel* VymModel::getTreeModel()
    1.18 +{
    1.19 +	return treeModel;
    1.20 +}
    1.21 +
    1.22  bool VymModel::isRepositionBlocked()
    1.23  {
    1.24  	return blockReposition;
    1.25 @@ -1486,6 +1494,7 @@
    1.26  	}
    1.27  }
    1.28  
    1.29 +/* FIXME delete this
    1.30  QString VymModel::getHeading(bool &ok, QPoint &p)
    1.31  {
    1.32  	BranchObj *bo=selection.getBranch();
    1.33 @@ -1498,7 +1507,7 @@
    1.34  	ok=false;
    1.35  	return QString();
    1.36  }
    1.37 -
    1.38 +*/
    1.39  
    1.40  void VymModel::setHeadingInt(const QString &s)
    1.41  {