blob: ee25fb3bb3a61254e303d3615e7c2d3b76be7db3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "ui_mainwindow.h"
#include <QMainWindow>
#include <QProcess>
class ApiTrace;
class ApiTraceCall;
class ApiTraceEvent;
class ApiTraceFilter;
class ApiTraceFrame;
class ApiTraceModel;
class ApiTraceState;
class ArgumentsEditor;
class JumpWidget;
class QModelIndex;
class QProgressBar;
class QTreeWidgetItem;
class QUrl;
class RetraceError;
class Retracer;
class SearchWidget;
class ShadersSourceWidget;
class TraceProcess;
class VertexDataInterpreter;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
~MainWindow();
public slots:
void loadTrace(const QString &fileName);
private slots:
void callItemSelected(const QModelIndex &index);
void createTrace();
void openTrace();
void replayStart();
void replayStop();
void replayFinished(const QString &output);
void replayStateFound(const ApiTraceState &state);
void replayError(const QString &msg);
void startedLoadingTrace();
void finishedLoadingTrace();
void lookupState();
void showSettings();
void openHelp(const QUrl &url);
void showSurfacesMenu(const QPoint &pos);
void showSelectedSurface();
void slotGoTo();
void slotJumpTo(int callNum);
void createdTrace(const QString &path);
void traceError(const QString &msg);
void slotSearch();
void slotSearchNext(const QString &str, Qt::CaseSensitivity sensitivity);
void slotSearchPrev(const QString &str, Qt::CaseSensitivity sensitivity);
void fillState(bool nonDefaults);
void customContextMenuRequested(QPoint pos);
void editCall();
void slotStartedSaving();
void slotSaved();
void slotGoFrameStart();
void slotGoFrameEnd();
void slotTraceChanged(ApiTraceCall *call);
void slotRetraceErrors(const QList<RetraceError> &errors);
void slotErrorSelected(QTreeWidgetItem *current);
private:
void initObjects();
void initConnections();
void newTraceFile(const QString &fileName);
void replayTrace(bool dumpState);
void fillStateForFrame();
ApiTraceFrame *currentFrame() const;
ApiTraceCall *currentCall() const;
private:
Ui_MainWindow m_ui;
ShadersSourceWidget *m_sourcesWidget;
ApiTrace *m_trace;
ApiTraceModel *m_model;
ApiTraceFilter *m_proxyModel;
QProgressBar *m_progressBar;
ApiTraceEvent *m_selectedEvent;
ApiTraceEvent *m_stateEvent;
Retracer *m_retracer;
VertexDataInterpreter *m_vdataInterpreter;
JumpWidget *m_jumpWidget;
SearchWidget *m_searchWidget;
TraceProcess *m_traceProcess;
ArgumentsEditor *m_argsEditor;
ApiTraceEvent *m_nonDefaultsLookupEvent;
};
#endif
|