diff -r 1fc21685e3ea -r ab118b86bc54 mapeditor.cpp --- a/mapeditor.cpp Mon May 21 13:05:26 2007 +0000 +++ b/mapeditor.cpp Wed May 30 15:23:07 2007 +0000 @@ -1910,7 +1910,7 @@ blockSaveState=old; } -void MapEditor::paste() // FIXME no pasting of FIO ??? +void MapEditor::paste() { BranchObj *sel=xelection.getBranch(); if (sel) @@ -3193,6 +3193,13 @@ void MapEditor::setMapDefLinkColor(QColor c) { defLinkColor=c; + BranchObj *bo; + bo=mapCenter->first(); + while (bo) + { + bo->setLinkColor(); + bo=bo->next(); + } updateActions(); } @@ -3268,7 +3275,7 @@ QString("setMapDefLinkColor (\"%1\")").arg(getMapDefLinkColor().name()), mapCenter, QString("setMapDefLinkColor (\"%1\")").arg(col.name()), - QString("Set link color to %1").arg(col.name()) + QString("Set map link color to %1").arg(col.name()) ); setMapDefLinkColor( col ); } @@ -4218,7 +4225,17 @@ dst=NULL; if (xelection.type() == Selection::MapCenter ) - { // FIXME The MapCenter was moved, no savestate yet + { + // TODO: Check for problems if graphicsview is resized for + // undo/redo... + QString pold=qpointfToString(movingObj_orgPos); + QString pnow=qpointfToString(mapCenter->getAbsPos()); + saveState( + fo, + "move "+pold, + fo, + "move "+pnow, + QString("Move mapcenter %1 to position %2").arg(getName(mapCenter)).arg(pnow)); } if (xelection.type() == Selection::Branch ) @@ -4355,6 +4372,12 @@ BranchObj *sel=xelection.getBranch(); if (sel) { + foreach (QString format,event->mimeData()->formats()) + { + cout << "Dropped format: "< uris; if (event->mimeData()->hasImage()) {