forked from collin80/SavvyCAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilecomparatorwindow.h
50 lines (41 loc) · 1.01 KB
/
filecomparatorwindow.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
#ifndef FILECOMPARATORWINDOW_H
#define FILECOMPARATORWINDOW_H
#include <QDialog>
#include <QDebug>
#include <QTreeWidget>
#include "framefileio.h"
#include "can_structs.h"
#include "utility.h"
namespace Ui {
class FileComparatorWindow;
}
struct FrameData
{
int ID;
int dataLen;
uint64_t bitmap;
int values[8][256]; //first index is the data byte, second is # of times we saw that value
};
class FileComparatorWindow : public QDialog
{
Q_OBJECT
public:
explicit FileComparatorWindow(QWidget *parent = 0);
~FileComparatorWindow();
private slots:
void loadInterestedFile();
void loadReferenceFile();
void clearReference();
void saveDetails();
private:
Ui::FileComparatorWindow *ui;
QVector<CANFrame> interestedFrames;
QVector<CANFrame> referenceFrames;
QString interestedFilename;
void calculateDetails();
void showEvent(QShowEvent *);
void closeEvent(QCloseEvent *event);
void readSettings();
void writeSettings();
};
#endif // FILECOMPARATORWINDOW_H