Add tracking of DBC editing in order to warn when exiting without saving, add sorting to DBC routines, add a new screen that allows one to compare two DBC files for changes/differences.

This commit is contained in:
Collin Kidder
2020-07-29 20:45:36 -04:00
parent 4cfb4b903a
commit a5b7410629
14 changed files with 738 additions and 13 deletions
+45
View File
@@ -0,0 +1,45 @@
#ifndef DBCCOMPARATORWINDOW_H
#define DBCCOMPARATORWINDOW_H
#include <QDialog>
#include <QDebug>
#include <QTreeWidget>
#include "framefileio.h"
#include "dbc/dbc_classes.h"
#include "dbc/dbchandler.h"
#include "utility.h"
namespace Ui {
class DBCComparatorWindow;
}
class DBCComparatorWindow : public QDialog
{
Q_OBJECT
public:
explicit DBCComparatorWindow(QWidget *parent = 0);
~DBCComparatorWindow();
private slots:
void loadFirstFile();
void loadSecondFile();
void saveDetails();
private:
Ui::DBCComparatorWindow *ui;
DBCFile *firstDBC;
DBCFile *secondDBC;
QString firstDBCFilename;
QString secondDBCFilename;
void calculateDetails();
void showEvent(QShowEvent *);
void closeEvent(QCloseEvent *event);
bool eventFilter(QObject *obj, QEvent *event);
QString loadDBC(DBCFile **file);
void readSettings();
void writeSettings();
};
#endif //DBCCOMPARATORWINDOW_H