From f389ae8b54b138848a099b82d6103e006dbbd9e6 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sun, 10 Apr 2011 19:27:28 -0400 Subject: Replay and parse json in a thread. --- gui/mainwindow.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'gui/mainwindow.h') diff --git a/gui/mainwindow.h b/gui/mainwindow.h index 55326bf5..313180a1 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -11,6 +11,7 @@ class ApiTraceEvent; class ApiTraceFilter; class ApiTraceFrame; class ApiTraceModel; +class ApiTraceState; class ImageViewer; class QLineEdit; class QModelIndex; @@ -20,10 +21,6 @@ class Retracer; class ShadersSourceWidget; class VertexDataInterpreter; -namespace QJson { - class Parser; -} - class MainWindow : public QMainWindow { Q_OBJECT @@ -40,7 +37,8 @@ private slots: void filterTrace(); void replayStart(); void replayStop(); - void replayFinished(const QByteArray &output); + void replayFinished(const QString &output); + void replayStateFound(const ApiTraceState &state); void replayError(const QString &msg); void startedLoadingTrace(); void finishedLoadingTrace(); @@ -55,7 +53,6 @@ private: void initConnections(); void newTraceFile(const QString &fileName); void replayTrace(bool dumpState); - void parseState(const QVariantMap ¶ms); void fillStateForFrame(); private: @@ -75,8 +72,6 @@ private: ApiTraceEvent *m_stateEvent; - QJson::Parser *m_jsonParser; - Retracer *m_retracer; VertexDataInterpreter *m_vdataInterpreter; -- cgit v1.2.3