mirror of
https://github.com/jpd002/Play-.git
synced 2025-05-02 23:47:58 +03:00
67 lines
1.8 KiB
C++
67 lines
1.8 KiB
C++
#ifndef _FUNCTIONSVIEW_H_
|
|
#define _FUNCTIONSVIEW_H_
|
|
|
|
#include <boost/signals2.hpp>
|
|
#include <functional>
|
|
#include "win32/MDIChild.h"
|
|
#include "win32/ListView.h"
|
|
#include "win32/Button.h"
|
|
#include "layout/VerticalLayout.h"
|
|
#include "../MIPS.h"
|
|
#include "../BiosDebugInfoProvider.h"
|
|
#include "../ELF.h"
|
|
|
|
class CFunctionsView :
|
|
#ifdef FUNCTIONSVIEW_STANDALONE
|
|
public Framework::Win32::CWindow,
|
|
#else
|
|
public Framework::Win32::CMDIChild,
|
|
#endif
|
|
public boost::signals2::trackable
|
|
{
|
|
public:
|
|
CFunctionsView(HWND);
|
|
virtual ~CFunctionsView();
|
|
|
|
void SetContext(CMIPS*, CBiosDebugInfoProvider*);
|
|
void Refresh();
|
|
|
|
boost::signals2::signal<void (uint32)> OnFunctionDblClick;
|
|
boost::signals2::signal<void (void)> OnFunctionsStateChange;
|
|
|
|
protected:
|
|
long OnSize(unsigned int, unsigned int, unsigned int);
|
|
long OnCommand(unsigned short, unsigned short, HWND);
|
|
long OnNotify(WPARAM, NMHDR*);
|
|
long OnSysCommand(unsigned int, LPARAM);
|
|
|
|
private:
|
|
void CreateListColumns();
|
|
void ResizeListColumns();
|
|
void RefreshLayout();
|
|
void RefreshList();
|
|
void InitializeModuleGrouper();
|
|
uint32 GetFunctionGroupId(uint32);
|
|
|
|
void OnListDblClick();
|
|
void OnNewClick();
|
|
void OnRenameClick();
|
|
void OnDeleteClick();
|
|
void OnImportClick();
|
|
|
|
Framework::Win32::CListView* m_pList;
|
|
Framework::Win32::CButton* m_pNew;
|
|
Framework::Win32::CButton* m_pRename;
|
|
Framework::Win32::CButton* m_pDelete;
|
|
Framework::Win32::CButton* m_pImport;
|
|
|
|
Framework::FlatLayoutPtr m_pLayout;
|
|
|
|
boost::signals2::connection m_functionTagsChangeConnection;
|
|
|
|
CMIPS* m_context;
|
|
BiosDebugModuleInfoArray m_modules;
|
|
CBiosDebugInfoProvider* m_biosDebugInfoProvider;
|
|
};
|
|
|
|
#endif
|