2013-05-09 04:16:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "win32/Window.h"
|
|
|
|
#include "win32/Tab.h"
|
|
|
|
#include "win32/TreeView.h"
|
|
|
|
#include "win32/Static.h"
|
|
|
|
#include "win32/Splitter.h"
|
2013-05-19 07:18:00 +00:00
|
|
|
#include "../OutputWnd.h"
|
2013-05-09 04:16:47 +00:00
|
|
|
#include "../../FrameDump.h"
|
|
|
|
#include "GsInputStateView.h"
|
|
|
|
#include "GsContextView.h"
|
2013-06-09 05:08:09 +00:00
|
|
|
#include "GsRegisterWriteListView.h"
|
2013-05-09 04:16:47 +00:00
|
|
|
|
|
|
|
class CFrameDebugger : public Framework::Win32::CWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CFrameDebugger();
|
|
|
|
virtual ~CFrameDebugger();
|
|
|
|
|
|
|
|
protected:
|
2013-06-09 05:08:09 +00:00
|
|
|
long OnSize(unsigned int, unsigned int, unsigned int) override;
|
|
|
|
long OnCommand(unsigned short, unsigned short, HWND) override;
|
|
|
|
long OnNotify(WPARAM, NMHDR*) override;
|
|
|
|
long OnSysCommand(unsigned int, LPARAM) override;
|
2013-05-09 04:16:47 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
typedef std::vector<std::string> StatePathList;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAX_TAB_ITEMS = 4
|
|
|
|
};
|
|
|
|
|
|
|
|
void CreateAcceleratorTables();
|
|
|
|
|
|
|
|
void OnTabSelChanged();
|
|
|
|
void ResizeTabContents();
|
|
|
|
|
|
|
|
void UpdateDisplay(int32);
|
2013-06-09 05:08:09 +00:00
|
|
|
void UpdateCurrentTab();
|
2013-05-09 04:16:47 +00:00
|
|
|
|
|
|
|
void LoadFrameDump(const TCHAR*);
|
|
|
|
void ShowFrameDumpSelector();
|
|
|
|
|
|
|
|
std::unique_ptr<CGSHandler> m_gs;
|
|
|
|
CFrameDump m_frameDump;
|
|
|
|
|
2013-05-19 07:18:00 +00:00
|
|
|
std::unique_ptr<COutputWnd> m_handlerOutputWindow;
|
|
|
|
|
2013-05-09 04:16:47 +00:00
|
|
|
std::unique_ptr<Framework::Win32::CSplitter> m_mainSplitter;
|
|
|
|
|
2013-06-09 05:08:09 +00:00
|
|
|
std::unique_ptr<CGsRegisterWriteListView> m_registerWriteListView;
|
2013-05-09 04:16:47 +00:00
|
|
|
std::unique_ptr<Framework::Win32::CTab> m_tab;
|
|
|
|
|
2013-06-09 05:08:09 +00:00
|
|
|
std::unique_ptr<CGsContextView> m_gsContextView0;
|
|
|
|
std::unique_ptr<CGsContextView> m_gsContextView1;
|
2013-05-09 04:16:47 +00:00
|
|
|
std::unique_ptr<CGsInputStateView> m_gsInputStateView;
|
|
|
|
|
|
|
|
Framework::Win32::CWindow* m_tabItems[MAX_TAB_ITEMS];
|
|
|
|
unsigned int m_currentSelection;
|
|
|
|
|
|
|
|
HACCEL m_accTable;
|
|
|
|
};
|