* 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
33 lines
501 B
C++
33 lines
501 B
C++
#include "component/Component.h"
|
|
|
|
#include "component/view/View.h"
|
|
#include "component/controller/Controller.h"
|
|
|
|
Component::Component(std::shared_ptr<View> view, std::shared_ptr<Controller> controller)
|
|
: m_controller(controller)
|
|
, m_view(view)
|
|
{
|
|
if (m_controller)
|
|
{
|
|
m_controller->setComponent(this);
|
|
}
|
|
|
|
if (m_view)
|
|
{
|
|
m_view->setComponent(this);
|
|
}
|
|
}
|
|
|
|
Component::~Component()
|
|
{
|
|
if (m_controller)
|
|
{
|
|
m_controller->setComponent(NULL);
|
|
}
|
|
|
|
if (m_view)
|
|
{
|
|
m_view->setComponent(NULL);
|
|
}
|
|
}
|