Files
giesCANne/re/filecomparatorwindow.h
T
Collin Kidder 9302c18c33 Integrated help into the system. Most all the sub-screens that are actually complete
and working have integrated help now. Press F1 to bring up help for a given window.
2017-11-30 21:02:16 -05:00

52 lines
1.1 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);
bool eventFilter(QObject *obj, QEvent *event);
void readSettings();
void writeSettings();
};
#endif // FILECOMPARATORWINDOW_H