[Supertux-Commit] r5763 - in trunk/supertux-editor/supertux-editor: . Editors
mmlosh at millhouse.dreamhost.com
mmlosh at millhouse.dreamhost.com
Tue Sep 2 07:20:49 PDT 2008
Author: mmlosh
Date: 2008-09-02 07:20:48 -0700 (Tue, 02 Sep 2008)
New Revision: 5763
Modified:
trunk/supertux-editor/supertux-editor/Application.cs
trunk/supertux-editor/supertux-editor/Editors/ObjectsEditor.cs
trunk/supertux-editor/supertux-editor/IEditorApplication.cs
Log:
Replaced last occurence of TakeUndoSnapshot() and removed that void.
Modified: trunk/supertux-editor/supertux-editor/Application.cs
===================================================================
--- trunk/supertux-editor/supertux-editor/Application.cs 2008-09-01 14:23:39 UTC (rev 5762)
+++ trunk/supertux-editor/supertux-editor/Application.cs 2008-09-02 14:20:48 UTC (rev 5763)
@@ -882,15 +882,6 @@
propertiesView.SetObject(Object, title);
}
- /// <summary>
- /// Take a Snapshot before change. Describe change
- /// in actionTitle for undo information.
- /// </summary>
- public void TakeUndoSnapshot(string actionTitle)
- {
- LogManager.Log(LogLevel.DebugWarning, "DEPRECATED: TakeUndoSnapshot (\"{0}\") does nothing now", actionTitle);
- }
-
public void UpdateUndoButtons()
{
ToolButtonUndo.Sensitive = (UndoManager.UndoCount > 0);
Modified: trunk/supertux-editor/supertux-editor/Editors/ObjectsEditor.cs
===================================================================
--- trunk/supertux-editor/supertux-editor/Editors/ObjectsEditor.cs 2008-09-01 14:23:39 UTC (rev 5762)
+++ trunk/supertux-editor/supertux-editor/Editors/ObjectsEditor.cs 2008-09-02 14:20:48 UTC (rev 5763)
@@ -290,12 +290,10 @@
if(activeObject == null)
return;
- application.TakeUndoSnapshot("Clone Object " + activeObject);
-
try {
object newObject = ((ICloneable) activeObject).Clone();
IGameObject gameObject = (IGameObject) newObject;
- sector.Add(gameObject);
+ sector.Add(gameObject, gameObject.GetType().Name + " (clone)");
} catch(Exception e) {
ErrorDialog.Exception(e);
}
Modified: trunk/supertux-editor/supertux-editor/IEditorApplication.cs
===================================================================
--- trunk/supertux-editor/supertux-editor/IEditorApplication.cs 2008-09-01 14:23:39 UTC (rev 5762)
+++ trunk/supertux-editor/supertux-editor/IEditorApplication.cs 2008-09-02 14:20:48 UTC (rev 5763)
@@ -17,7 +17,6 @@
void SetToolPath();
void EditProperties(object Object, string title);
void PrintStatus(string message);
- void TakeUndoSnapshot(string actionTitle);
bool SnapToGrid{
get;
More information about the Supertux-Commit
mailing list