diff -r 30b22f7bd009 -r d442a66e9121 linkablemapobj.cpp --- a/linkablemapobj.cpp Mon Sep 12 19:52:51 2005 +0000 +++ b/linkablemapobj.cpp Thu Sep 22 12:14:23 2005 +0000 @@ -62,6 +62,7 @@ void LinkableMapObj::init () { depth=-1; + mapEditor=NULL; childObj=NULL; parObj=NULL; parObjTmpBuf=NULL; @@ -126,8 +127,16 @@ { } +bool LinkableMapObj::hasParObjTmp() +{ + if (parObjTmpBuf) return true; + return false; +} + LinkStyle LinkableMapObj::getDefLinkStyle () { + if (!mapEditor) return StyleUndef; + LinkStyle ls=mapEditor->getLinkStyle(); switch (ls) { @@ -204,8 +213,7 @@ else p->hide(); pa0.resize (3); - // TODO - // a bit awkward: draw the lines additionally to polygon, to avoid + // TODO a bit awkward: draw the lines additionally to polygon, to avoid // missing pixels, when polygon is extremly flat l = new QCanvasLine(canvas); l->setPen( QPen(linkcolor, 1) ); @@ -227,8 +235,7 @@ pa1.resize (arcsegs+1); pa2.resize (arcsegs+1); - // TODO - // a bit awkward: draw the lines additionally + // TODO a bit awkward: draw the lines additionally // to polygon, to avoid missing pixels, // if polygon is extremly flat for (i=0;igetDefLinkColor()); + if (mapEditor) + setLinkColor (mapEditor->getDefLinkColor()); } void LinkableMapObj::setLinkColor(QColor col) @@ -650,8 +653,8 @@ void LinkableMapObj::alignRelativeTo (QPoint ref) { + // TODO testing, seems not to be used right now... cout << "LMO::alignRelTo ref="<