Files
Sourcetrail/src/lib/component/view/View.cpp
T
malte_langkabel 400e2629d2 logic: code controller communication
- Replaced CodeAccess with LocationAccess.
- Implemented basic functionality for CodeController.
- Added messaging to the project.
- Added QtThreadedFunctor to enable our Messaging thread to invoke calls on the QtThread.
- Added GraphController.

fortune cookie message = Good news from someone dear is coming soon.
2014-07-02 16:42:33 +02:00

47 lines
739 B
C++

#include "component/view/View.h"
#include "component/view/ViewLayout.h"
#include "gui/GuiWidgetWrapper.h"
View::~View()
{
m_viewLayout->removeView(this);
}
void View::setWidgetWrapper(std::shared_ptr<GuiWidgetWrapper> widgetWrapper)
{
m_widgetWrapper = widgetWrapper;
}
GuiWidgetWrapper* View::getWidgetWrapper()
{
return m_widgetWrapper.get();
}
void View::setComponent(Component* component)
{
m_component = component;
}
int View::getMinWidth() const
{
return m_minSize.x;
}
int View::getMinHeight() const
{
return m_minSize.y;
}
Vec2i View::getMinSize() const
{
return m_minSize;
}
View::View(ViewLayout* viewLayout, const Vec2i& minSize)
: m_viewLayout(viewLayout)
, m_widgetWrapper(nullptr)
, m_minSize(minSize)
{
}