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 system_message_code { 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_KEY_MAP_LOADED = '_KML', 42 B_LAYOUT_WINDOW = '_LAY', 43 B_MODIFIERS_CHANGED = '_MCH', 44 B_MINIMIZE = '_WMN', 45 B_MOUSE_DOWN = '_MDN', 46 B_MOUSE_MOVED = '_MMV', 47 B_MOUSE_ENTER_EXIT = '_MEX', 48 B_MOUSE_IDLE = '_MSI', 49 B_MOUSE_UP = '_MUP', 50 B_MOUSE_WHEEL_CHANGED = '_MWC', 51 B_OPEN_IN_WORKSPACE = '_OWS', 52 B_PACKAGE_UPDATE = '_PKU', 53 B_PRINTER_CHANGED = '_PCH', 54 B_PULSE = '_PUL', 55 B_READY_TO_RUN = '_RTR', 56 B_REFS_RECEIVED = '_RRC', 57 B_RELEASE_OVERLAY_LOCK = '_ROV', 58 B_ACQUIRE_OVERLAY_LOCK = '_AOV', 59 B_SCREEN_CHANGED = '_SCH', 60 B_VALUE_CHANGED = '_VCH', 61 B_TRANSLATOR_ADDED = '_ART', 62 B_TRANSLATOR_REMOVED = '_RRT', 63 B_DELETE_TRANSLATOR = '_DRT', 64 B_VIEW_MOVED = '_VMV', 65 B_VIEW_RESIZED = '_VRS', 66 B_WINDOW_MOVED = '_WMV', 67 B_WINDOW_RESIZED = '_WRS', 68 B_WORKSPACES_CHANGED = '_WCG', 69 B_WORKSPACE_ACTIVATED = '_WAC', 70 B_ZOOM = '_WZM', 71 B_COLORS_UPDATED = '_CLU', 72 B_FONTS_UPDATED = '_FNU', 73 B_TRACKER_ADDON_MESSAGE = '_TAM', 74 _APP_MENU_ = '_AMN', 75 _BROWSER_MENUS_ = '_BRM', 76 _MENU_EVENT_ = '_MEV', 77 _PING_ = '_PBL', 78 _QUIT_ = '_QIT', 79 _VOLUME_MOUNTED_ = '_NVL', 80 _VOLUME_UNMOUNTED_ = '_VRM', 81 _MESSAGE_DROPPED_ = '_MDP', 82 _DISPOSE_DRAG_ = '_DPD', 83 _MENUS_DONE_ = '_MND', 84 _SHOW_DRAG_HANDLES_ = '_SDH', 85 _EVENTS_PENDING_ = '_EVP', 86 _UPDATE_ = '_UPD', 87 _UPDATE_IF_NEEDED_ = '_UPN', 88 _PRINTER_INFO_ = '_PIN', 89 _SETUP_PRINTER_ = '_SUP', 90 _SELECT_PRINTER_ = '_PSL' 91 // Media Kit reserves all reserved codes starting in '_TR' 92 }; 93 94 95 // Other Commands 96 enum command_code { 97 B_SET_PROPERTY = 'PSET', 98 B_GET_PROPERTY = 'PGET', 99 B_CREATE_PROPERTY = 'PCRT', 100 B_DELETE_PROPERTY = 'PDEL', 101 B_COUNT_PROPERTIES = 'PCNT', 102 B_EXECUTE_PROPERTY = 'PEXE', 103 B_GET_SUPPORTED_SUITES = 'SUIT', 104 B_UNDO = 'UNDO', 105 B_REDO = 'REDO', 106 B_CUT = 'CCUT', 107 B_COPY = 'COPY', 108 B_PASTE = 'PSTE', 109 B_SELECT_ALL = 'SALL', 110 B_SAVE_REQUESTED = 'SAVE', 111 B_MESSAGE_NOT_UNDERSTOOD = 'MNOT', 112 B_NO_REPLY = 'NONE', 113 B_REPLY = 'RPLY', 114 B_SIMPLE_DATA = 'DATA', 115 B_MIME_DATA = 'MIME', 116 B_ARCHIVED_OBJECT = 'ARCV', 117 B_UPDATE_STATUS_BAR = 'SBUP', 118 B_RESET_STATUS_BAR = 'SBRS', 119 B_NODE_MONITOR = 'NDMN', 120 B_QUERY_UPDATE = 'QUPD', 121 B_ENDORSABLE = 'ENDO', 122 B_COPY_TARGET = 'DDCP', 123 B_MOVE_TARGET = 'DDMV', 124 B_TRASH_TARGET = 'DDRM', 125 B_LINK_TARGET = 'DDLN', 126 B_INPUT_DEVICES_CHANGED = 'IDCH', 127 B_INPUT_METHOD_EVENT = 'IMEV', 128 B_WINDOW_MOVE_TO = 'WDMT', 129 B_WINDOW_MOVE_BY = 'WDMB', 130 B_SILENT_RELAUNCH = 'AREL', 131 B_OBSERVER_NOTICE_CHANGE = 'NTCH', 132 B_CONTROL_INVOKED = 'CIVK', 133 B_CONTROL_MODIFIED = 'CMOD' 134 135 // Media Kit reserves all reserved codes starting in 'TRI' 136 }; 137 138 #endif // _APP_DEFS_H 139