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/TabDisplayLists.h
Views: 1401
#pragma once12#include "Common/CommonWindows.h"3#include "Windows/resource.h"4#include "Windows/W32Util/DialogManager.h"5#include "Windows/W32Util/Misc.h"6#include "GPU/Common/GPUDebugInterface.h"78class CtrlDisplayListView;910class CtrlDisplayListStack: public GenericListControl11{12public:13CtrlDisplayListStack(HWND hwnd);14void setDisplayList(const DisplayList &_list) {15list = _list;16Update();17}18protected:19bool WindowMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT &returnValue) override { return false; }20void GetColumnText(wchar_t *dest, int row, int col) override;21int GetRowCount() override { return list.stackptr; }22void OnDoubleClick(int itemIndex, int column) override;23private:24DisplayList list;25};2627class CtrlAllDisplayLists: public GenericListControl28{29public:30CtrlAllDisplayLists(HWND hwnd);31void setDisplayLists(const std::vector<DisplayList> &_lists) {32lists = _lists;33Update();34}35protected:36bool WindowMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT &returnValue) override;37void GetColumnText(wchar_t *dest, int row, int col) override;38int GetRowCount() override { return (int) lists.size(); }39void OnDoubleClick(int itemIndex, int column) override;40private:41std::vector<DisplayList> lists;42};4344class TabDisplayLists : public Dialog45{46public:47TabDisplayLists(HINSTANCE _hInstance, HWND _hParent);48~TabDisplayLists();49void Update(bool reload = true);50protected:51BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam) override;52private:53void UpdateSize(WORD width, WORD height);5455CtrlDisplayListView* displayList;56CtrlDisplayListStack* stack;57CtrlAllDisplayLists* allLists;58std::vector<DisplayList> lists;59int activeList;60};616263