| 1 |  | 
|---|
| 2 | /*********************************************************************** | 
|---|
| 3 |  | 
|---|
| 4 | $Id: tools.h 177 2005-05-28 17:41:21Z root $ | 
|---|
| 5 |  | 
|---|
| 6 | tools interface | 
|---|
| 7 |  | 
|---|
| 8 | Copyright (c) 1993-98 M. Kimes | 
|---|
| 9 | Copyright (c) 2005 Steven H. Levine | 
|---|
| 10 |  | 
|---|
| 11 | 26 May 05 SHL Localize toolhead | 
|---|
| 12 |  | 
|---|
| 13 | ***********************************************************************/ | 
|---|
| 14 |  | 
|---|
| 15 | typedef struct TOOL { | 
|---|
| 16 | CHAR        *help; | 
|---|
| 17 | CHAR        *text; | 
|---|
| 18 | INT          flags; | 
|---|
| 19 | struct TOOL *next; | 
|---|
| 20 | USHORT       id; | 
|---|
| 21 | } TOOL; | 
|---|
| 22 |  | 
|---|
| 23 | #define T_DROPABLE    0x00000001 | 
|---|
| 24 | #define T_EMPHASIZED  0x00000002 | 
|---|
| 25 | #define T_INVISIBLE   0x00000004 | 
|---|
| 26 | #define T_SEPARATOR   0x00000008 | 
|---|
| 27 | #define T_TEXT        0x00000010 | 
|---|
| 28 | #define T_MYICON      0x00000020 | 
|---|
| 29 |  | 
|---|
| 30 | extern TOOL *toolhead; | 
|---|
| 31 |  | 
|---|
| 32 | VOID   load_quicktools (VOID); | 
|---|
| 33 | VOID   save_quicktools (VOID); | 
|---|
| 34 | TOOL  *load_tools (CHAR  *filename); | 
|---|
| 35 | VOID   save_tools (CHAR  *filename); | 
|---|
| 36 | TOOL  *add_tool   (TOOL  *tool); | 
|---|
| 37 | TOOL  *insert_tool(TOOL  *tool,TOOL *after); | 
|---|
| 38 | TOOL  *del_tool   (TOOL  *tool); | 
|---|
| 39 | TOOL  *find_tool  (USHORT id); | 
|---|
| 40 | TOOL  *free_tools (VOID); | 
|---|
| 41 | TOOL  *swap_tools (TOOL *tool1,TOOL *tool2); | 
|---|
| 42 | TOOL  *next_tool  (TOOL *tool,BOOL skipinvisible); | 
|---|
| 43 | TOOL  *prev_tool  (TOOL *tool,BOOL skipinvisible); | 
|---|
| 44 | MRESULT EXPENTRY ReOrderToolsProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2); | 
|---|
| 45 | MRESULT EXPENTRY AddToolProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2); | 
|---|
| 46 | MRESULT EXPENTRY PickToolProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2); | 
|---|
| 47 | MRESULT EXPENTRY ToolIODlgProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2); | 
|---|
| 48 |  | 
|---|