elffilewidget.cpp
46 lines
| 1.0 KiB
| text/x-c
|
CppLexer
r35 | #include "elffilewidget.h" | |||
#include "ui_elffilewidget.h" | ||||
elfFileWidget::elfFileWidget(QWidget *parent) : | ||||
QWidget(parent), | ||||
ui(new Ui::elfFileWidget) | ||||
{ | ||||
ui->setupUi(this); | ||||
} | ||||
elfFileWidget::~elfFileWidget() | ||||
{ | ||||
delete ui; | ||||
} | ||||
Jeandet Alexis
|
r36 | |||
void elfFileWidget::updateElfFile(ElfFile *file) | ||||
{ | ||||
this->p_elf = file; | ||||
if(p_elf->isopened() && p_elf->iself()) | ||||
{ | ||||
this->ui->classLabel->setText(p_elf->getClass()); | ||||
this->ui->VersionLabel->setText(QString::number(p_elf->getVersion())); | ||||
this->ui->machineLabel->setText(p_elf->getArchitecture()); | ||||
this->ui->endiannesLabel->setText(p_elf->getEndianness()); | ||||
r37 | this->ui->abiLabel->setText(p_elf->getABI()); | |||
r40 | this->ui->entryPointLabel->setText(QString("0x%1").arg((uint)p_elf->getEntryPointAddress(),8,16)); | |||
this->ui->typeLabel->setText(p_elf->getType()); | ||||
this->ui->sectionCountLabel->setText(QString::number(p_elf->getSectionCount())); | ||||
Jeandet Alexis
|
r41 | this->ui->symbolCountLabel->setText(QString::number(p_elf->getSymbolCount())); | ||
Jeandet Alexis
|
r36 | } | ||
} | ||||
r37 | ||||