| 358 | } |
| 359 | |
| 360 | void ContainerComponent::resized() |
| 361 | { |
| 362 | NodeComponent::resized(); |
| 363 | |
| 364 | Component* topComponent = parameters != nullptr ? parameters.get() : extraComponent.get(); |
| 365 | |
| 366 | jassert(topComponent != nullptr); |
| 367 | |
| 368 | topComponent->setVisible(dataReference[PropertyIds::ShowParameters]); |
| 369 | |
| 370 | auto b = getLocalBounds(); |
| 371 | b.expand(-UIValues::NodeMargin, 0); |
| 372 | b.removeFromTop(UIValues::HeaderHeight); |
| 373 | topComponent->setSize(b.getWidth(), topComponent->getHeight()); |
| 374 | topComponent->setTopLeftPosition(b.getTopLeft()); |
| 375 | |
| 376 | gotoButton.setSize(16,16); |
| 377 | |
| 378 | if(auto ng = findParentComponentOfClass<DspNetworkGraph>()) |
| 379 | { |
| 380 | gotoButton.setVisible(ng->root != this); |
| 381 | } |
| 382 | |
| 383 | auto pos = topComponent->isVisible() ? topComponent->getBounds().getBottomLeft() : topComponent->getPosition(); |
| 384 | |
| 385 | gotoButton.setTopLeftPosition(pos.translated(0, UIValues::NodeMargin)); |
| 386 | } |
| 387 | |
| 388 | void ContainerComponent::findLassoItemsInArea(Array<NodeBase::Ptr>& itemsFound, const Rectangle<int>& area) |
| 389 | { |
nothing calls this directly
no test coverage detected