history.h

changeset 92
586d294ca83f
parent 91
b4dda6348e7e
child 93
92682e6369e9
--- a/history.h	Wed Apr 10 03:47:17 2013 +0300
+++ b/history.h	Wed Apr 10 04:34:19 2013 +0300
@@ -98,12 +98,27 @@
 // =============================================================================
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
+class AdditionHistory : public HistoryEntry {
+public:
+	IMPLEMENT_HISTORY_TYPE (Addition)
+	
+	std::vector<ulong> ulaIndices;
+	std::vector<LDObject*> paObjs;
+	
+	AdditionHistory (std::vector<ulong> ulaIndices, std::vector<LDObject*> paObjs) :
+		ulaIndices (ulaIndices), paObjs (paObjs) {}
+};
+
+// =============================================================================
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+// =============================================================================
 namespace History {
 	extern std::vector<HistoryEntry*> entries;
 	
 	void addEntry (HistoryEntry* entry);
 	void undo ();
 	void redo ();
+	void updateActions ();
 };
 
 #endif // HISTORY_H
\ No newline at end of file

mercurial