diff options
Diffstat (limited to 'src/Plugins/ToolPalette/DefaultToolPalette/ToolPalette.h')
-rw-r--r-- | src/Plugins/ToolPalette/DefaultToolPalette/ToolPalette.h | 85 |
1 files changed, 83 insertions, 2 deletions
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<ToolHistoryItem *, ToolHistoryItem *> { +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(); }; |