deactivate timeline

This commit is contained in:
2019-06-03 17:11:24 +02:00
parent 2d43b74956
commit 02b92cf382
5 changed files with 46 additions and 36 deletions

View File

@@ -13,7 +13,7 @@
class LayoutManager
{
std::map<uint16_t, std::unique_ptr<class Node>> m_layouts;
std::map<uint16_t, std::shared_ptr<class Node>> m_layouts;
std::string m_path;
struct stat m_file_info { 0 };
public:
@@ -34,6 +34,11 @@ public:
auto i = m_layouts.find(id);
return i == m_layouts.end() ? nullptr : i->second.get();
}
class std::shared_ptr<Node> get_ref(const char* name)
{
auto i = m_layouts.find(const_hash(name));
return i == m_layouts.end() ? nullptr : i->second;
}
void restore_context();
void clear_context();
//Node& operator[](const char* ids) { return m_layouts[const_hash(ids)]; }