| [177] | 1 |  | 
|---|
|  | 2 | /*********************************************************************** | 
|---|
|  | 3 |  | 
|---|
|  | 4 | $Id: tools.h 1213 2008-09-13 06:53:06Z jbs $ | 
|---|
|  | 5 |  | 
|---|
|  | 6 | tools interface | 
|---|
|  | 7 |  | 
|---|
|  | 8 | Copyright (c) 1993-98 M. Kimes | 
|---|
| [902] | 9 | Copyright (c) 2005, 2008 Steven H. Levine | 
|---|
| [177] | 10 |  | 
|---|
|  | 11 | 26 May 05 SHL Localize toolhead | 
|---|
| [902] | 12 | 04 Jan 08 SHL Allow standalone usage | 
|---|
| [177] | 13 |  | 
|---|
|  | 14 | ***********************************************************************/ | 
|---|
|  | 15 |  | 
|---|
| [902] | 16 | #if !defined(TOOLS_H) | 
|---|
|  | 17 | #define TOOLS_H | 
|---|
|  | 18 |  | 
|---|
|  | 19 | #if !defined(OS2_INCLUDED) | 
|---|
|  | 20 | #include <os2.h> | 
|---|
|  | 21 | #endif | 
|---|
|  | 22 |  | 
|---|
| [551] | 23 | typedef struct TOOL | 
|---|
|  | 24 | { | 
|---|
|  | 25 | CHAR *help; | 
|---|
|  | 26 | CHAR *text; | 
|---|
|  | 27 | INT flags; | 
|---|
| [2] | 28 | struct TOOL *next; | 
|---|
| [551] | 29 | USHORT id; | 
|---|
|  | 30 | } | 
|---|
|  | 31 | TOOL; | 
|---|
| [2] | 32 |  | 
|---|
|  | 33 | #define T_DROPABLE    0x00000001 | 
|---|
|  | 34 | #define T_EMPHASIZED  0x00000002 | 
|---|
|  | 35 | #define T_INVISIBLE   0x00000004 | 
|---|
|  | 36 | #define T_SEPARATOR   0x00000008 | 
|---|
|  | 37 | #define T_TEXT        0x00000010 | 
|---|
|  | 38 | #define T_MYICON      0x00000020 | 
|---|
|  | 39 |  | 
|---|
| [177] | 40 |  | 
|---|
| [551] | 41 | VOID load_quicktools(VOID); | 
|---|
|  | 42 | VOID save_quicktools(VOID); | 
|---|
|  | 43 | TOOL *load_tools(CHAR * filename); | 
|---|
|  | 44 | VOID save_tools(CHAR * filename); | 
|---|
|  | 45 | TOOL *add_tool(TOOL * tool); | 
|---|
|  | 46 | TOOL *insert_tool(TOOL * tool, TOOL * after); | 
|---|
|  | 47 | TOOL *del_tool(TOOL * tool); | 
|---|
|  | 48 | TOOL *find_tool(USHORT id); | 
|---|
|  | 49 | TOOL *free_tools(VOID); | 
|---|
|  | 50 | TOOL *swap_tools(TOOL * tool1, TOOL * tool2); | 
|---|
|  | 51 | TOOL *next_tool(TOOL * tool, BOOL skipinvisible); | 
|---|
|  | 52 | TOOL *prev_tool(TOOL * tool, BOOL skipinvisible); | 
|---|
|  | 53 | MRESULT EXPENTRY ReOrderToolsProc(HWND hwnd, ULONG msg, MPARAM mp1, | 
|---|
|  | 54 | MPARAM mp2); | 
|---|
|  | 55 | MRESULT EXPENTRY AddToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); | 
|---|
|  | 56 | MRESULT EXPENTRY PickToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); | 
|---|
|  | 57 | MRESULT EXPENTRY ToolIODlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); | 
|---|
| [902] | 58 |  | 
|---|
| [1213] | 59 | // Data declarations | 
|---|
|  | 60 | extern BOOL fToolsChanged; | 
|---|
|  | 61 | extern CHAR lasttoolbar[CCHMAXPATH]; | 
|---|
|  | 62 | extern BOOL qtloaded; | 
|---|
|  | 63 | extern CHAR *quicktool[50]; | 
|---|
|  | 64 | extern TOOL *toolhead; | 
|---|
|  | 65 |  | 
|---|
| [902] | 66 | #endif // TOOLS_H | 
|---|