]> git.cworth.org Git - apitrace/blob - gui/mainwindow.h
Show that we're loading a trace.
[apitrace] / gui / mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3
4 #include "ui_mainwindow.h"
5
6 #include <QMainWindow>
7 #include <QProcess>
8
9 class ApiTrace;
10 class ApiTraceModel;
11 class ApiTraceFilter;
12 class QLineEdit;
13 class QModelIndex;
14 class QProcess;
15 class QProgressBar;
16
17 class MainWindow : public QMainWindow
18 {
19     Q_OBJECT
20 public:
21     MainWindow();
22
23 public slots:
24     void loadTrace(const QString &fileName);
25
26 private slots:
27     void callItemSelected(const QModelIndex &index);
28     void openTrace();
29     void filterTrace();
30     void replayStart();
31     void replayStop();
32     void replayFinished();
33     void replayError(QProcess::ProcessError err);
34     void startedLoadingTrace();
35     void finishedLoadingTrace();
36
37 private:
38     void newTraceFile(const QString &fileName);
39
40 private:
41     Ui_MainWindow m_ui;
42     ApiTrace *m_trace;
43     ApiTraceModel *m_model;
44     ApiTraceFilter *m_proxyModel;
45     QLineEdit *m_filterEdit;
46
47     QProcess *m_replayProcess;
48
49     QProgressBar *m_progressBar;
50
51     QString m_traceFileName;
52 };
53
54
55 #endif