Debian Codegraph @

au4/src/trackedit/internal/au3/au3projecthistory.h

raw
1 /*
2 * Audacity: A Digital Audio Editor
3 */
4
5 #pragma once
6
7 #include "iprojecthistory.h"
8
9 #include "context/iglobalcontext.h"
10 #include "modularity/ioc.h"
11
12 class AudacityProject;
13
14 namespace au::trackedit {
15 class Au3ProjectHistory : public IProjectHistory
16 {
17 muse::Inject<context::IGlobalContext> globalContext;
18
19 public:
20 void init() override;
21
22 bool undoAvailable() override;
23 void undo() override;
24 bool redoAvailable() override;
25 void redo() override;
26 void undoUnsaved() override;
27 void clearUnsaved() override;
28 void pushHistoryState(
29 const std::string& longDescription, const std::string& shortDescription) override;
30
31 private:
32 ::AudacityProject& projectRef();
33 };
34 }