| 412 | } |
| 413 | |
| 414 | void 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 | |
| 453 | void PartStack::Add(LayoutPart::Pointer child) |
| 454 | { |
nothing calls this directly
no test coverage detected