2006-02-21 14:18:17 +03:00
|
|
|
/*
|
2007-04-14 22:11:42 +04:00
|
|
|
* Copyright 2001-2007, Haiku Inc. All Rights Reserved.
|
2006-02-21 14:18:17 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Erik Jaesler (erik@cgsoftware.com)
|
|
|
|
*/
|
2002-07-09 16:24:59 +04:00
|
|
|
#ifndef _APP_DEFS_H
|
|
|
|
#define _APP_DEFS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <BeBuild.h>
|
|
|
|
|
|
|
|
|
|
|
|
// Old-style cursors
|
|
|
|
extern const unsigned char B_HAND_CURSOR[];
|
|
|
|
extern const unsigned char B_I_BEAM_CURSOR[];
|
|
|
|
|
|
|
|
// New-style cursors
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class BCursor;
|
|
|
|
extern const BCursor *B_CURSOR_SYSTEM_DEFAULT;
|
|
|
|
extern const BCursor *B_CURSOR_I_BEAM;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2007-04-14 22:11:42 +04:00
|
|
|
// System Message Codes
|
2002-07-09 16:24:59 +04:00
|
|
|
enum {
|
|
|
|
B_ABOUT_REQUESTED = '_ABR',
|
|
|
|
B_WINDOW_ACTIVATED = '_ACT',
|
|
|
|
B_APP_ACTIVATED = '_ACT', // Same as B_WINDOW_ACTIVATED
|
|
|
|
B_ARGV_RECEIVED = '_ARG',
|
|
|
|
B_QUIT_REQUESTED = '_QRQ',
|
|
|
|
B_CLOSE_REQUESTED = '_QRQ', // Obsolete; use B_QUIT_REQUESTED
|
|
|
|
B_CANCEL = '_CNC',
|
2007-04-14 22:11:42 +04:00
|
|
|
B_INVALIDATE = '_IVL',
|
2002-07-09 16:24:59 +04:00
|
|
|
B_KEY_DOWN = '_KYD',
|
|
|
|
B_KEY_UP = '_KYU',
|
|
|
|
B_UNMAPPED_KEY_DOWN = '_UKD',
|
|
|
|
B_UNMAPPED_KEY_UP = '_UKU',
|
2006-08-26 20:21:15 +04:00
|
|
|
B_LAYOUT_WINDOW = '_LAY',
|
2002-07-09 16:24:59 +04:00
|
|
|
B_MODIFIERS_CHANGED = '_MCH',
|
|
|
|
B_MINIMIZE = '_WMN',
|
|
|
|
B_MOUSE_DOWN = '_MDN',
|
|
|
|
B_MOUSE_MOVED = '_MMV',
|
|
|
|
B_MOUSE_ENTER_EXIT = '_MEX',
|
2009-08-03 18:47:41 +04:00
|
|
|
B_MOUSE_IDLE = '_MSI',
|
2002-07-09 16:24:59 +04:00
|
|
|
B_MOUSE_UP = '_MUP',
|
|
|
|
B_MOUSE_WHEEL_CHANGED = '_MWC',
|
|
|
|
B_OPEN_IN_WORKSPACE = '_OWS',
|
|
|
|
B_PRINTER_CHANGED = '_PCH',
|
|
|
|
B_PULSE = '_PUL',
|
|
|
|
B_READY_TO_RUN = '_RTR',
|
|
|
|
B_REFS_RECEIVED = '_RRC',
|
|
|
|
B_RELEASE_OVERLAY_LOCK = '_ROV',
|
|
|
|
B_ACQUIRE_OVERLAY_LOCK = '_AOV',
|
|
|
|
B_SCREEN_CHANGED = '_SCH',
|
|
|
|
B_VALUE_CHANGED = '_VCH',
|
2006-04-29 22:02:46 +04:00
|
|
|
B_TRANSLATOR_ADDED = '_ART',
|
|
|
|
B_TRANSLATOR_REMOVED = '_RRT',
|
2002-07-09 16:24:59 +04:00
|
|
|
B_VIEW_MOVED = '_VMV',
|
|
|
|
B_VIEW_RESIZED = '_VRS',
|
|
|
|
B_WINDOW_MOVED = '_WMV',
|
|
|
|
B_WINDOW_RESIZED = '_WRS',
|
|
|
|
B_WORKSPACES_CHANGED = '_WCG',
|
|
|
|
B_WORKSPACE_ACTIVATED = '_WAC',
|
|
|
|
B_ZOOM = '_WZM',
|
2007-04-14 22:11:42 +04:00
|
|
|
_COLORS_UPDATED = '_CLU',
|
|
|
|
// Currently internal-use only. Later, public as B_COLORS_UPDATED
|
|
|
|
_FONTS_UPDATED = '_FNU',
|
|
|
|
// Currently internal-use only. Later, public as B_FONTS_UPDATED
|
2002-07-09 16:24:59 +04:00
|
|
|
_APP_MENU_ = '_AMN',
|
|
|
|
_BROWSER_MENUS_ = '_BRM',
|
|
|
|
_MENU_EVENT_ = '_MEV',
|
|
|
|
_PING_ = '_PBL',
|
|
|
|
_QUIT_ = '_QIT',
|
|
|
|
_VOLUME_MOUNTED_ = '_NVL',
|
|
|
|
_VOLUME_UNMOUNTED_ = '_VRM',
|
|
|
|
_MESSAGE_DROPPED_ = '_MDP',
|
|
|
|
_DISPOSE_DRAG_ = '_DPD',
|
|
|
|
_MENUS_DONE_ = '_MND',
|
|
|
|
_SHOW_DRAG_HANDLES_ = '_SDH',
|
|
|
|
_EVENTS_PENDING_ = '_EVP',
|
|
|
|
_UPDATE_ = '_UPD',
|
|
|
|
_UPDATE_IF_NEEDED_ = '_UPN',
|
|
|
|
_PRINTER_INFO_ = '_PIN',
|
|
|
|
_SETUP_PRINTER_ = '_SUP',
|
|
|
|
_SELECT_PRINTER_ = '_PSL'
|
|
|
|
// Media Kit reserves all reserved codes starting in '_TR'
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-04-14 22:11:42 +04:00
|
|
|
// Other Commands
|
2002-07-09 16:24:59 +04:00
|
|
|
enum {
|
|
|
|
B_SET_PROPERTY = 'PSET',
|
|
|
|
B_GET_PROPERTY = 'PGET',
|
|
|
|
B_CREATE_PROPERTY = 'PCRT',
|
|
|
|
B_DELETE_PROPERTY = 'PDEL',
|
|
|
|
B_COUNT_PROPERTIES = 'PCNT',
|
|
|
|
B_EXECUTE_PROPERTY = 'PEXE',
|
|
|
|
B_GET_SUPPORTED_SUITES = 'SUIT',
|
|
|
|
B_UNDO = 'UNDO',
|
2004-02-24 18:32:16 +03:00
|
|
|
B_REDO = 'REDO',
|
2002-07-09 16:24:59 +04:00
|
|
|
B_CUT = 'CCUT',
|
|
|
|
B_COPY = 'COPY',
|
|
|
|
B_PASTE = 'PSTE',
|
|
|
|
B_SELECT_ALL = 'SALL',
|
|
|
|
B_SAVE_REQUESTED = 'SAVE',
|
|
|
|
B_MESSAGE_NOT_UNDERSTOOD = 'MNOT',
|
|
|
|
B_NO_REPLY = 'NONE',
|
|
|
|
B_REPLY = 'RPLY',
|
|
|
|
B_SIMPLE_DATA = 'DATA',
|
|
|
|
B_MIME_DATA = 'MIME',
|
|
|
|
B_ARCHIVED_OBJECT = 'ARCV',
|
|
|
|
B_UPDATE_STATUS_BAR = 'SBUP',
|
|
|
|
B_RESET_STATUS_BAR = 'SBRS',
|
|
|
|
B_NODE_MONITOR = 'NDMN',
|
|
|
|
B_QUERY_UPDATE = 'QUPD',
|
|
|
|
B_ENDORSABLE = 'ENDO',
|
|
|
|
B_COPY_TARGET = 'DDCP',
|
|
|
|
B_MOVE_TARGET = 'DDMV',
|
|
|
|
B_TRASH_TARGET = 'DDRM',
|
|
|
|
B_LINK_TARGET = 'DDLN',
|
|
|
|
B_INPUT_DEVICES_CHANGED = 'IDCH',
|
|
|
|
B_INPUT_METHOD_EVENT = 'IMEV',
|
|
|
|
B_WINDOW_MOVE_TO = 'WDMT',
|
|
|
|
B_WINDOW_MOVE_BY = 'WDMB',
|
|
|
|
B_SILENT_RELAUNCH = 'AREL',
|
|
|
|
B_OBSERVER_NOTICE_CHANGE = 'NTCH',
|
|
|
|
B_CONTROL_INVOKED = 'CIVK',
|
|
|
|
B_CONTROL_MODIFIED = 'CMOD'
|
|
|
|
|
|
|
|
// Media Kit reserves all reserved codes starting in 'TRI'
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _APP_DEFS_H
|