2021-10-05 20:48:28 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-11-02 18:47:42 +01:00
|
|
|
#include <memory>
|
2021-11-24 19:21:30 +01:00
|
|
|
|
2021-10-05 20:48:28 +02:00
|
|
|
#include "core/editor.h"
|
2021-11-02 18:47:42 +01:00
|
|
|
#include "core/timeline.h"
|
2021-11-24 19:21:30 +01:00
|
|
|
|
|
|
|
#include "mockclassicnote.h"
|
2021-11-02 18:47:42 +01:00
|
|
|
|
|
|
|
class ClassicGraphicsManager;
|
2021-10-05 20:48:28 +02:00
|
|
|
|
|
|
|
class ClassicEditor : public Editor
|
|
|
|
{
|
|
|
|
public:
|
2021-11-02 18:47:42 +01:00
|
|
|
explicit ClassicEditor(std::shared_ptr<ClassicGraphicsManager>&& manager);
|
|
|
|
|
|
|
|
virtual void input(PlayerInput&& inputdata) override;
|
2021-12-03 20:21:27 +01:00
|
|
|
virtual void update(UpdateData&& updatedata) override;
|
2021-11-02 18:47:42 +01:00
|
|
|
virtual void draw() const override;
|
|
|
|
|
2021-11-24 19:21:30 +01:00
|
|
|
void selectNoteType(Type type) noexcept;
|
|
|
|
|
2021-11-02 18:47:42 +01:00
|
|
|
private:
|
2021-11-24 19:21:30 +01:00
|
|
|
Context _context;
|
2021-10-05 20:48:28 +02:00
|
|
|
|
2021-11-02 18:47:42 +01:00
|
|
|
std::shared_ptr<ClassicGraphicsManager> _graphics_manager;
|
2021-11-24 19:21:30 +01:00
|
|
|
Timeline<MockClassicNote> _timeline;
|
|
|
|
|
|
|
|
Type _selected_type;
|
2021-12-03 20:21:27 +01:00
|
|
|
microsec _current_time;
|
2021-12-06 20:18:04 +01:00
|
|
|
microsec _scroll_step;
|
2021-10-05 20:48:28 +02:00
|
|
|
};
|