#pragma once #include "../../../common.h" #include "../../../T2DLL/T2ToolWindow.h" 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(); };