1 //------------------------------------------------------------------------------ 2 // Copyright (c) 2001-2002, OpenBeOS 3 // 4 // Permission is hereby granted, free of charge, to any person obtaining a 5 // copy of this software and associated documentation files (the "Software"), 6 // to deal in the Software without restriction, including without limitation 7 // the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 // and/or sell copies of the Software, and to permit persons to whom the 9 // Software is furnished to do so, subject to the following conditions: 10 // 11 // The above copyright notice and this permission notice shall be included in 12 // all copies or substantial portions of the Software. 13 // 14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 // DEALINGS IN THE SOFTWARE. 21 // 22 // File Name: AppDefs.h 23 // Author: Erik Jaesler (erik@cgsoftware.com) 24 // Description: Message codes and the global cursors. 25 //------------------------------------------------------------------------------ 26 27 #ifndef _APP_DEFS_H 28 #define _APP_DEFS_H 29 30 // Standard Includes ----------------------------------------------------------- 31 32 // System Includes ------------------------------------------------------------- 33 #include <BeBuild.h> 34 35 // Project Includes ------------------------------------------------------------ 36 37 // Local Includes -------------------------------------------------------------- 38 39 // Local Defines --------------------------------------------------------------- 40 41 // Globals --------------------------------------------------------------------- 42 43 44 // Global Cursors -------------------------------------------------------------- 45 46 // Old-style cursors 47 extern const unsigned char B_HAND_CURSOR[]; 48 extern const unsigned char B_I_BEAM_CURSOR[]; 49 50 // New-style cursors 51 #ifdef __cplusplus 52 class BCursor; 53 extern const BCursor *B_CURSOR_SYSTEM_DEFAULT; 54 extern const BCursor *B_CURSOR_I_BEAM; 55 #endif 56 57 // System Message Codes -------------------------------------------------------- 58 59 enum { 60 B_ABOUT_REQUESTED = '_ABR', 61 B_WINDOW_ACTIVATED = '_ACT', 62 B_APP_ACTIVATED = '_ACT', // Same as B_WINDOW_ACTIVATED 63 B_ARGV_RECEIVED = '_ARG', 64 B_QUIT_REQUESTED = '_QRQ', 65 B_CLOSE_REQUESTED = '_QRQ', // Obsolete; use B_QUIT_REQUESTED 66 B_CANCEL = '_CNC', 67 B_KEY_DOWN = '_KYD', 68 B_KEY_UP = '_KYU', 69 B_UNMAPPED_KEY_DOWN = '_UKD', 70 B_UNMAPPED_KEY_UP = '_UKU', 71 B_MODIFIERS_CHANGED = '_MCH', 72 B_MINIMIZE = '_WMN', 73 B_MOUSE_DOWN = '_MDN', 74 B_MOUSE_MOVED = '_MMV', 75 B_MOUSE_ENTER_EXIT = '_MEX', 76 B_MOUSE_UP = '_MUP', 77 B_MOUSE_WHEEL_CHANGED = '_MWC', 78 B_OPEN_IN_WORKSPACE = '_OWS', 79 B_PRINTER_CHANGED = '_PCH', 80 B_PULSE = '_PUL', 81 B_READY_TO_RUN = '_RTR', 82 B_REFS_RECEIVED = '_RRC', 83 B_RELEASE_OVERLAY_LOCK = '_ROV', 84 B_ACQUIRE_OVERLAY_LOCK = '_AOV', 85 B_SCREEN_CHANGED = '_SCH', 86 B_VALUE_CHANGED = '_VCH', 87 B_VIEW_MOVED = '_VMV', 88 B_VIEW_RESIZED = '_VRS', 89 B_WINDOW_MOVED = '_WMV', 90 B_WINDOW_RESIZED = '_WRS', 91 B_WORKSPACES_CHANGED = '_WCG', 92 B_WORKSPACE_ACTIVATED = '_WAC', 93 B_ZOOM = '_WZM', 94 _COLORS_UPDATED = '_CLU', // Currently internal-use only. Later, public as B_COLORS_UPDATED 95 _FONTS_UPDATED = '_FNU', // Currently internal-use only. Later, public as B_FONTS_UPDATED 96 _APP_MENU_ = '_AMN', 97 _BROWSER_MENUS_ = '_BRM', 98 _MENU_EVENT_ = '_MEV', 99 _PING_ = '_PBL', 100 _QUIT_ = '_QIT', 101 _VOLUME_MOUNTED_ = '_NVL', 102 _VOLUME_UNMOUNTED_ = '_VRM', 103 _MESSAGE_DROPPED_ = '_MDP', 104 _DISPOSE_DRAG_ = '_DPD', 105 _MENUS_DONE_ = '_MND', 106 _SHOW_DRAG_HANDLES_ = '_SDH', 107 _EVENTS_PENDING_ = '_EVP', 108 _UPDATE_ = '_UPD', 109 _UPDATE_IF_NEEDED_ = '_UPN', 110 _PRINTER_INFO_ = '_PIN', 111 _SETUP_PRINTER_ = '_SUP', 112 _SELECT_PRINTER_ = '_PSL' 113 // Media Kit reserves all reserved codes starting in '_TR' 114 }; 115 116 117 // Other Commands -------------------------------------------------------------- 118 119 enum { 120 B_SET_PROPERTY = 'PSET', 121 B_GET_PROPERTY = 'PGET', 122 B_CREATE_PROPERTY = 'PCRT', 123 B_DELETE_PROPERTY = 'PDEL', 124 B_COUNT_PROPERTIES = 'PCNT', 125 B_EXECUTE_PROPERTY = 'PEXE', 126 B_GET_SUPPORTED_SUITES = 'SUIT', 127 B_UNDO = 'UNDO', 128 B_REDO = 'REDO', 129 B_CUT = 'CCUT', 130 B_COPY = 'COPY', 131 B_PASTE = 'PSTE', 132 B_SELECT_ALL = 'SALL', 133 B_SAVE_REQUESTED = 'SAVE', 134 B_MESSAGE_NOT_UNDERSTOOD = 'MNOT', 135 B_NO_REPLY = 'NONE', 136 B_REPLY = 'RPLY', 137 B_SIMPLE_DATA = 'DATA', 138 B_MIME_DATA = 'MIME', 139 B_ARCHIVED_OBJECT = 'ARCV', 140 B_UPDATE_STATUS_BAR = 'SBUP', 141 B_RESET_STATUS_BAR = 'SBRS', 142 B_NODE_MONITOR = 'NDMN', 143 B_QUERY_UPDATE = 'QUPD', 144 B_ENDORSABLE = 'ENDO', 145 B_COPY_TARGET = 'DDCP', 146 B_MOVE_TARGET = 'DDMV', 147 B_TRASH_TARGET = 'DDRM', 148 B_LINK_TARGET = 'DDLN', 149 B_INPUT_DEVICES_CHANGED = 'IDCH', 150 B_INPUT_METHOD_EVENT = 'IMEV', 151 B_WINDOW_MOVE_TO = 'WDMT', 152 B_WINDOW_MOVE_BY = 'WDMB', 153 B_SILENT_RELAUNCH = 'AREL', 154 B_OBSERVER_NOTICE_CHANGE = 'NTCH', 155 B_CONTROL_INVOKED = 'CIVK', 156 B_CONTROL_MODIFIED = 'CMOD' 157 158 // Media Kit reserves all reserved codes starting in 'TRI' 159 }; 160 //------------------------------------------------------------------------------ 161 162 #endif // _APP_DEFS_H 163 164 /* 165 * $Log $ 166 * 167 * $Id $ 168 * 169 */ 170 171