-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmainwindow.h
51 lines (42 loc) · 1.01 KB
/
mainwindow.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
51
// SPDX-License-Identifier: GPL-3.0
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "traceview.h"
#include "diff.h"
#include "difftreeview.h"
#include "diffview.h"
#include "session.h"
class Trace;
class QTableView;
class DiffView;
class DiffTreeView;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
static MainWindow * instance;
explicit MainWindow(QWidget *parent = 0);
QVector<DiffNode>* getDiff() { return &diff; }
void moveSelection(int dir);
~MainWindow();
DiffTreeView* getDiffTreeView() { return diffview->getDiffTreeView(); }
void updateSession();
void reloadSessionMenu();
public slots:
void onPacketChange(TraceView* tv);
private slots:
void on_actionAbout_triggered();
void onSessionItemClick(bool checked);
private:
Ui::MainWindow *ui;
TraceView *traceLeft;
TraceView *traceRight;
DiffView *diffview;
QVector<DiffNode> diff;
SessionList sesList;
};
#endif // MAINWINDOW_H