summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/win/memoryviewinfo.h
blob: ccc451acd3eea2728cfeba132e90e30caeaca619 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// license:BSD-3-Clause
// copyright-holders:Aaron Giles, Vas Crabb
//============================================================
//
//  memoryviewinfo.h - Win32 debug window handling
//
//============================================================
#ifndef MAME_DEBUGGER_WIN_MEMORYVIEWINFO_H
#define MAME_DEBUGGER_WIN_MEMORYVIEWINFO_H

#pragma once

#include "debugwin.h"
#include "debugviewinfo.h"

#include "debug/dvmemory.h"

#include <string>


class memoryview_info : public debugview_info
{
public:
	memoryview_info(debugger_windows_interface &debugger, debugwin_info &owner, HWND parent);
	virtual ~memoryview_info();

	debug_view_memory::data_format data_format() const;
	uint32_t chunks_per_row() const;
	bool reverse() const;
	bool physical() const;
	int address_radix() const;

	void set_expression(const std::string &string);
	void set_data_format(debug_view_memory::data_format dataformat);
	void set_chunks_per_row(uint32_t rowchunks);
	void set_reverse(bool reverse);
	void set_physical(bool physical);
	void set_address_radix(int radix);

protected:
	enum
	{
		ID_CONTEXT_LAST_PC = 101
	};

	virtual void add_items_to_context_menu(HMENU menu) override;
	virtual void update_context_menu(HMENU menu) override;
	virtual void handle_context_menu(unsigned command) override;

private:
	std::string m_lastpc;
};

#endif // MAME_DEBUGGER_WIN_MEMORYVIEWINFO_H