gui_editactions.cpp

changeset 97
52bcca21579e
parent 96
2f175b3d8211
child 98
5dcc551f260a
--- a/gui_editactions.cpp	Wed Apr 10 19:26:14 2013 +0300
+++ b/gui_editactions.cpp	Thu Apr 11 01:35:30 2013 +0300
@@ -62,7 +62,7 @@
 		return;
 	
 	g_ForgeWindow->deleteSelection (&ulaIndices, &copies);
-	History::addEntry (new DeleteHistory (ulaIndices, copies));
+	History::addEntry (new DelHistory (ulaIndices, copies, DelHistory::Cut));
 }
 
 // =============================================================================
@@ -86,7 +86,7 @@
 		paCopies.push_back (obj->clone ());
 	}
 	
-	History::addEntry (new AdditionHistory (ulaIndices, paCopies));
+	History::addEntry (new AddHistory (ulaIndices, paCopies, AddHistory::Paste));
 	g_ForgeWindow->refresh ();
 }
 
@@ -100,7 +100,7 @@
 	g_ForgeWindow->deleteSelection (&ulaIndices, &copies);
 	
 	if (copies.size ())
-		History::addEntry (new DeleteHistory (ulaIndices, copies));
+		History::addEntry (new DelHistory (ulaIndices, copies));
 }
 
 // =============================================================================
@@ -295,7 +295,7 @@
 		}
 	}
 	
-	History::addEntry (new AdditionHistory (ulaIndices, paObjs));
+	History::addEntry (new AddHistory (ulaIndices, paObjs));
 	g_ForgeWindow->refresh ();
 }
 

mercurial