2017-08-18 05:08:22 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "DebuggerUI.h"
|
|
|
|
|
|
|
|
// todo maybe add char* ownerName and use a TreeView
|
|
|
|
|
|
|
|
class CDebugSymbols :
|
2017-09-13 10:36:03 +00:00
|
|
|
public CDebugDialog<CDebugSymbols>,
|
|
|
|
public CDialogResize<CDebugSymbols>
|
2017-08-18 05:08:22 +00:00
|
|
|
{
|
|
|
|
private:
|
2020-02-11 02:36:30 +00:00
|
|
|
enum {
|
|
|
|
m_SymbolsListView_Col_Address,
|
|
|
|
m_SymbolsListView_Col_Type,
|
|
|
|
m_SymbolsListView_Col_Name,
|
|
|
|
m_SymbolsListView_Col_Value,
|
|
|
|
m_SymbolsListView_Col_Description,
|
|
|
|
m_SymbolsListView_Num_Columns
|
|
|
|
};
|
|
|
|
|
|
|
|
//Probably shouldn't be here?
|
|
|
|
const char* GetTypeName(int m_Type);
|
|
|
|
|
|
|
|
static const CSetValueDlg::ComboItem ModalChangeTypeItems[];
|
|
|
|
|
2017-09-13 10:36:03 +00:00
|
|
|
CListViewCtrl m_SymbolsListView;
|
2020-02-11 02:36:30 +00:00
|
|
|
CSetValueDlg m_SetValueDlg;
|
2017-09-13 10:36:03 +00:00
|
|
|
CAddSymbolDlg m_AddSymbolDlg;
|
|
|
|
|
2017-08-18 05:08:22 +00:00
|
|
|
public:
|
2017-09-13 10:36:03 +00:00
|
|
|
enum { IDD = IDD_Debugger_Symbols };
|
2019-12-25 00:41:20 +00:00
|
|
|
enum { TIMER_ID_AUTO_REFRESH };
|
2017-09-13 10:36:03 +00:00
|
|
|
|
|
|
|
CDebugSymbols(CDebuggerUI * debugger);
|
|
|
|
//virtual ~CDebugScripts(void);
|
|
|
|
|
|
|
|
void Refresh();
|
|
|
|
void RefreshValues();
|
|
|
|
|
|
|
|
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
|
|
|
LRESULT OnClicked(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
|
|
|
|
LRESULT OnListDblClicked(NMHDR* pNMHDR);
|
|
|
|
LRESULT OnDestroy(void);
|
2019-01-14 05:55:19 +00:00
|
|
|
void OnExitSizeMove(void);
|
2019-12-25 00:41:20 +00:00
|
|
|
void OnTimer(UINT_PTR nIDEvent);
|
2017-09-13 10:36:03 +00:00
|
|
|
|
|
|
|
BEGIN_MSG_MAP_EX(CDebugSymbols)
|
|
|
|
COMMAND_CODE_HANDLER(BN_CLICKED, OnClicked)
|
|
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
|
|
|
|
MSG_WM_DESTROY(OnDestroy)
|
|
|
|
NOTIFY_HANDLER_EX(IDC_SYMBOLS_LIST, NM_DBLCLK, OnListDblClicked)
|
2019-12-25 00:41:20 +00:00
|
|
|
MSG_WM_TIMER(OnTimer)
|
2017-09-13 10:36:03 +00:00
|
|
|
CHAIN_MSG_MAP(CDialogResize<CDebugSymbols>)
|
2019-01-14 05:55:19 +00:00
|
|
|
MSG_WM_EXITSIZEMOVE(OnExitSizeMove);
|
2017-09-13 10:36:03 +00:00
|
|
|
END_MSG_MAP()
|
|
|
|
|
|
|
|
BEGIN_DLGRESIZE_MAP(CDebugSymbols)
|
|
|
|
DLGRESIZE_CONTROL(IDC_FILTER_EDIT, DLSZ_MOVE_Y)
|
|
|
|
DLGRESIZE_CONTROL(IDC_FILTER_STATIC, DLSZ_MOVE_Y)
|
|
|
|
DLGRESIZE_CONTROL(IDC_REMOVESYMBOL_BTN, DLSZ_MOVE_X | DLSZ_MOVE_Y)
|
|
|
|
DLGRESIZE_CONTROL(IDC_ADDSYMBOL_BTN, DLSZ_MOVE_X | DLSZ_MOVE_Y)
|
|
|
|
DLGRESIZE_CONTROL(IDC_SYMBOLS_LIST, DLSZ_SIZE_X | DLSZ_SIZE_Y)
|
|
|
|
END_DLGRESIZE_MAP()
|
2017-08-18 05:08:22 +00:00
|
|
|
};
|