2006-06-15 04:19:30 +00:00
|
|
|
#ifndef _FUNCTIONSVIEW_H_
|
|
|
|
#define _FUNCTIONSVIEW_H_
|
|
|
|
|
|
|
|
#include "win32/MDIChild.h"
|
|
|
|
#include "win32/ListView.h"
|
|
|
|
#include "win32/Button.h"
|
|
|
|
#include "VerticalLayout.h"
|
|
|
|
#include "MIPS.h"
|
|
|
|
#include "ELF.h"
|
|
|
|
#include "Event.h"
|
|
|
|
|
|
|
|
class CFunctionsView : public Framework::CMDIChild
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CFunctionsView(HWND, CMIPS*);
|
|
|
|
~CFunctionsView();
|
|
|
|
void SetELF(CELF*);
|
|
|
|
void Refresh();
|
|
|
|
|
|
|
|
Framework::CEvent<uint32> m_OnFunctionDblClick;
|
|
|
|
Framework::CEvent<int> m_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 OnListDblClick();
|
|
|
|
void OnNewClick();
|
2006-06-28 21:10:19 +00:00
|
|
|
void OnRenameClick();
|
2006-06-15 04:19:30 +00:00
|
|
|
void OnDeleteClick();
|
|
|
|
void OnImportClick();
|
|
|
|
|
|
|
|
Framework::CListView* m_pList;
|
2006-07-11 03:33:40 +00:00
|
|
|
Framework::Win32::CButton* m_pNew;
|
|
|
|
Framework::Win32::CButton* m_pRename;
|
|
|
|
Framework::Win32::CButton* m_pDelete;
|
|
|
|
Framework::Win32::CButton* m_pImport;
|
2006-06-15 04:19:30 +00:00
|
|
|
|
|
|
|
Framework::CVerticalLayout* m_pLayout;
|
|
|
|
CMIPS* m_pCtx;
|
|
|
|
CELF* m_pELF;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|