|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
#include <AK/Function.h>
|
|
|
#include <AK/NonnullOwnPtrVector.h>
|
|
|
+#include <AK/Time.h>
|
|
|
#include <LibGUI/Forward.h>
|
|
|
|
|
|
namespace GUI {
|
|
@@ -28,6 +29,8 @@ public:
|
|
|
void set_current_unmodified();
|
|
|
bool is_current_modified() const;
|
|
|
|
|
|
+ Optional<Time> last_unmodified_timestamp() const { return m_last_unmodified_timestamp; }
|
|
|
+
|
|
|
void clear();
|
|
|
|
|
|
Optional<String> undo_action_text() const;
|
|
@@ -39,6 +42,7 @@ private:
|
|
|
NonnullOwnPtrVector<Command> m_stack;
|
|
|
size_t m_stack_index { 0 };
|
|
|
Optional<size_t> m_clean_index;
|
|
|
+ Optional<Time> m_last_unmodified_timestamp;
|
|
|
};
|
|
|
|
|
|
}
|