4 #include "ui_mainwindow.h"
22 class ShadersSourceWidget;
24 class VertexDataInterpreter;
26 class MainWindow : public QMainWindow
34 void loadTrace(const QString &fileName);
37 void callItemSelected(const QModelIndex &index);
43 void replayFinished(const QString &output);
44 void replayStateFound(const ApiTraceState &state);
45 void replayError(const QString &msg);
46 void startedLoadingTrace();
47 void finishedLoadingTrace();
50 void openHelp(const QUrl &url);
51 void showSurfacesMenu(const QPoint &pos);
52 void showSelectedSurface();
54 void slotJumpTo(int callNum);
55 void createdTrace(const QString &path);
56 void traceError(const QString &msg);
60 void initConnections();
61 void newTraceFile(const QString &fileName);
62 void replayTrace(bool dumpState);
63 void fillStateForFrame();
67 ShadersSourceWidget *m_sourcesWidget;
70 ApiTraceModel *m_model;
71 ApiTraceFilter *m_proxyModel;
72 QLineEdit *m_filterEdit;
74 QProgressBar *m_progressBar;
76 QString m_traceFileName;
78 ApiTraceEvent *m_selectedEvent;
80 ApiTraceEvent *m_stateEvent;
84 VertexDataInterpreter *m_vdataInterpreter;
86 ImageViewer *m_imageViewer;
88 JumpWidget *m_jumpWidget;
90 TraceProcess *m_traceProcess;