Debugger MemoryWidget: More display types, use combo box for display options. Add alignment and riw length options.

This commit is contained in:
TryTwo
2022-04-06 02:36:09 -07:00
parent 2f90a2c689
commit a2aecc3794
4 changed files with 238 additions and 143 deletions

View File

@ -16,13 +16,20 @@ class MemoryViewWidget : public QTableWidget
{
Q_OBJECT
public:
enum class Type
enum class Type : int
{
U8,
U16,
U32,
Hex8 = 1,
Hex16,
Hex32,
Unsigned8,
Unsigned16,
Unsigned32,
Signed8,
Signed16,
Signed32,
ASCII,
Float32
Float32,
Double
};
enum class BPType
@ -41,7 +48,7 @@ public:
void SetAddressSpace(AddressSpace::Type address_space);
AddressSpace::Type GetAddressSpace() const;
void SetType(Type type);
void SetDisplay(Type type, int bytes_per_row, int alignment);
void SetBPType(BPType type);
void SetAddress(u32 address);
@ -65,11 +72,14 @@ private:
void OnCopyHex();
AddressSpace::Type m_address_space{};
Type m_type = Type::U8;
Type m_type = Type::Hex8;
BPType m_bp_type = BPType::ReadWrite;
bool m_do_log = true;
u32 m_context_address;
u32 m_base_address;
u32 m_address = 0;
int m_font_width = 0;
int m_font_vspace = 0;
int m_bytes_per_row = 16;
int m_alignment = 16;
};