2015-05-06 01:27:59 -04:00
|
|
|
#ifndef _ELFVIEW_H_
|
|
|
|
#define _ELFVIEW_H_
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
#include "OptionWnd.h"
|
|
|
|
#include "../ELF.h"
|
|
|
|
#include "ELFHeaderView.h"
|
|
|
|
#include "ELFSectionView.h"
|
|
|
|
#include "ELFProgramView.h"
|
|
|
|
#include "ELFSymbolView.h"
|
|
|
|
#include "win32/MDIChild.h"
|
|
|
|
|
|
|
|
class CELFView : public COptionWnd<Framework::Win32::CMDIChild>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CELFView(HWND);
|
|
|
|
~CELFView();
|
|
|
|
void SetELF(CELF*);
|
|
|
|
protected:
|
|
|
|
long OnSysCommand(unsigned int, LPARAM);
|
|
|
|
|
|
|
|
virtual void OnItemAppearing(HTREEITEM);
|
|
|
|
|
|
|
|
private:
|
|
|
|
typedef std::tr1::unordered_map<HTREEITEM, int> SectionItemMap;
|
|
|
|
|
|
|
|
void PopulateList();
|
|
|
|
void Delete();
|
|
|
|
|
|
|
|
CELF* m_pELF;
|
|
|
|
CELFHeaderView* m_pHeaderView;
|
|
|
|
CELFSymbolView* m_pSymbolView;
|
|
|
|
CELFSectionView* m_pSectionView;
|
|
|
|
CELFProgramView* m_pProgramView;
|
|
|
|
|
|
|
|
SectionItemMap m_sectionItems;
|
|
|
|
SectionItemMap m_programItems;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|