blob: c36f8dda1349d174c2bd3b086cfc478c8ec8d6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
#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<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();
};
|