diff --git a/re/filecomparatorwindow.cpp b/re/filecomparatorwindow.cpp index a2e8d5b..ac20406 100644 --- a/re/filecomparatorwindow.cpp +++ b/re/filecomparatorwindow.cpp @@ -16,7 +16,7 @@ FileComparatorWindow::FileComparatorWindow(QWidget *parent) : connect(ui->btnClear, SIGNAL(clicked(bool)), this, SLOT(clearReference())); ui->lblFirstFile->setText(""); - ui->lblRefFrames->setText("0"); + ui->lblRefFrames->setText("Loaded frames: 0"); installEventFilter(this); } @@ -95,7 +95,7 @@ void FileComparatorWindow::loadReferenceFile() QString resultingFileName; if (FrameFileIO::loadFrameFile(resultingFileName, &referenceFrames)) { - ui->lblRefFrames->setText(QString::number(referenceFrames.length())); + ui->lblRefFrames->setText("Loaded frames: " + QString::number(referenceFrames.length())); if (interestedFrames.count() > 0 && referenceFrames.count() > 0) calculateDetails(); } } @@ -123,10 +123,10 @@ void FileComparatorWindow::calculateDetails() if (!uniqueInterested) { referenceOnlyBase = new QTreeWidgetItem(); - referenceOnlyBase->setText(0, "IDs found only in reference frames"); + referenceOnlyBase->setText(0, "IDs found only in Side 2 - Reference frames"); } sharedBase = new QTreeWidgetItem(); - sharedBase->setText(0,"IDs found in both places"); + sharedBase->setText(0,"IDs found on both sides"); //first we have to fill out the data structures to get ready to do the report for (int x = 0; x < interestedFrames.count(); x++) @@ -240,7 +240,7 @@ void FileComparatorWindow::calculateDetails() if (!uniqueInterested) { bitmapBaseReference = new QTreeWidgetItem(); - bitmapBaseReference->setText(0, "Bits set only in reference frames"); + bitmapBaseReference->setText(0, "Bits set only in Side 2 - Reference frames"); } sharedItem->addChild(bitmapBaseInterested); if (!uniqueInterested) sharedItem->addChild(bitmapBaseReference); @@ -277,7 +277,7 @@ void FileComparatorWindow::calculateDetails() if (!uniqueInterested) { valuesReference = new QTreeWidgetItem(); - valuesReference->setText(0, "Values found only in reference frames"); + valuesReference->setText(0, "Values found only in Side 2 - Reference frames"); } valuesBase->addChild(valuesInterested); if (!uniqueInterested) valuesBase->addChild(valuesReference); diff --git a/ui/filecomparatorwindow.ui b/ui/filecomparatorwindow.ui index 0711cca..94e6685 100644 --- a/ui/filecomparatorwindow.ui +++ b/ui/filecomparatorwindow.ui @@ -15,13 +15,31 @@ - + + + + + + 16 + + + + SIDE 1 + + + Qt::AlignCenter + + + - File of interest: + Single file to compare to side 2: + + + Qt::AlignCenter @@ -41,12 +59,40 @@ + + + + Qt::Vertical + + + + + + + + 16 + + + + Side 2 + + + Qt::AlignCenter + + + - <html><head/><body><p>Loaded reference frames:</p></body></html> + One or more files to compare with the single file on side1: + + + Qt::AlignCenter + + + true @@ -79,10 +125,20 @@ + + + + Qt::Horizontal + + + + + true + - Show only unique data for interested file + Show only data unique to Side 1