| 482 | } |
| 483 | |
| 484 | void ResourceInspector::OnCaptureLoaded() |
| 485 | { |
| 486 | ui->renameResource->setEnabled(true); |
| 487 | |
| 488 | if(m_Ctx.FrameInfo().containsAnnotations && m_AnnotationView == NULL) |
| 489 | { |
| 490 | m_AnnotationView = new AnnotationDisplay(m_Ctx, false, this); |
| 491 | m_AnnotationView->setWindowTitle(tr("Resource Annotations")); |
| 492 | |
| 493 | ui->dockarea->addToolWindow( |
| 494 | m_AnnotationView, |
| 495 | ToolWindowManager::AreaReference(ToolWindowManager::BottomOf, |
| 496 | ui->dockarea->areaOf(ui->relatedResources), 0.5f)); |
| 497 | ui->dockarea->setToolWindowProperties(m_AnnotationView, ToolWindowManager::HideCloseButton); |
| 498 | } |
| 499 | |
| 500 | m_ResourceModel->reset(); |
| 501 | m_ResourceCacheID = m_Ctx.ResourceNameCacheID(); |
| 502 | } |
| 503 | |
| 504 | void ResourceInspector::SetResourceNameDisplay(const QString &name) |
| 505 | { |
nothing calls this directly
no test coverage detected