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:
@@ -101,6 +101,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
flowViewWindow = NULL;
|
||||
frameSenderWindow = NULL;
|
||||
dbcMainEditor = NULL;
|
||||
comparatorWindow = NULL;
|
||||
dbcHandler = new DBCHandler;
|
||||
bDirty = false;
|
||||
|
||||
@@ -128,6 +129,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connect(ui->actionRange_State, SIGNAL(triggered(bool)), this, SLOT(showRangeWindow()));
|
||||
connect(ui->actionSave_Decoded_Frames, SIGNAL(triggered(bool)), this, SLOT(handleSaveDecoded()));
|
||||
connect(ui->actionSingle_Multi_State, SIGNAL(triggered(bool)), this, SLOT(showSingleMultiWindow()));
|
||||
connect(ui->actionFile_Comparison, SIGNAL(triggered(bool)), this, SLOT(showComparisonWindow()));
|
||||
|
||||
lbStatusConnected.setText(tr("Not connected"));
|
||||
updateFileStatus();
|
||||
@@ -187,6 +189,12 @@ MainWindow::~MainWindow()
|
||||
delete frameSenderWindow;
|
||||
}
|
||||
|
||||
if (comparatorWindow)
|
||||
{
|
||||
comparatorWindow->close();
|
||||
delete comparatorWindow;
|
||||
}
|
||||
|
||||
if (dbcMainEditor)
|
||||
{
|
||||
dbcMainEditor->close();
|
||||
@@ -602,6 +610,15 @@ void MainWindow::showPlaybackWindow()
|
||||
playbackWindow->show();
|
||||
}
|
||||
|
||||
void MainWindow::showComparisonWindow()
|
||||
{
|
||||
if (!comparatorWindow)
|
||||
{
|
||||
comparatorWindow = new FileComparatorWindow();
|
||||
}
|
||||
comparatorWindow->show();
|
||||
}
|
||||
|
||||
void MainWindow::showSingleMultiWindow()
|
||||
{
|
||||
//not done yet
|
||||
|
||||
Reference in New Issue
Block a user