CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Windows/GEDebugger/TabState.h
Views: 1401
// Copyright (c) 2012- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include "Windows/W32Util/DialogManager.h"20#include "Windows/W32Util/Misc.h"2122struct TabStateRow;2324class CtrlStateValues: public GenericListControl {25public:26CtrlStateValues(const TabStateRow *rows, int rowCount, HWND hwnd);2728// Used by watch.29void UpdateRows(const TabStateRow *rows, int rowCount) {30rows_ = rows;31rowCount_ = rowCount;32}3334protected:35bool WindowMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT& returnValue) override {36return false;37}38void GetColumnText(wchar_t* dest, int row, int col) override;39int GetRowCount() override { return rowCount_; }40void OnDoubleClick(int row, int column) override;41void OnRightClick(int row, int column, const POINT& point) override;4243bool ListenRowPrePaint() override { return true; }44bool OnRowPrePaint(int row, LPNMLVCUSTOMDRAW msg) override;4546private:47bool RowValuesChanged(int row);48void SetCmdValue(u32 op);49void PromptBreakpointCond(const TabStateRow &info);5051const TabStateRow *rows_;52int rowCount_;53};5455class TabStateValues : public Dialog {56public:57TabStateValues(const TabStateRow *rows, int rowCount, LPCSTR dialogID, HINSTANCE _hInstance, HWND _hParent);58~TabStateValues();5960void Update() override {61values->Update();62}6364protected:65BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam) override;6667CtrlStateValues *values;6869private:70void UpdateSize(WORD width, WORD height);71};7273class TabStateFlags : public TabStateValues {74public:75TabStateFlags(HINSTANCE _hInstance, HWND _hParent);76};7778class TabStateLighting : public TabStateValues {79public:80TabStateLighting(HINSTANCE _hInstance, HWND _hParent);81};8283class TabStateSettings : public TabStateValues {84public:85TabStateSettings(HINSTANCE _hInstance, HWND _hParent);86};8788class TabStateTexture : public TabStateValues {89public:90TabStateTexture(HINSTANCE _hInstance, HWND _hParent);91};9293class TabStateWatch : public TabStateValues {94public:95TabStateWatch(HINSTANCE _hInstance, HWND _hParent);9697void Update() override;98};99100101