# HG changeset patch # User insilmaril # Date 1216205174 0 # Node ID 12958f987bcf8ed9595994c5354643224757694e # Parent 192e1392ba6ada56dd1fac2b0eabb93e9ab42f17 Started to restructure for later use of Model/View diff -r 192e1392ba6a -r 12958f987bcf aboutdialog.cpp --- a/aboutdialog.cpp Wed Jul 16 10:44:44 2008 +0000 +++ b/aboutdialog.cpp Wed Jul 16 10:46:14 2008 +0000 @@ -54,10 +54,7 @@ " " "" "
  • Patches" diff -r 192e1392ba6a -r 12958f987bcf animpoint.cpp --- a/animpoint.cpp Wed Jul 16 10:44:44 2008 +0000 +++ b/animpoint.cpp Wed Jul 16 10:46:14 2008 +0000 @@ -88,7 +88,7 @@ uint AnimPoint::getTicks() { - return animTicks; + return (uint) animTicks; } void AnimPoint::setAnimated(bool b) @@ -110,15 +110,13 @@ { vector=QPointF(0,0); animated=false; + setX (destPos.x() ); + setY (destPos.y() ); return animated; } - setX (startPos.x() + vector.x()*sqrt(n/animTicks) ); setY (startPos.y() + vector.y()*sqrt(n/animTicks) ); - /* - setX (startPos.x() + vector.x()*(n/animTicks) ); - setY (startPos.y() + vector.y()*(n/animTicks) ); - */ + return animated; } diff -r 192e1392ba6a -r 12958f987bcf branchobj.cpp --- a/branchobj.cpp Wed Jul 16 10:44:44 2008 +0000 +++ b/branchobj.cpp Wed Jul 16 10:46:14 2008 +0000 @@ -21,7 +21,7 @@ BranchObj* BranchObj::itFirst=NULL; -BranchObj::BranchObj () :OrnamentedObj() +BranchObj::BranchObj () :OrnamentedObj() // FIXME needed at all? { // cout << "Const BranchObj ()\n"; setParObj (this); @@ -103,7 +103,7 @@ branch.clear(); for (int i=0; ibranch.size(); ++i) // Make deep copy of b - // Because addBranch again calls copy for the childs, + // Because addBranch again calls copy for the children, // Those will get a deep copy, too addBranch(other->branch.at(i) ); @@ -214,7 +214,7 @@ if (off==0) { // new parent is just a branch, link to it - QRectF t=o->getBBoxSizeWithChilds(); + QRectF t=o->getBBoxSizeWithChildren(); if (o->getLastBranch()) y=t.y() + t.height() ; else @@ -343,10 +343,10 @@ standardFlags->setVisibility(v); LinkableMapObj::setVisibility (v); - // Only change childs, if I am not scrolled + // Only change children, if I am not scrolled if (!scrolled && (depth < toDepth)) { - // Now go recursivly through all childs + // Now go recursivly through all children int i; for (i=0; isetVisibility (v,toDepth); @@ -370,9 +370,9 @@ // Overloaded from LinkableMapObj // BranchObj can use color of heading - if (mapEditor) + if (model) { - if (mapEditor->getMapLinkColorHint()==HeadingColor) + if (model->getMapLinkColorHint()==HeadingColor) LinkableMapObj::setLinkColor (heading->getColor() ); else LinkableMapObj::setLinkColor (); @@ -409,13 +409,13 @@ // no itLast, we are just beginning if (bo) { - // we have childs, return first one + // we have children, return first one itLast=this; return bo; } else { - // No childs, so there is no next + // No children, so there is no next itLast=this; return NULL; } @@ -426,12 +426,12 @@ { // We come from parent if (bo) { - // there are childs, go there + // there are children, go there itLast=this; return bo; } else - { // no childs, try to go up again + { // no children, try to go up again if (po) { // go back to parent and try to find next there @@ -450,17 +450,17 @@ } } - // We don't come from parent, but from brother or childs + // We don't come from parent, but from brother or children - // Try to find last child, where we came from, in my own childs + // Try to find last child, where we came from, in my own children bool searching=true; int i=0; while (i