Files
giesCANne/filecomparatorwindow.h
T
Collin Kidder f7b25c4496 Expanded file comparator window to be able to compare one file to many
other files. Also, it can now filter to only show IDs that had data
unique to the one file of interest.

This all should make it easier to find data.
2015-08-08 20:56:44 -04:00

51 lines
1.0 KiB
C++

#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