-
Notifications
You must be signed in to change notification settings - Fork 13
/
traceview.h
50 lines (36 loc) · 983 Bytes
/
traceview.h
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
// SPDX-License-Identifier: GPL-3.0
#ifndef TRACEVIEW_H
#define TRACEVIEW_H
#include <QFrame>
#include "trace.h"
namespace Ui {
class TraceView;
}
class TraceView : public QFrame
{
Q_OBJECT
public:
explicit TraceView(QWidget *parent = 0);
~TraceView();
int getPacketNo();
Trace::Node* getLastNode() { return lastNode; }
Trace* getTrace() { return trace_; }
void moveSelection(int dir);
void asyncOpen(QString fn, QString filter = "");
signals:
void packetChanged(TraceView *tv);
private:
int getRow();
Ui::TraceView *ui;
Trace* trace_;
Trace::Node* lastNode;
QFutureWatcher<Trace*>* watcherTrace;
QFuture<Trace*> futureTrace;
QFutureWatcher<Trace::Node*>* watcherNode;
QFuture<Trace::Node*> futureNode;
private slots:
void onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void onOpenClick(bool checked);
void onFilterSubmit();
};
#endif // TRACEVIEW_H