44 mLayout =
new QGridLayout;
46 mLayout->setSpacing(2);
47 mLayout->setMargin(4);
49 this->setLayout(mLayout);
71 mViews.push_back(view);
78 return this->mViewCache2D->retrieveView();
80 return this->mViewCache3D->retrieveView();
82 return this->mViewCacheRT->retrieveView();
83 return this->mViewCache->retrieveView();
88 mViewCache2D->clearUsedViews();
89 mViewCache3D->clearUsedViews();
90 mViewCacheRT->clearUsedViews();
92 for (
unsigned i=0; i<mViews.size(); ++i)
95 mLayout->removeWidget(mViews[i]);
104 for (
unsigned i=0; i<mViews.size(); ++i)
113 for (
unsigned i=0; i<mViews.size(); ++i)
124 ViewWidget* widget = this->WidgetFromView(view);
127 CX_LOG_ERROR() <<
"Did not find view in layout " << view->getUid();
131 QPoint p = widget->mapToGlobal(QPoint(0,0));
132 p = this->mapFromGlobal(p);
138 for (
unsigned i=0; i<mViews.size(); ++i)
149 mLayout->setSpacing(val);
154 mLayout->setMargin(val);
159 return mLayout->spacing();
164 return mLayout->margin();
169 std::vector<ViewPtr> retval;
170 for (
unsigned i=0; i<mViews.size(); ++i)
171 retval.push_back(mViews[i]->getView());
LayoutPosition span
size of region
boost::shared_ptr< class View > ViewPtr
void setStretchFactors(QGridLayout *layout, LayoutRegion region, int stretchFactor)
LayoutPosition pos
start position of region