~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/Core/DolphinWX/Src/Debugger/MemoryView.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2013 Dolphin Emulator Project
 
2
// Licensed under GPLv2
 
3
// Refer to the license.txt file included.
 
4
 
 
5
#ifndef MEMORYVIEW_H_
 
6
#define MEMORYVIEW_H_
 
7
 
 
8
#include "DebuggerUIUtil.h"
 
9
#include "Common.h"
 
10
#include "DebugInterface.h"
 
11
 
 
12
class CMemoryView : public wxControl
 
13
{
 
14
public:
 
15
        CMemoryView(DebugInterface* debuginterface, wxWindow* parent);
 
16
        void OnPaint(wxPaintEvent& event);
 
17
        void OnMouseDownL(wxMouseEvent& event);
 
18
        void OnMouseMove(wxMouseEvent& event);
 
19
        void OnMouseUpL(wxMouseEvent& event);
 
20
        void OnMouseDownR(wxMouseEvent& event);
 
21
        void OnPopupMenu(wxCommandEvent& event);
 
22
 
 
23
        u32 GetSelection() { return selection ; }
 
24
        int GetMemoryType() { return memory; }
 
25
 
 
26
        void Center(u32 addr)
 
27
        {
 
28
                curAddress = addr;
 
29
                Refresh();
 
30
        }
 
31
        int dataType;   // u8,u16,u32
 
32
        int curAddress; // Will be accessed by parent
 
33
 
 
34
private:
 
35
        int YToAddress(int y);
 
36
        void OnResize(wxSizeEvent& event);
 
37
 
 
38
        DebugInterface* debugger;
 
39
 
 
40
        int align;
 
41
        int rowHeight;
 
42
 
 
43
        u32 selection;
 
44
        u32 oldSelection;
 
45
        bool selecting;
 
46
 
 
47
        int memory;
 
48
 
 
49
        enum EViewAsType
 
50
        {
 
51
                VIEWAS_ASCII = 0,
 
52
                VIEWAS_FP,
 
53
                VIEWAS_HEX,
 
54
        };
 
55
 
 
56
        EViewAsType viewAsType;
 
57
 
 
58
        DECLARE_EVENT_TABLE()
 
59
};
 
60
 
 
61
#endif // MEMORYVIEW_H_