2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-02-01 20:04:55 +00:00
|
|
|
|
|
|
|
#include "Space.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class EffectEditor : public EditorSpace {
|
|
|
|
struct State : Space::State {
|
2019-08-11 00:49:41 +00:00
|
|
|
AT_DECL_DNA_YAMLV
|
2018-12-08 05:30:43 +00:00
|
|
|
String<-1> path;
|
|
|
|
} m_state;
|
2019-08-10 07:33:30 +00:00
|
|
|
const Space::State& spaceState() const override { return m_state; }
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
struct View : specter::View {
|
|
|
|
View(specter::ViewResources& res, specter::View& parent) : specter::View(res, parent) {}
|
|
|
|
};
|
|
|
|
|
2019-08-10 07:33:30 +00:00
|
|
|
specter::View* buildContentView(specter::ViewResources& res) override { return nullptr; }
|
2016-02-01 20:04:55 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
EffectEditor(ViewManager& vm, Space* parent) : EditorSpace(vm, Class::EffectEditor, parent) {}
|
|
|
|
EffectEditor(ViewManager& vm, Space* parent, ConfigReader& r) : EffectEditor(vm, parent) { m_state.read(r); }
|
|
|
|
EffectEditor(ViewManager& vm, Space* parent, const EffectEditor& other) : EffectEditor(vm, parent) {
|
|
|
|
m_state = other.m_state;
|
|
|
|
}
|
|
|
|
|
2019-08-10 07:33:30 +00:00
|
|
|
Space* copy(Space* parent) const override { return new EffectEditor(m_vm, parent, *this); }
|
2016-02-01 20:04:55 +00:00
|
|
|
|
2019-08-10 07:33:30 +00:00
|
|
|
bool usesToolbar() const override { return true; }
|
2018-12-08 05:30:43 +00:00
|
|
|
};
|
2016-02-01 20:04:55 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|