summaryrefslogtreecommitdiff
path: root/gui/mainwindow.h
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2011-04-10 19:27:28 -0400
committerZack Rusin <zack@kde.org>2011-04-10 19:28:00 -0400
commitf389ae8b54b138848a099b82d6103e006dbbd9e6 (patch)
treed181a3a831cabe7916ffe8e8e11ed35a8f854129 /gui/mainwindow.h
parent46678421e19ac25220f1470d074ef55d8b23440a (diff)
Replay and parse json in a thread.
Diffstat (limited to 'gui/mainwindow.h')
-rw-r--r--gui/mainwindow.h11
1 files changed, 3 insertions, 8 deletions
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 &params);
void fillStateForFrame();
private:
@@ -75,8 +72,6 @@ private:
ApiTraceEvent *m_stateEvent;
- QJson::Parser *m_jsonParser;
-
Retracer *m_retracer;
VertexDataInterpreter *m_vdataInterpreter;