MCPcopy Create free account
hub / github.com/MITK/MITK / IsMoveable

Method IsMoveable

Plugins/org.blueberry.ui.qt/src/internal/berryPartStack.cpp:216–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216bool PartStack::IsMoveable(IPresentablePart::Pointer part)
217{
218 PartPane::Pointer pane = this->GetPaneFor(part);
219 Perspective::Pointer perspective = this->GetPage()->GetActivePerspective();
220 if (perspective == 0)
221 {
222 // Shouldn't happen -- can't have a ViewStack without a
223 // perspective
224 return true;
225 }
226 IWorkbenchPartReference::Pointer partRef = pane->GetPartReference();
227 if (partRef.Cast<IViewReference> () != 0)
228 return perspective->IsMoveable(partRef.Cast<IViewReference> ());
229
230 return true;
231}
232
233bool PartStack::SupportsState(int /*newState*/)
234{

Callers 1

IsPartMoveableMethod · 0.45

Calls 4

GetPaneForMethod · 0.95
GetPageMethod · 0.95
GetActivePerspectiveMethod · 0.80
GetPartReferenceMethod · 0.45

Tested by

no test coverage detected