mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2025-03-01 16:00:24 +01:00
28 lines
756 B
C++
28 lines
756 B
C++
#ifndef FEIS_CHARTWITHHIST_H
|
|
#define FEIS_CHARTWITHHIST_H
|
|
|
|
#include "chart.hpp"
|
|
#include "notes_clipboard.hpp"
|
|
#include "time_selection.hpp"
|
|
#include "history_actions.hpp"
|
|
#include "history.hpp"
|
|
#include "widgets/density_graph.hpp"
|
|
|
|
|
|
struct Chart_with_History {
|
|
explicit Chart_with_History(Chart &c);
|
|
Chart& ref;
|
|
std::set<Note> selectedNotes;
|
|
NotesClipboard notesClipboard;
|
|
SelectionState timeSelection;
|
|
std::optional<std::pair<Note,Note>> longNoteBeingCreated;
|
|
bool creatingLongNote;
|
|
History<std::shared_ptr<ActionWithMessage>> history;
|
|
DensityGraph densityGraph;
|
|
|
|
std::optional<Note> makeLongNoteDummy(int current_tick) const;
|
|
std::optional<Note> makeCurrentLongNote() const;
|
|
};
|
|
|
|
#endif //FEIS_CHARTWITHHIST_H
|