| [177] | 1 | 
 | 
|---|
 | 2 | /***********************************************************************
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 |   $Id: tools.h 902 2008-01-05 02:47:56Z stevenhl $
 | 
|---|
 | 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 | extern TOOL *toolhead;
 | 
|---|
 | 41 | 
 | 
|---|
| [551] | 42 | VOID load_quicktools(VOID);
 | 
|---|
 | 43 | VOID save_quicktools(VOID);
 | 
|---|
 | 44 | TOOL *load_tools(CHAR * filename);
 | 
|---|
 | 45 | VOID save_tools(CHAR * filename);
 | 
|---|
 | 46 | TOOL *add_tool(TOOL * tool);
 | 
|---|
 | 47 | TOOL *insert_tool(TOOL * tool, TOOL * after);
 | 
|---|
 | 48 | TOOL *del_tool(TOOL * tool);
 | 
|---|
 | 49 | TOOL *find_tool(USHORT id);
 | 
|---|
 | 50 | TOOL *free_tools(VOID);
 | 
|---|
 | 51 | TOOL *swap_tools(TOOL * tool1, TOOL * tool2);
 | 
|---|
 | 52 | TOOL *next_tool(TOOL * tool, BOOL skipinvisible);
 | 
|---|
 | 53 | TOOL *prev_tool(TOOL * tool, BOOL skipinvisible);
 | 
|---|
 | 54 | MRESULT EXPENTRY ReOrderToolsProc(HWND hwnd, ULONG msg, MPARAM mp1,
 | 
|---|
 | 55 |                                   MPARAM mp2);
 | 
|---|
 | 56 | MRESULT EXPENTRY AddToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
 | 
|---|
 | 57 | MRESULT EXPENTRY PickToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
 | 
|---|
 | 58 | MRESULT EXPENTRY ToolIODlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
 | 
|---|
| [902] | 59 | 
 | 
|---|
 | 60 | #endif // TOOLS_H
 | 
|---|