split layout.xml into multiple files loaded on demand, update changelog

This commit is contained in:
2019-09-25 22:59:04 +02:00
parent 7e732cc9b8
commit b10fa60d1b
51 changed files with 2009 additions and 1607 deletions

View File

@@ -28,10 +28,7 @@ void NodeLayer::clone_copy(Node* dest) const
void NodeLayer::init()
{
const auto& m_template = (NodeBorder*)init_template("tpl-layer");
m_color = m_template->m_color;
m_border_color = m_template->m_border_color;
m_thinkness = m_template->m_thinkness;
init_template_file("data/dialogs/panel-layers.xml", "tpl-layer");
m_label = find<NodeText>("label");
m_visibility = find<NodeCheckBox>("cb");
}
@@ -111,7 +108,7 @@ Node* NodePanelLayer::clone_instantiate() const
void NodePanelLayer::init()
{
init_template("tpl-panel-layers");
init_template_file("data/dialogs/panel-layers.xml", "tpl-panel-layers");
m_layers_container = find<NodeScroll>("layers-container");
btn_add = find<NodeButtonCustom>("btn-add");
btn_remove = find<NodeButtonCustom>("btn-remove");