F.E.I.S/src/chart_with_history.hpp

26 lines
733 B
C++
Raw Normal View History

#pragma once
2019-03-28 02:17:15 +01:00
2021-12-31 00:57:06 +01:00
#include "chart.hpp"
2021-12-31 14:59:39 +01:00
#include "history.hpp"
#include "history_actions.hpp"
2021-12-31 00:57:06 +01:00
#include "notes_clipboard.hpp"
#include "time_selection.hpp"
#include "widgets/density_graph.hpp"
#include <filesystem>
2019-03-28 02:17:15 +01:00
struct Chart_with_History {
explicit Chart_with_History(Chart& c, std::filesystem::path assets);
2019-03-28 02:17:15 +01:00
Chart& ref;
std::set<Note> selectedNotes;
NotesClipboard notesClipboard;
SelectionState timeSelection;
2021-12-31 14:59:39 +01:00
std::optional<std::pair<Note, Note>> longNoteBeingCreated;
2019-03-28 02:17:15 +01:00
bool creatingLongNote;
History<std::shared_ptr<ActionWithMessage>> history;
DensityGraph densityGraph;
2019-03-28 02:17:15 +01:00
std::optional<Note> makeLongNoteDummy(int current_tick) const;
std::optional<Note> makeCurrentLongNote() const;
};