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