source: trunk/dll/tools.h@ 1036

Last change on this file since 1036 was 902, checked in by Steven Levine, 18 years ago

Allow includes to be used standalone
Document include dependencies

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
RevLine 
[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]23typedef struct TOOL
24{
25 CHAR *help;
26 CHAR *text;
27 INT flags;
[2]28 struct TOOL *next;
[551]29 USHORT id;
30}
31TOOL;
[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]40extern TOOL *toolhead;
41
[551]42VOID load_quicktools(VOID);
43VOID save_quicktools(VOID);
44TOOL *load_tools(CHAR * filename);
45VOID save_tools(CHAR * filename);
46TOOL *add_tool(TOOL * tool);
47TOOL *insert_tool(TOOL * tool, TOOL * after);
48TOOL *del_tool(TOOL * tool);
49TOOL *find_tool(USHORT id);
50TOOL *free_tools(VOID);
51TOOL *swap_tools(TOOL * tool1, TOOL * tool2);
52TOOL *next_tool(TOOL * tool, BOOL skipinvisible);
53TOOL *prev_tool(TOOL * tool, BOOL skipinvisible);
54MRESULT EXPENTRY ReOrderToolsProc(HWND hwnd, ULONG msg, MPARAM mp1,
55 MPARAM mp2);
56MRESULT EXPENTRY AddToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
57MRESULT EXPENTRY PickToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
58MRESULT EXPENTRY ToolIODlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
[902]59
60#endif // TOOLS_H
Note: See TracBrowser for help on using the repository browser.