27 lines
764 B
C++
27 lines
764 B
C++
#include "fastfileviewer.h"
|
|
#include "ui_fastfileviewer.h"
|
|
|
|
FastFileViewer::FastFileViewer(QWidget *parent)
|
|
: QWidget(parent)
|
|
, ui(new Ui::FFViewer)
|
|
, mFastFile(nullptr)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
FastFileViewer::~FastFileViewer()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void FastFileViewer::SetFastFile(const FastFile* aFastFile) {
|
|
mFastFile = aFastFile;
|
|
|
|
ui->label_Title->setText(mFastFile->GetStem());
|
|
ui->comboBox_Company->setCurrentIndex(mFastFile->GetCompany());
|
|
ui->comboBox_FileType->setCurrentIndex(mFastFile->GetType());
|
|
ui->checkBox_Signed->setChecked(mFastFile->GetSignage() == SIGNAGE_SIGNED);
|
|
ui->lineEdit_Magic->setText(mFastFile->GetMagic());
|
|
ui->spinBox_Version->setValue(mFastFile->GetVersion());
|
|
}
|