source: trunk/dll/tools.h@ 1213

Last change on this file since 1213 was 1213, checked in by John Small, 17 years ago

Ticket 187: Move data declarations/definitions out of fm3dll.h

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
RevLine 
[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]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]40
[551]41VOID load_quicktools(VOID);
42VOID save_quicktools(VOID);
43TOOL *load_tools(CHAR * filename);
44VOID save_tools(CHAR * filename);
45TOOL *add_tool(TOOL * tool);
46TOOL *insert_tool(TOOL * tool, TOOL * after);
47TOOL *del_tool(TOOL * tool);
48TOOL *find_tool(USHORT id);
49TOOL *free_tools(VOID);
50TOOL *swap_tools(TOOL * tool1, TOOL * tool2);
51TOOL *next_tool(TOOL * tool, BOOL skipinvisible);
52TOOL *prev_tool(TOOL * tool, BOOL skipinvisible);
53MRESULT EXPENTRY ReOrderToolsProc(HWND hwnd, ULONG msg, MPARAM mp1,
54 MPARAM mp2);
55MRESULT EXPENTRY AddToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
56MRESULT EXPENTRY PickToolProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
57MRESULT EXPENTRY ToolIODlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
[902]58
[1213]59// Data declarations
60extern BOOL fToolsChanged;
61extern CHAR lasttoolbar[CCHMAXPATH];
62extern BOOL qtloaded;
63extern CHAR *quicktool[50];
64extern TOOL *toolhead;
65
[902]66#endif // TOOLS_H
Note: See TracBrowser for help on using the repository browser.