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

Method DescribeLayout

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

Source from the content-addressed store, hash-verified

412}
413
414void PartStack::DescribeLayout(QString& buf) const
415{
416 int activeState = this->GetActive();
417 if (activeState == StackPresentation::AS_ACTIVE_FOCUS)
418 {
419 buf.append("active "); //$NON-NLS-1$
420 }
421 else if (activeState == StackPresentation::AS_ACTIVE_NOFOCUS)
422 {
423 buf.append("active_nofocus "); //$NON-NLS-1$
424 }
425
426 buf.append("("); //$NON-NLS-1$
427
428 ChildVector children = this->GetChildren();
429
430 for (ChildVector::iterator iter = children.begin(); iter != children.end(); ++iter)
431 {
432
433 LayoutPart::Pointer next = *iter;
434 if (!next->IsPlaceHolder())
435 {
436 if (iter != children.begin())
437 {
438 buf.append(", "); //$NON-NLS-1$
439 }
440
441 if (next == requestedCurrent)
442 {
443 buf.append("*"); //$NON-NLS-1$
444 }
445
446 next->DescribeLayout(buf);
447 }
448 }
449
450 buf.append(")"); //$NON-NLS-1$
451}
452
453void PartStack::Add(LayoutPart::Pointer child)
454{

Callers

nothing calls this directly

Calls 5

GetActiveMethod · 0.95
GetChildrenMethod · 0.95
beginMethod · 0.45
endMethod · 0.45
IsPlaceHolderMethod · 0.45

Tested by

no test coverage detected