improve layer history, fix doc open

This commit is contained in:
2019-06-19 23:05:14 +02:00
parent 9ad3c351ce
commit dabfedb089
3 changed files with 75 additions and 7 deletions

View File

@@ -74,10 +74,27 @@ public:
void handle_layer_highlight(NodeLayer* target, bool highlight);
void handle_layer_blend_mode(NodeLayer* target, int mode);
void handle_layer_selected(NodeLayer* target);
void save_history();
void clear();
void update_attributes();
};
struct ActionLayerChange : public Action
{
struct LayerState
{
bool visible;
float alpha;
bool lock;
};
NodePanelLayer* m_panel;
std::vector<LayerState> m_layers;
virtual void run() override { }
virtual Action* get_redo() override;
virtual void undo() override;
virtual size_t memory() override { return 0; }
};
class ActionLayerAdd : public Action
{
public: