avoid animation panel from dropping to the side panel

This commit is contained in:
2019-10-17 21:25:38 +02:00
parent 7487feb168
commit 880eb7a406
4 changed files with 72 additions and 56 deletions

View File

@@ -15,12 +15,15 @@ class NodePanelFloating : public NodeBorder
NodeBorder* m_outline;
std::shared_ptr<NodeBorder> m_drop_placeholder;
public:
Node* m_container;
NodeText* m_title;
std::weak_ptr<Node> m_dock;
using this_class = NodePanelFloating;
using parent = NodeBorder;
enum class kClass : uint8_t { Presets, Color, ColorAdv, Layers, Brush, Grids, Animation, Generic } m_class = kClass::Generic;
Node* m_container;
NodeText* m_title;
std::weak_ptr<Node> m_dock;
bool m_droppable = true;
virtual Node* clone_instantiate() const override;
virtual void clone_finalize(Node* dest) const override;
virtual kEventResult handle_event(Event* e) override;