1.1 --- a/mapeditor.cpp Mon May 21 13:05:26 2007 +0000
1.2 +++ b/mapeditor.cpp Wed May 30 15:23:07 2007 +0000
1.3 @@ -1910,7 +1910,7 @@
1.4 blockSaveState=old;
1.5 }
1.6
1.7 -void MapEditor::paste() // FIXME no pasting of FIO ???
1.8 +void MapEditor::paste()
1.9 {
1.10 BranchObj *sel=xelection.getBranch();
1.11 if (sel)
1.12 @@ -3193,6 +3193,13 @@
1.13 void MapEditor::setMapDefLinkColor(QColor c)
1.14 {
1.15 defLinkColor=c;
1.16 + BranchObj *bo;
1.17 + bo=mapCenter->first();
1.18 + while (bo)
1.19 + {
1.20 + bo->setLinkColor();
1.21 + bo=bo->next();
1.22 + }
1.23 updateActions();
1.24 }
1.25
1.26 @@ -3268,7 +3275,7 @@
1.27 QString("setMapDefLinkColor (\"%1\")").arg(getMapDefLinkColor().name()),
1.28 mapCenter,
1.29 QString("setMapDefLinkColor (\"%1\")").arg(col.name()),
1.30 - QString("Set link color to %1").arg(col.name())
1.31 + QString("Set map link color to %1").arg(col.name())
1.32 );
1.33 setMapDefLinkColor( col );
1.34 }
1.35 @@ -4218,7 +4225,17 @@
1.36 dst=NULL;
1.37
1.38 if (xelection.type() == Selection::MapCenter )
1.39 - { // FIXME The MapCenter was moved, no savestate yet
1.40 + {
1.41 + // TODO: Check for problems if graphicsview is resized for
1.42 + // undo/redo...
1.43 + QString pold=qpointfToString(movingObj_orgPos);
1.44 + QString pnow=qpointfToString(mapCenter->getAbsPos());
1.45 + saveState(
1.46 + fo,
1.47 + "move "+pold,
1.48 + fo,
1.49 + "move "+pnow,
1.50 + QString("Move mapcenter %1 to position %2").arg(getName(mapCenter)).arg(pnow));
1.51 }
1.52
1.53 if (xelection.type() == Selection::Branch )
1.54 @@ -4355,6 +4372,12 @@
1.55 BranchObj *sel=xelection.getBranch();
1.56 if (sel)
1.57 {
1.58 + foreach (QString format,event->mimeData()->formats())
1.59 + {
1.60 + cout << "Dropped format: "<<format.ascii()<<endl;
1.61 + }
1.62 +
1.63 +
1.64 QList <QUrl> uris;
1.65 if (event->mimeData()->hasImage())
1.66 {