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

26 lines
750 B
C++
Raw Normal View History

#pragma once
2019-03-28 02:17:15 +01:00
#include "better_song.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>
struct ChartState {
explicit ChartState(better::Chart& c, std::filesystem::path assets);
better::Chart& chart;
std::set<Note> selected_notes;
NotesClipboard notes_clipboard;
SelectionState time_selection;
std::optional<std::pair<Note, Note>> long_note_being_created;
bool creating_long_note;
2019-03-28 02:17:15 +01:00
History<std::shared_ptr<ActionWithMessage>> history;
DensityGraph density_graph;
2019-03-28 02:17:15 +01:00
std::optional<Note> makeLongNoteDummy(int current_tick) const;
std::optional<Note> makeCurrentLongNote() const;
};