ppsspp/Windows/GEDebugger/GEDebugger.h

60 lines
1.7 KiB
C
Raw Normal View History

// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
#include "Common/CommonWindows.h"
#include "Globals.h"
#include "Windows/resource.h"
#include "Windows/W32Util/DialogManager.h"
#include "Windows/GEDebugger/SimpleGLWindow.h"
enum {
WM_GEDBG_BREAK_CMD = WM_USER + 200,
WM_GEDBG_BREAK_DRAW,
WM_GEDBG_STEPDISPLAYLIST,
};
2013-09-27 16:03:08 +00:00
class CtrlDisplayListView;
class CGEDebugger : public Dialog {
public:
CGEDebugger(HINSTANCE _hInstance, HWND _hParent);
~CGEDebugger();
static void Init();
protected:
BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam);
private:
void SetupPreviews();
void UpdatePreviews();
HWND AddTabWindow(wchar_t* className, wchar_t* title, DWORD style = 0);
2013-09-28 15:23:14 +00:00
void AddTabDialog(Dialog* dialog, wchar_t* title);
void ShowTab(int index, bool setControlIndex = true);
void ShowTab(HWND pageHandle);
2013-09-28 14:04:56 +00:00
void UpdateSize(WORD width, WORD height);
void SavePosition();
2013-09-27 16:03:08 +00:00
CtrlDisplayListView* displayList;
SimpleGLWindow *frameWindow;
SimpleGLWindow *texWindow;
2013-09-27 11:11:11 +00:00
std::vector<HWND> tabs;
2013-09-28 14:04:56 +00:00
int minWidth,minHeight;
};