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);
42 void replayFinished(const QString &output);
43 void replayStateFound(const ApiTraceState &state);
44 void replayError(const QString &msg);
45 void startedLoadingTrace();
46 void finishedLoadingTrace();
49 void openHelp(const QUrl &url);
50 void showSurfacesMenu(const QPoint &pos);
51 void showSelectedSurface();
53 void slotJumpTo(int callNum);
54 void createdTrace(const QString &path);
55 void traceError(const QString &msg);
57 void slotSearchNext(const QString &str, Qt::CaseSensitivity sensitivity);
58 void slotSearchPrev(const QString &str, Qt::CaseSensitivity sensitivity);
62 void initConnections();
63 void newTraceFile(const QString &fileName);
64 void replayTrace(bool dumpState);
65 void fillStateForFrame();
69 ShadersSourceWidget *m_sourcesWidget;
72 ApiTraceModel *m_model;
73 ApiTraceFilter *m_proxyModel;
75 QProgressBar *m_progressBar;
77 QString m_traceFileName;
79 ApiTraceEvent *m_selectedEvent;
81 ApiTraceEvent *m_stateEvent;
85 VertexDataInterpreter *m_vdataInterpreter;
87 ImageViewer *m_imageViewer;
89 JumpWidget *m_jumpWidget;
90 SearchWidget *m_searchWidget;
92 TraceProcess *m_traceProcess;