381:241f65769a57 | 382:c1642530ea35 |
---|---|
20 #include "ldtypes.h" | 20 #include "ldtypes.h" |
21 #include "file.h" | 21 #include "file.h" |
22 #include "misc.h" | 22 #include "misc.h" |
23 #include "gui.h" | 23 #include "gui.h" |
24 #include "gldraw.h" | 24 #include "gldraw.h" |
25 | |
26 EXTERN_ACTION (undo) | |
27 EXTERN_ACTION (redo) | |
28 | 25 |
29 bool g_fullRefresh = false; | 26 bool g_fullRefresh = false; |
30 | 27 |
31 History::History() { | 28 History::History() { |
32 setOpened (false); | 29 setOpened (false); |
82 | 79 |
83 m_changesets.clear(); | 80 m_changesets.clear(); |
84 } | 81 } |
85 | 82 |
86 void History::updateActions() const { | 83 void History::updateActions() const { |
87 ACTION (undo)->setEnabled (pos() != -1); | 84 ACTION (Undo)->setEnabled (pos() != -1); |
88 ACTION (redo)->setEnabled (pos() < (long) m_changesets.size() - 1); | 85 ACTION (Redo)->setEnabled (pos() < (long) m_changesets.size() - 1); |
89 } | 86 } |
90 | 87 |
91 void History::open() { | 88 void History::open() { |
92 if (opened()) | 89 if (opened()) |
93 return; | 90 return; |