MCPcopy Create free account
hub / github.com/baldurk/renderdoc / LoadInitialLayout

Method LoadInitialLayout

qrenderdoc/Windows/MainWindow.cpp:1688–1738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1686}
1687
1688void MainWindow::LoadInitialLayout()
1689{
1690 bool loaded = LoadLayout(0);
1691
1692 // create default layout if layout failed to load
1693 if(!loaded)
1694 {
1695 QWidget *eventBrowser = m_Ctx.GetEventBrowser()->Widget();
1696
1697 ui->toolWindowManager->addToolWindow(eventBrowser, ToolWindowManager::EmptySpace);
1698
1699 QWidget *textureViewer = m_Ctx.GetTextureViewer()->Widget();
1700
1701 ui->toolWindowManager->addToolWindow(
1702 textureViewer,
1703 ToolWindowManager::AreaReference(ToolWindowManager::RightOf,
1704 ui->toolWindowManager->areaOf(eventBrowser), 0.75f));
1705
1706 QWidget *pipe = m_Ctx.GetPipelineViewer()->Widget();
1707
1708 ui->toolWindowManager->addToolWindow(
1709 pipe, ToolWindowManager::AreaReference(ToolWindowManager::AddTo,
1710 ui->toolWindowManager->areaOf(textureViewer)));
1711
1712 QWidget *mesh = m_Ctx.GetMeshPreview()->Widget();
1713
1714 ui->toolWindowManager->addToolWindow(
1715 mesh, ToolWindowManager::AreaReference(ToolWindowManager::AddTo,
1716 ui->toolWindowManager->areaOf(textureViewer)));
1717
1718 QWidget *capDialog = m_Ctx.GetCaptureDialog()->Widget();
1719
1720 ui->toolWindowManager->addToolWindow(
1721 capDialog, ToolWindowManager::AreaReference(ToolWindowManager::AddTo,
1722 ui->toolWindowManager->areaOf(textureViewer)));
1723
1724 QWidget *apiInspector = m_Ctx.GetAPIInspector()->Widget();
1725
1726 ui->toolWindowManager->addToolWindow(
1727 apiInspector,
1728 ToolWindowManager::AreaReference(ToolWindowManager::BottomOf,
1729 ui->toolWindowManager->areaOf(eventBrowser), 0.3f));
1730
1731 QWidget *timelineBar = m_Ctx.GetTimelineBar()->Widget();
1732
1733 ui->toolWindowManager->addToolWindow(
1734 timelineBar,
1735 ToolWindowManager::AreaReference(ToolWindowManager::TopWindowSide,
1736 ui->toolWindowManager->areaOf(textureViewer), 0.2f));
1737 }
1738}
1739
1740bool MainWindow::ErrorReportsAllowed()
1741{

Callers 1

CaptureContextMethod · 0.80

Calls 11

AreaReferenceClass · 0.85
areaOfMethod · 0.80
WidgetMethod · 0.45
GetEventBrowserMethod · 0.45
addToolWindowMethod · 0.45
GetTextureViewerMethod · 0.45
GetPipelineViewerMethod · 0.45
GetMeshPreviewMethod · 0.45
GetCaptureDialogMethod · 0.45
GetAPIInspectorMethod · 0.45
GetTimelineBarMethod · 0.45

Tested by

no test coverage detected