Play-/Source/ui_qt/DebugSupport/ELFHeaderView.h
Jean-Philip Desjardins 1d9c425663 Refactor ELF support.
Allow ELF32/ELF64 to coexist and allow ElfView to load both.
2022-07-22 17:10:27 -04:00

28 lines
484 B
C++

#pragma once
#include <QMdiSubWindow>
#include <QWidget>
#include <QTreeWidget>
#include <QGroupBox>
#include <QGridLayout>
#include <QLineEdit>
#include "ELF.h"
template <typename ElfType>
class CELFHeaderView : public QWidget
{
public:
CELFHeaderView(QMdiSubWindow*, QLayout*);
~CELFHeaderView() = default;
void SetELF(ElfType*);
void Reset();
private:
void FillInformation();
ElfType* m_pELF = nullptr;
QVBoxLayout* m_layout;
std::vector<QLineEdit*> m_editFields;
};