Fix FreeBSD build.
[haiku.git] / headers / os / app / AppDefs.h
blobd48c58580a8ece3bced0070ec074da2ee932e0d0
1 /*
2 * Copyright 2001-2007, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Erik Jaesler (erik@cgsoftware.com)
7 */
8 #ifndef _APP_DEFS_H
9 #define _APP_DEFS_H
12 #include <BeBuild.h>
15 // Old-style cursors
16 extern const unsigned char B_HAND_CURSOR[];
17 extern const unsigned char B_I_BEAM_CURSOR[];
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
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 _APP_MENU_ = '_AMN',
73 _BROWSER_MENUS_ = '_BRM',
74 _MENU_EVENT_ = '_MEV',
75 _PING_ = '_PBL',
76 _QUIT_ = '_QIT',
77 _VOLUME_MOUNTED_ = '_NVL',
78 _VOLUME_UNMOUNTED_ = '_VRM',
79 _MESSAGE_DROPPED_ = '_MDP',
80 _DISPOSE_DRAG_ = '_DPD',
81 _MENUS_DONE_ = '_MND',
82 _SHOW_DRAG_HANDLES_ = '_SDH',
83 _EVENTS_PENDING_ = '_EVP',
84 _UPDATE_ = '_UPD',
85 _UPDATE_IF_NEEDED_ = '_UPN',
86 _PRINTER_INFO_ = '_PIN',
87 _SETUP_PRINTER_ = '_SUP',
88 _SELECT_PRINTER_ = '_PSL'
89 // Media Kit reserves all reserved codes starting in '_TR'
93 // Other Commands
94 enum {
95 B_SET_PROPERTY = 'PSET',
96 B_GET_PROPERTY = 'PGET',
97 B_CREATE_PROPERTY = 'PCRT',
98 B_DELETE_PROPERTY = 'PDEL',
99 B_COUNT_PROPERTIES = 'PCNT',
100 B_EXECUTE_PROPERTY = 'PEXE',
101 B_GET_SUPPORTED_SUITES = 'SUIT',
102 B_UNDO = 'UNDO',
103 B_REDO = 'REDO',
104 B_CUT = 'CCUT',
105 B_COPY = 'COPY',
106 B_PASTE = 'PSTE',
107 B_SELECT_ALL = 'SALL',
108 B_SAVE_REQUESTED = 'SAVE',
109 B_MESSAGE_NOT_UNDERSTOOD = 'MNOT',
110 B_NO_REPLY = 'NONE',
111 B_REPLY = 'RPLY',
112 B_SIMPLE_DATA = 'DATA',
113 B_MIME_DATA = 'MIME',
114 B_ARCHIVED_OBJECT = 'ARCV',
115 B_UPDATE_STATUS_BAR = 'SBUP',
116 B_RESET_STATUS_BAR = 'SBRS',
117 B_NODE_MONITOR = 'NDMN',
118 B_QUERY_UPDATE = 'QUPD',
119 B_ENDORSABLE = 'ENDO',
120 B_COPY_TARGET = 'DDCP',
121 B_MOVE_TARGET = 'DDMV',
122 B_TRASH_TARGET = 'DDRM',
123 B_LINK_TARGET = 'DDLN',
124 B_INPUT_DEVICES_CHANGED = 'IDCH',
125 B_INPUT_METHOD_EVENT = 'IMEV',
126 B_WINDOW_MOVE_TO = 'WDMT',
127 B_WINDOW_MOVE_BY = 'WDMB',
128 B_SILENT_RELAUNCH = 'AREL',
129 B_OBSERVER_NOTICE_CHANGE = 'NTCH',
130 B_CONTROL_INVOKED = 'CIVK',
131 B_CONTROL_MODIFIED = 'CMOD'
133 // Media Kit reserves all reserved codes starting in 'TRI'
136 #endif // _APP_DEFS_H