elffilewidget.cpp
44 lines
| 901 B
| 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()); | |||
this->ui->entryPointLabel->setText("0x"+QString::number(p_elf->getEntryPointAddress(),16,8)); | ||||
this->ui->sectionCountLabel->setText(QString::number(p_elf->getSectioncount())); | ||||
Jeandet Alexis
|
r36 | } | ||
} | ||||
r37 | ||||