Play-/Source/ui_qt/DebugSupport/ELFProgramView.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

29 lines
513 B
C++

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