Rename ILogViewerForm to ILogViewer

This commit is contained in:
baldurk
2017-04-07 16:24:05 +01:00
parent 494086f40d
commit ceb73b85d9
18 changed files with 34 additions and 34 deletions
+6 -6
View File
@@ -130,7 +130,7 @@ void CaptureContext::LoadLogfile(const QString &logFile, const QString &origFile
if(m_LogLoaded)
{
QVector<ILogViewerForm *> logviewers(m_LogViewers);
QVector<ILogViewer *> logviewers(m_LogViewers);
// make sure we're on a consistent event before invoking log viewer forms
const DrawcallDescription *draw = &m_Drawcalls.back();
@@ -141,7 +141,7 @@ void CaptureContext::LoadLogfile(const QString &logFile, const QString &origFile
GUIInvoke::blockcall([&logviewers]() {
// notify all the registers log viewers that a log has been loaded
for(ILogViewerForm *logviewer : logviewers)
for(ILogViewer *logviewer : logviewers)
{
if(logviewer)
logviewer->OnLogfileLoaded();
@@ -536,16 +536,16 @@ void CaptureContext::CloseLogfile()
m_LogLoaded = false;
QVector<ILogViewerForm *> logviewers(m_LogViewers);
QVector<ILogViewer *> logviewers(m_LogViewers);
for(ILogViewerForm *logviewer : logviewers)
for(ILogViewer *logviewer : logviewers)
{
if(logviewer)
logviewer->OnLogfileClosed();
}
}
void CaptureContext::SetEventID(const QVector<ILogViewerForm *> &exclude, uint32_t selectedEventID,
void CaptureContext::SetEventID(const QVector<ILogViewer *> &exclude, uint32_t selectedEventID,
uint32_t eventID, bool force)
{
uint32_t prevSelectedEventID = m_SelectedEventID;
@@ -563,7 +563,7 @@ void CaptureContext::SetEventID(const QVector<ILogViewerForm *> &exclude, uint32
&m_CurGLPipelineState, &m_CurVulkanPipelineState);
});
for(ILogViewerForm *logviewer : m_LogViewers)
for(ILogViewer *logviewer : m_LogViewers)
{
if(exclude.contains(logviewer))
continue;
+5 -5
View File
@@ -69,10 +69,10 @@ public:
void CloseLogfile() override;
void SetEventID(const QVector<ILogViewerForm *> &exclude, uint32_t selectedEventID,
uint32_t eventID, bool force = false) override;
void SetEventID(const QVector<ILogViewer *> &exclude, uint32_t selectedEventID, uint32_t eventID,
bool force = false) override;
void RefreshStatus() override { SetEventID({}, m_SelectedEventID, m_EventID, true); }
void AddLogViewer(ILogViewerForm *f) override
void AddLogViewer(ILogViewer *f) override
{
m_LogViewers.push_back(f);
@@ -83,7 +83,7 @@ public:
}
}
void RemoveLogViewer(ILogViewerForm *f) override { m_LogViewers.removeAll(f); }
void RemoveLogViewer(ILogViewer *f) override { m_LogViewers.removeAll(f); }
//////////////////////////////////////////////////////////////////////////////
// Accessors
@@ -191,7 +191,7 @@ private:
PersistantConfig &m_Config;
QVector<ILogViewerForm *> m_LogViewers;
QVector<ILogViewer *> m_LogViewers;
bool m_LogLoaded, m_LoadInProgress, m_LogLocal;
QString m_LogFile;
+7 -7
View File
@@ -233,7 +233,7 @@ protected:
DECLARE_REFLECTION_STRUCT(IPixelHistoryView);
struct ILogViewerForm
struct ILogViewer
{
virtual void OnLogfileLoaded() = 0;
virtual void OnLogfileClosed() = 0;
@@ -250,11 +250,11 @@ struct ILogViewerForm
virtual void OnEventChanged(uint32_t eventID) = 0;
protected:
ILogViewerForm() = default;
~ILogViewerForm() = default;
ILogViewer() = default;
~ILogViewer() = default;
};
DECLARE_REFLECTION_STRUCT(ILogViewerForm);
DECLARE_REFLECTION_STRUCT(ILogViewer);
struct IReplayManager
{
@@ -325,12 +325,12 @@ struct ICaptureContext
bool local) = 0;
virtual void CloseLogfile() = 0;
virtual void SetEventID(const QVector<ILogViewerForm *> &exclude, uint32_t selectedEventID,
virtual void SetEventID(const QVector<ILogViewer *> &exclude, uint32_t selectedEventID,
uint32_t eventID, bool force = false) = 0;
virtual void RefreshStatus() = 0;
virtual void AddLogViewer(ILogViewerForm *f) = 0;
virtual void RemoveLogViewer(ILogViewerForm *f) = 0;
virtual void AddLogViewer(ILogViewer *f) = 0;
virtual void RemoveLogViewer(ILogViewer *f) = 0;
//////////////////////////////////////////////////////////////////////////////
// Accessors
+1 -1
View File
@@ -32,7 +32,7 @@ namespace Ui
class APIInspector;
}
class APIInspector : public QFrame, public IAPIInspector, public ILogViewerForm
class APIInspector : public QFrame, public IAPIInspector, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -52,7 +52,7 @@ struct BufferExport
BufferExport(ExportFormat f) : format(f) {}
};
class BufferViewer : public QFrame, public IBufferViewer, public ILogViewerForm
class BufferViewer : public QFrame, public IBufferViewer, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -34,7 +34,7 @@ class ConstantBufferPreviewer;
struct FormatElement;
class ConstantBufferPreviewer : public QFrame, public IConstantBufferPreviewer, public ILogViewerForm
class ConstantBufferPreviewer : public QFrame, public IConstantBufferPreviewer, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -37,7 +37,7 @@ class QMenu;
class DebugMessageItemModel;
class DebugMessageFilterModel;
class DebugMessageView : public QFrame, public IDebugMessageView, public ILogViewerForm
class DebugMessageView : public QFrame, public IDebugMessageView, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -40,7 +40,7 @@ class QTimer;
class FlowLayout;
class SizeDelegate;
class EventBrowser : public QFrame, public IEventBrowser, public ILogViewerForm
class EventBrowser : public QFrame, public IEventBrowser, public ILogViewer
{
private:
Q_OBJECT
+1 -1
View File
@@ -42,7 +42,7 @@ class QToolButton;
class CaptureDialog;
class LiveCapture;
class MainWindow : public QMainWindow, public IMainWindow, public ILogViewerForm
class MainWindow : public QMainWindow, public IMainWindow, public ILogViewer
{
private:
Q_OBJECT
@@ -37,7 +37,7 @@ class QTreeWidgetItem;
struct ViewTag;
class PipelineStateViewer;
class D3D11PipelineStateViewer : public QFrame, public ILogViewerForm
class D3D11PipelineStateViewer : public QFrame, public ILogViewer
{
Q_OBJECT
@@ -37,7 +37,7 @@ class QTreeWidgetItem;
struct ViewTag;
class PipelineStateViewer;
class D3D12PipelineStateViewer : public QFrame, public ILogViewerForm
class D3D12PipelineStateViewer : public QFrame, public ILogViewer
{
Q_OBJECT
@@ -36,7 +36,7 @@ class RDTreeWidget;
class QTreeWidgetItem;
class PipelineStateViewer;
class GLPipelineStateViewer : public QFrame, public ILogViewerForm
class GLPipelineStateViewer : public QFrame, public ILogViewer
{
Q_OBJECT
@@ -37,7 +37,7 @@ class D3D12PipelineStateViewer;
class GLPipelineStateViewer;
class VulkanPipelineStateViewer;
class PipelineStateViewer : public QFrame, public IPipelineStateViewer, public ILogViewerForm
class PipelineStateViewer : public QFrame, public IPipelineStateViewer, public ILogViewer
{
Q_OBJECT
@@ -79,5 +79,5 @@ private:
D3D12PipelineStateViewer *m_D3D12;
GLPipelineStateViewer *m_GL;
VulkanPipelineStateViewer *m_Vulkan;
ILogViewerForm *m_Current;
ILogViewer *m_Current;
};
@@ -43,7 +43,7 @@ struct SamplerData
QTreeWidgetItem *node;
};
class VulkanPipelineStateViewer : public QFrame, public ILogViewerForm
class VulkanPipelineStateViewer : public QFrame, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -35,7 +35,7 @@ class PixelHistoryView;
class PixelHistoryItemModel;
struct EventTag;
class PixelHistoryView : public QFrame, public IPixelHistoryView, public ILogViewerForm
class PixelHistoryView : public QFrame, public IPixelHistoryView, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -41,7 +41,7 @@ class FindReplace;
// from Scintilla
typedef intptr_t sptr_t;
class ShaderViewer : public QFrame, public IShaderViewer, public ILogViewerForm
class ShaderViewer : public QFrame, public IShaderViewer, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -32,7 +32,7 @@ namespace Ui
class StatisticsViewer;
}
class StatisticsViewer : public QFrame, public IStatisticsViewer, public ILogViewerForm
class StatisticsViewer : public QFrame, public IStatisticsViewer, public ILogViewer
{
Q_OBJECT
+1 -1
View File
@@ -114,7 +114,7 @@ struct TexSettings
CompType typeHint;
};
class TextureViewer : public QFrame, public ITextureViewer, public ILogViewerForm
class TextureViewer : public QFrame, public ITextureViewer, public ILogViewer
{
private:
Q_OBJECT