Addition of a file comparison window that can be used to find what sort of things changed between two files.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#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 loadFirstFile();
|
||||
void loadSecondFile();
|
||||
void saveDetails();
|
||||
|
||||
private:
|
||||
Ui::FileComparatorWindow *ui;
|
||||
QVector<CANFrame> firstFileFrames;
|
||||
QVector<CANFrame> secondFileFrames;
|
||||
QString firstFilename;
|
||||
QString secondFilename;
|
||||
|
||||
void calculateDetails();
|
||||
};
|
||||
|
||||
#endif // FILECOMPARATORWINDOW_H
|
||||
Reference in New Issue
Block a user