xref: /haiku/headers/os/app/AppDefs.h (revision bddcee2a27042b4d8d6b0142b466f30abc886648)
1 /*
2  * Copyright 2001-2007, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *      Erik Jaesler (erik@cgsoftware.com)
7  */
8 #ifndef _APP_DEFS_H
9 #define _APP_DEFS_H
10 
11 
12 #include <BeBuild.h>
13 
14 
15 // Old-style cursors
16 extern const unsigned char B_HAND_CURSOR[];
17 extern const unsigned char B_I_BEAM_CURSOR[];
18 
19 // New-style cursors
20 #ifdef  __cplusplus
21 class BCursor;
22 extern const BCursor *B_CURSOR_SYSTEM_DEFAULT;
23 extern const BCursor *B_CURSOR_I_BEAM;
24 #endif
25 
26 
27 // System Message Codes
28 enum {
29 	B_ABOUT_REQUESTED			= '_ABR',
30 	B_WINDOW_ACTIVATED			= '_ACT',
31 	B_APP_ACTIVATED				= '_ACT',	// Same as B_WINDOW_ACTIVATED
32 	B_ARGV_RECEIVED				= '_ARG',
33 	B_QUIT_REQUESTED			= '_QRQ',
34 	B_CLOSE_REQUESTED			= '_QRQ',	// Obsolete; use B_QUIT_REQUESTED
35 	B_CANCEL					= '_CNC',
36 	B_INVALIDATE				= '_IVL',
37 	B_KEY_DOWN					= '_KYD',
38 	B_KEY_UP					= '_KYU',
39 	B_UNMAPPED_KEY_DOWN			= '_UKD',
40 	B_UNMAPPED_KEY_UP			= '_UKU',
41 	B_LAYOUT_WINDOW				= '_LAY',
42 	B_MODIFIERS_CHANGED			= '_MCH',
43 	B_MINIMIZE					= '_WMN',
44 	B_MOUSE_DOWN				= '_MDN',
45 	B_MOUSE_MOVED				= '_MMV',
46 	B_MOUSE_ENTER_EXIT			= '_MEX',
47 	B_MOUSE_IDLE				= '_MSI',
48 	B_MOUSE_UP					= '_MUP',
49 	B_MOUSE_WHEEL_CHANGED		= '_MWC',
50 	B_OPEN_IN_WORKSPACE			= '_OWS',
51 	B_PACKAGE_UPDATE			= '_PKU',
52 	B_PRINTER_CHANGED			= '_PCH',
53 	B_PULSE						= '_PUL',
54 	B_READY_TO_RUN				= '_RTR',
55 	B_REFS_RECEIVED				= '_RRC',
56 	B_RELEASE_OVERLAY_LOCK		= '_ROV',
57 	B_ACQUIRE_OVERLAY_LOCK		= '_AOV',
58 	B_SCREEN_CHANGED			= '_SCH',
59 	B_VALUE_CHANGED				= '_VCH',
60 	B_TRANSLATOR_ADDED			= '_ART',
61 	B_TRANSLATOR_REMOVED		= '_RRT',
62 	B_DELETE_TRANSLATOR			= '_DRT',
63 	B_VIEW_MOVED				= '_VMV',
64 	B_VIEW_RESIZED				= '_VRS',
65 	B_WINDOW_MOVED				= '_WMV',
66 	B_WINDOW_RESIZED			= '_WRS',
67 	B_WORKSPACES_CHANGED		= '_WCG',
68 	B_WORKSPACE_ACTIVATED		= '_WAC',
69 	B_ZOOM						= '_WZM',
70 	B_COLORS_UPDATED			= '_CLU',
71 	B_FONTS_UPDATED				= '_FNU',
72 	B_TRACKER_ADDON_MESSAGE		= '_TAM',
73 	_APP_MENU_					= '_AMN',
74 	_BROWSER_MENUS_				= '_BRM',
75 	_MENU_EVENT_				= '_MEV',
76 	_PING_						= '_PBL',
77 	_QUIT_						= '_QIT',
78 	_VOLUME_MOUNTED_			= '_NVL',
79 	_VOLUME_UNMOUNTED_			= '_VRM',
80 	_MESSAGE_DROPPED_			= '_MDP',
81 	_DISPOSE_DRAG_				= '_DPD',
82 	_MENUS_DONE_				= '_MND',
83 	_SHOW_DRAG_HANDLES_			= '_SDH',
84 	_EVENTS_PENDING_			= '_EVP',
85 	_UPDATE_					= '_UPD',
86 	_UPDATE_IF_NEEDED_			= '_UPN',
87 	_PRINTER_INFO_				= '_PIN',
88 	_SETUP_PRINTER_				= '_SUP',
89 	_SELECT_PRINTER_			= '_PSL'
90 	// Media Kit reserves all reserved codes starting in '_TR'
91 };
92 
93 
94 // Other Commands
95 enum {
96 	B_SET_PROPERTY				= 'PSET',
97 	B_GET_PROPERTY				= 'PGET',
98 	B_CREATE_PROPERTY			= 'PCRT',
99 	B_DELETE_PROPERTY			= 'PDEL',
100 	B_COUNT_PROPERTIES			= 'PCNT',
101 	B_EXECUTE_PROPERTY			= 'PEXE',
102 	B_GET_SUPPORTED_SUITES		= 'SUIT',
103 	B_UNDO						= 'UNDO',
104 	B_REDO						= 'REDO',
105 	B_CUT						= 'CCUT',
106 	B_COPY						= 'COPY',
107 	B_PASTE						= 'PSTE',
108 	B_SELECT_ALL				= 'SALL',
109 	B_SAVE_REQUESTED			= 'SAVE',
110 	B_MESSAGE_NOT_UNDERSTOOD	= 'MNOT',
111 	B_NO_REPLY					= 'NONE',
112 	B_REPLY						= 'RPLY',
113 	B_SIMPLE_DATA				= 'DATA',
114 	B_MIME_DATA					= 'MIME',
115 	B_ARCHIVED_OBJECT			= 'ARCV',
116 	B_UPDATE_STATUS_BAR			= 'SBUP',
117 	B_RESET_STATUS_BAR			= 'SBRS',
118 	B_NODE_MONITOR				= 'NDMN',
119 	B_QUERY_UPDATE				= 'QUPD',
120 	B_ENDORSABLE				= 'ENDO',
121 	B_COPY_TARGET				= 'DDCP',
122 	B_MOVE_TARGET				= 'DDMV',
123 	B_TRASH_TARGET				= 'DDRM',
124 	B_LINK_TARGET				= 'DDLN',
125 	B_INPUT_DEVICES_CHANGED		= 'IDCH',
126 	B_INPUT_METHOD_EVENT		= 'IMEV',
127 	B_WINDOW_MOVE_TO			= 'WDMT',
128 	B_WINDOW_MOVE_BY			= 'WDMB',
129 	B_SILENT_RELAUNCH			= 'AREL',
130 	B_OBSERVER_NOTICE_CHANGE	= 'NTCH',
131 	B_CONTROL_INVOKED			= 'CIVK',
132 	B_CONTROL_MODIFIED			= 'CMOD'
133 
134 	// Media Kit reserves all reserved codes starting in 'TRI'
135 };
136 
137 #endif	// _APP_DEFS_H
138