2006-06-15 04:19:30 +00:00
|
|
|
#ifndef _CALLSTACKWND_H_
|
|
|
|
#define _CALLSTACKWND_H_
|
|
|
|
|
2006-12-26 21:53:04 +00:00
|
|
|
#include <boost/signal.hpp>
|
2006-06-15 04:19:30 +00:00
|
|
|
#include "win32/MDIChild.h"
|
|
|
|
#include "win32/ListView.h"
|
2006-12-29 04:51:50 +00:00
|
|
|
#include "Types.h"
|
2007-12-01 04:08:34 +00:00
|
|
|
#include "../VirtualMachine.h"
|
2006-06-15 04:19:30 +00:00
|
|
|
|
|
|
|
class CMIPS;
|
|
|
|
|
2007-03-03 19:24:42 +00:00
|
|
|
class CCallStackWnd : public Framework::Win32::CMDIChild, public boost::signals::trackable
|
2006-06-15 04:19:30 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-12-01 04:08:34 +00:00
|
|
|
CCallStackWnd(HWND, CVirtualMachine&, CMIPS*);
|
2006-12-29 04:51:50 +00:00
|
|
|
virtual ~CCallStackWnd();
|
|
|
|
boost::signal<void (uint32)> m_OnFunctionDblClick;
|
2006-06-15 04:19:30 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
long OnSize(unsigned int, unsigned int, unsigned int);
|
|
|
|
long OnSysCommand(unsigned int, LPARAM);
|
|
|
|
long OnNotify(WPARAM, NMHDR*);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void RefreshLayout();
|
|
|
|
void CreateColumns();
|
|
|
|
void Update();
|
|
|
|
void OnListDblClick();
|
|
|
|
|
2006-12-26 21:53:04 +00:00
|
|
|
void OnMachineStateChange();
|
|
|
|
void OnRunningStateChange();
|
2006-06-15 04:19:30 +00:00
|
|
|
|
2007-12-01 04:08:34 +00:00
|
|
|
CVirtualMachine& m_virtualMachine;
|
|
|
|
CMIPS* m_pCtx;
|
2007-01-11 02:44:56 +00:00
|
|
|
Framework::Win32::CListView* m_pList;
|
2006-06-15 04:19:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|