logic: rewrote messages handling token activation for correct restoring on undo

* saving search query to undo stack with MessageSearch
* saving node and edge with name to undo stack with MessageActivateNode and MessageActivateEdge
* added FeatureController that handels distribution of MessageActivateTokens
* clearing views when refreshing or changing project
* clearing undo stack when changing project
* added StorageCache derived from StorageAccessProxy
This commit is contained in:
Eberhard Graether
2015-06-19 00:20:50 +02:00
parent d6269f9608
commit a527a3c34d
47 changed files with 726 additions and 268 deletions
+18 -4
View File
@@ -7,12 +7,26 @@ Component::Component(std::shared_ptr<View> view, std::shared_ptr<Controller> con
: m_controller(controller)
, m_view(view)
{
m_controller->setComponent(this);
m_view->setComponent(this);
if (m_controller)
{
m_controller->setComponent(this);
}
if (m_view)
{
m_view->setComponent(this);
}
}
Component::~Component()
{
m_controller->setComponent(NULL);
m_view->setComponent(NULL);
if (m_controller)
{
m_controller->setComponent(NULL);
}
if (m_view)
{
m_view->setComponent(NULL);
}
}