gui_editactions.cpp

changeset 96
2f175b3d8211
parent 94
a9e67f6e610e
child 97
52bcca21579e
--- a/gui_editactions.cpp	Wed Apr 10 16:17:22 2013 +0300
+++ b/gui_editactions.cpp	Wed Apr 10 19:26:14 2013 +0300
@@ -18,10 +18,11 @@
 
 #include "gui.h"
 #include "common.h"
+#include "file.h"
+#include "history.h"
+#include "zz_colorSelectDialog.h"
+#include "zz_historyDialog.h"
 #include "zz_setContentsDialog.h"
-#include "file.h"
-#include "zz_colorSelectDialog.h"
-#include "history.h"
 
 vector<LDObject*> g_Clipboard;
 
@@ -322,10 +323,18 @@
 	doMoveSelection (false);
 }
 
+// =============================================================================
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+// =============================================================================
 ACTION (undo, "Undo", "undo", "Undo a step.", CTRL (Z)) {
 	History::undo ();
 }
 
 ACTION (redo, "Redo", "redo", "Redo a step.", CTRL_SHIFT (Z)) {
 	History::redo ();
+}
+
+ACTION (showHistory, "Show History", "history", "Show the history dialog.", (0)) {
+	HistoryDialog dlg;
+	dlg.exec ();
 }
\ No newline at end of file

mercurial