mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-27 16:33:38 +00:00
[editor] Change xml root to comaps
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
54ab965822
commit
2b7246d463
@@ -87,7 +87,7 @@ bool TypeDescriptionFromXml(pugi::xml_node const & root, pugi::xml_node const &
|
||||
auto const node = xNode.node();
|
||||
std::string const groupName = node.attribute("group").value();
|
||||
|
||||
std::string const xpath = "/omaps/editor/fields/field_group[@name='" + groupName + "']";
|
||||
std::string const xpath = "/comaps/editor/fields/field_group[@name='" + groupName + "']";
|
||||
auto const group = root.select_node(xpath.data()).node();
|
||||
ASSERT(group, ("No such group", groupName));
|
||||
|
||||
@@ -114,7 +114,7 @@ bool TypeDescriptionFromXml(pugi::xml_node const & root, pugi::xml_node const &
|
||||
std::vector<pugi::xml_node> GetPrioritizedTypes(pugi::xml_node const & node)
|
||||
{
|
||||
std::vector<pugi::xml_node> result;
|
||||
for (auto const & xNode : node.select_nodes("/omaps/editor/types/type[@id]"))
|
||||
for (auto const & xNode : node.select_nodes("/comaps/editor/types/type[@id]"))
|
||||
result.push_back(xNode.node());
|
||||
stable_sort(begin(result), end(result),
|
||||
[](pugi::xml_node const & lhs, pugi::xml_node const & rhs) {
|
||||
@@ -168,7 +168,7 @@ bool EditorConfig::GetTypeDescription(std::vector<std::string> classificatorType
|
||||
std::vector<std::string> EditorConfig::GetTypesThatCanBeAdded() const
|
||||
{
|
||||
auto const xpathResult =
|
||||
m_document.select_nodes("/omaps/editor/types/type[not(@can_add='no' or @editable='no')]");
|
||||
m_document.select_nodes("/comaps/editor/types/type[not(@can_add='no' or @editable='no')]");
|
||||
|
||||
std::vector<std::string> result;
|
||||
for (auto const & xNode : xpathResult)
|
||||
|
||||
Reference in New Issue
Block a user