Play-/Source/ui_win32/CallStackWnd.h
2018-04-30 21:01:23 +01:00

37 lines
948 B
C++

#pragma once
#include <boost/signals2.hpp>
#include "win32/MDIChild.h"
#include "win32/ListView.h"
#include "Types.h"
#include "../VirtualMachine.h"
#include "../MIPS.h"
#include "../BiosDebugInfoProvider.h"
class CCallStackWnd : public Framework::Win32::CMDIChild, public boost::signals2::trackable
{
public:
typedef boost::signals2::signal<void(uint32)> OnFunctionDblClickSignal;
CCallStackWnd(HWND, CVirtualMachine&, CMIPS*, CBiosDebugInfoProvider*);
virtual ~CCallStackWnd();
OnFunctionDblClickSignal OnFunctionDblClick;
protected:
long OnSize(unsigned int, unsigned int, unsigned int) override;
long OnSysCommand(unsigned int, LPARAM) override;
LRESULT OnNotify(WPARAM, NMHDR*) override;
private:
void RefreshLayout();
void CreateColumns();
void Update();
void OnListDblClick();
CVirtualMachine& m_virtualMachine;
CMIPS* m_context;
Framework::Win32::CListView* m_list;
CBiosDebugInfoProvider* m_biosDebugInfoProvider;
};