add quick access panel

This commit is contained in:
2019-03-03 21:43:18 +01:00
parent e7f734c824
commit 91ce555c0a
9 changed files with 113 additions and 8 deletions

View File

@@ -34,6 +34,7 @@
#include "node_about.h"
#include "node_changelog.h"
#include "node_usermanual.h"
#include "node_panel_quick.h"
void Node::app_redraw()
{
@@ -232,11 +233,12 @@ const Node* Node::init_template(const char* id)
{
auto node = c->clone();
add_child(node);
node->init();
node->create();
node->loaded();
//node->init();
//node->create();
//node->loaded();
}
YGNodeCopyStyle(y_node, m_template->y_node);
m_template->clone_copy(this);
return m_template;
}
@@ -1045,6 +1047,7 @@ void Node::load_internal(const tinyxml2::XMLElement* x_node)
CASE(kWidget::PanelColor, NodePanelColor);
CASE(kWidget::PanelStroke, NodePanelStroke);
CASE(kWidget::PanelGrid, NodePanelGrid);
CASE(kWidget::PanelQuick, NodePanelQuick);
CASE(kWidget::ColorQuad, NodeColorQuad);
CASE(kWidget::StrokePreview, NodeStrokePreview);
CASE(kWidget::Canvas, NodeCanvas);