1 /* 2 * Copyright 2008, Oliver Tappe, zooey@hirschkaefer.de. 3 * Copyright 2008-2012, Ingo Weinhold, ingo_weinhold@gmx.de. 4 * Distributed under the terms of the MIT License. 5 */ 6 #ifndef _BINARY_COMPATIBILITY_GLOBAL_H_ 7 #define _BINARY_COMPATIBILITY_GLOBAL_H_ 8 9 10 #if __GNUC__ == 2 11 # define B_IF_GCC_2(ifBlock, elseBlock) ifBlock 12 #else 13 # define B_IF_GCC_2(ifBlock, elseBlock) elseBlock 14 #endif 15 16 17 // method codes 18 enum { 19 // app kit 20 21 // interface kit 22 PERFORM_CODE_MIN_SIZE = 1000, 23 PERFORM_CODE_MAX_SIZE = 1001, 24 PERFORM_CODE_PREFERRED_SIZE = 1002, 25 PERFORM_CODE_LAYOUT_ALIGNMENT = 1003, 26 PERFORM_CODE_HAS_HEIGHT_FOR_WIDTH = 1004, 27 PERFORM_CODE_GET_HEIGHT_FOR_WIDTH = 1005, 28 PERFORM_CODE_SET_LAYOUT = 1006, 29 PERFORM_CODE_LAYOUT_INVALIDATED = 1007, 30 PERFORM_CODE_DO_LAYOUT = 1008, 31 PERFORM_CODE_GET_TOOL_TIP_AT = 1009, 32 PERFORM_CODE_LAYOUT_CHANGED = 1010, 33 PERFORM_CODE_SET_ICON = 1011, 34 35 // support kit 36 PERFORM_CODE_ALL_ARCHIVED = 2000, 37 PERFORM_CODE_ALL_UNARCHIVED = 2001, 38 }; 39 40 41 #endif // _BINARY_COMPATIBILITY__GLOBAL_H_ 42