Ensure that constant buffer views are grouped together in docking

This commit is contained in:
baldurk
2017-04-28 18:36:56 +01:00
parent e0191ccba4
commit 18d3eae1c8
5 changed files with 34 additions and 1 deletions
@@ -24,6 +24,7 @@
#include "ConstantBufferPreviewer.h"
#include <QFontDatabase>
#include "3rdparty/toolwindowmanager/ToolWindowManager.h"
#include "ui_ConstantBufferPreviewer.h"
QList<ConstantBufferPreviewer *> ConstantBufferPreviewer::m_Previews;
@@ -78,6 +79,17 @@ ConstantBufferPreviewer *ConstantBufferPreviewer::has(ShaderStage stage, uint32_
return NULL;
}
ConstantBufferPreviewer *ConstantBufferPreviewer::getOne()
{
for(ConstantBufferPreviewer *c : m_Previews)
{
if(ToolWindowManager::managerOf(c))
return c;
}
return NULL;
}
void ConstantBufferPreviewer::OnLogfileLoaded()
{
OnLogfileClosed();