source: trunk/dll/tools.h@ 177

Last change on this file since 177 was 177, checked in by root, 20 years ago

Localize toolhead

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
RevLine 
[177]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
[2]15typedef 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
[177]30extern TOOL *toolhead;
31
[2]32VOID load_quicktools (VOID);
33VOID save_quicktools (VOID);
34TOOL *load_tools (CHAR *filename);
35VOID save_tools (CHAR *filename);
36TOOL *add_tool (TOOL *tool);
37TOOL *insert_tool(TOOL *tool,TOOL *after);
38TOOL *del_tool (TOOL *tool);
39TOOL *find_tool (USHORT id);
40TOOL *free_tools (VOID);
41TOOL *swap_tools (TOOL *tool1,TOOL *tool2);
42TOOL *next_tool (TOOL *tool,BOOL skipinvisible);
43TOOL *prev_tool (TOOL *tool,BOOL skipinvisible);
44MRESULT EXPENTRY ReOrderToolsProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
45MRESULT EXPENTRY AddToolProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
46MRESULT EXPENTRY PickToolProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
47MRESULT EXPENTRY ToolIODlgProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
48
Note: See TracBrowser for help on using the repository browser.