1.1 --- a/mapeditor.cpp Mon May 15 07:32:11 2006 +0000
1.2 +++ b/mapeditor.cpp Thu Jul 13 08:40:58 2006 +0000
1.3 @@ -321,6 +321,7 @@
1.4 {
1.5 mapCenter->moveAllBy(dx,dy);
1.6 mapCenter->reposition();
1.7 +// mapCenter->positionBBox(); // To move float
1.8
1.9 // scroll the view (in order to not move map on screen)
1.10 scrollBy (dx,dy);
1.11 @@ -2316,7 +2317,7 @@
1.12 {
1.13 BranchObj *bo=(BranchObj*)selection;
1.14 QString url= "https://bugzilla.novell.com/show_bug.cgi?id="+bo->getHeading();
1.15 - saveState("setURL (\""+bo->getURL()+"\")","setURL (\""+url+"\")",QString("Use heading of %1 as link to Bugzilla").arg(getName(bo)));
1.16 + saveState("setURL (\""+bo->getURL()+"\")","setURL (\""+url+"\")",QString("Use heading of %1 as link to Novell Bugzilla").arg(getName(bo)));
1.17 bo->setURL (url);
1.18 updateActions();
1.19 }
1.20 @@ -2438,7 +2439,7 @@
1.21 {
1.22 if (selection && (typeid(*selection) == typeid(BranchObj) ))
1.23 {
1.24 - saveState(selection->getParObj(), QString("Remove childs of branch").arg(getName(selection)));
1.25 + saveState(selection->getParObj(), QString("Remove childs of branch %1").arg(getName(selection)));
1.26 ((BranchObj*)selection)->removeChilds();
1.27 mapCenter->reposition();
1.28 }
1.29 @@ -3073,6 +3074,9 @@
1.30 {
1.31 cout << "MapEditor::testFunction() called\n";
1.32
1.33 + mapCenter->positionBBox();
1.34 + return;
1.35 +
1.36 WarningDialog dia;
1.37 dia.setCancelButton (true);
1.38 dia.setText("This is a longer \nWarning");
1.39 @@ -3425,14 +3429,6 @@
1.40 } else
1.41 {
1.42 lmosel->unsetParObjTmp();
1.43 - /* FIXME not needed anymore?
1.44 - if (lmo &&(lmo==selection))
1.45 - // Could link to myself (happens sometimes...)
1.46 - lmosel->unsetParObjTmp();
1.47 - if (!lmo)
1.48 - // no Obj under selection, go back to original Parent
1.49 - lmosel->unsetParObjTmp();
1.50 - */
1.51 }
1.52 } // depth>0
1.53
1.54 @@ -3524,8 +3520,7 @@
1.55 dst=mapCenter->findMapObj(inverseWorldMatrix().map(e->pos() ),
1.56 ((LinkableMapObj*)selection) );
1.57
1.58 - if (dst &&
1.59 - (typeid(*dst)!=typeid(BranchObj)&&typeid(*dst)!=typeid(MapCenterObj)))
1.60 + if (dst && (typeid(*dst)!=typeid(BranchObj) && typeid(*dst)!=typeid(MapCenterObj)))
1.61 dst=NULL;
1.62
1.63 // Now check, if we have been moving a branch