From 024306ccab5f6d51f3fce269fb1984fd02f3bb02 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Tue, 11 Jul 2023 17:52:00 +0100 Subject: add Floor, add DefaultToolPalette --- .../ToolPalette/DefaultToolPalette/ToolPalette.h | 85 +++++++++++++++++++++- 1 file changed, 83 insertions(+), 2 deletions(-) (limited to 'src/Plugins/ToolPalette/DefaultToolPalette/ToolPalette.h') diff --git a/src/Plugins/ToolPalette/DefaultToolPalette/ToolPalette.h b/src/Plugins/ToolPalette/DefaultToolPalette/ToolPalette.h index 70ecbcc..c36f8dd 100644 --- a/src/Plugins/ToolPalette/DefaultToolPalette/ToolPalette.h +++ b/src/Plugins/ToolPalette/DefaultToolPalette/ToolPalette.h @@ -1,5 +1,86 @@ #pragma once -#include "common.h" +#include "../../../common.h" +#include "../../../T2DLL/T2ToolWindow.h" -class ToolPalette { +class ToolPaletteItem; + +class AFX_CLASS_EXPORT ToolHistoryItem { +public: + ToolHistoryItem(); + virtual ~ToolHistoryItem(); + + int _4; + int _8; + int _C; +}; + +class AFX_CLASS_EXPORT ToolHistoryList : public CList { +public: + ToolHistoryList(); + virtual ~ToolHistoryList(); +}; + +class AFX_CLASS_EXPORT ToolPalette : public T2ToolWindow { +public: + ToolPalette(); + virtual ~ToolPalette(); + T2ToolIconItem *ChangeIconItem(T2ToolIconItem *inItem); + virtual T2ToolIconItem *EnableIcon(unsigned short inMask); + virtual int OnCreateProc(LPCREATESTRUCT lpCreateStruct); + virtual BOOL OnEraseBkgndProc(CDC *pDC); + virtual void OnSizeProc(UINT nType, int cx, int cy); + void UpdateScroll(ToolPaletteItem *inItem); + void UpdateCommand(); + void UpdateCategory(); + void UpdateTool(); + virtual void OnTimerProc(UINT nIDEvent); + virtual void RedrawButton(); + virtual void ItemCallbackDown(ToolPaletteItem *inItem); + virtual void ItemCallbackUp(ToolPaletteItem *inItem); + + enum { + kNumCommand = 7, + kNumCategory = 9, + kNumTool = 12 + }; + + T2ImageObj *mImageObj; + BOOL m124; + T2BitImage *mImage; + CString mWndClass; + CSize mSize130; + CSize mSize138; + int m140; + int m144; + int m148; + int m14C[3]; + T2ToolIconItem *mClickedItem; + T2ToolDef *m15C; + POINT mToolHelpPt; + ToolHistoryList mHistoryList; + int _184; + ToolPaletteItem *mCommands[kNumCommand]; + ToolPaletteItem *mCategoryTitle; + ToolPaletteItem *mCategories[kNumCategory]; + ToolPaletteItem *mCategoryScroll; + ToolPaletteItem *mToolTitle; + ToolPaletteItem *mTools[kNumTool]; + ToolPaletteItem *mToolScroll; + T2ToolHelpWnd *mToolHelpWnd; + CString mToolHelpStr1; + CString mToolHelpStr2; + T2ToolDef *mToolHelpDef; + int mToolHelpValiation; + int mToolHelpMode; + +protected: + virtual void Updated(); + virtual void ListUpdated(); + ToolHistoryItem *GetToolHistory(int inID); + +private: + void ChangeCategory(int inCategory); + void ChangeCategory(); + void ShowHelpWindow(); + void HideHelpWindow(); }; -- cgit v1.2.3