1 #ifndef COMMON_H 2 #define COMMON_H 3 4 #include <stdio.h> 5 6 #include <AppKit.h> 7 #include <InterfaceKit.h> 8 #include <String.h> 9 #include <StorageKit.h> 10 #include <WindowInfo.h> 11 12 /*************************************************** 13 common.h 14 Constants used by app 15 ***************************************************/ 16 17 // used to check the image to use to get the resources 18 #define APP_NAME "AutoRaise" 19 #define APP_SIG "application/x-vnd.mmu.AutoRaise" 20 #define SETTINGS_FILE "x-vnd.mmu.AutoRaise_settings" 21 22 //names of data segments in settings file 23 //also used in messages 24 25 #define DEFAULT_DELAY 500000LL 26 27 // float: delay before raise 28 #define AR_DELAY "ar:delay" 29 // bool: last state 30 #define AR_ACTIVE "ar:active" 31 32 #define AR_MODE "ar:mode" 33 enum { 34 Mode_All, 35 Mode_DeskbarOver, 36 Mode_DeskbarTouch 37 }; 38 39 #define AR_BEHAVIOUR "ar:behaviour" 40 41 // resources 42 #define ACTIVE_ICON "AR:ON" 43 #define INACTIVE_ICON "AR:OFF" 44 45 // messages 46 47 #define ADD_TO_TRAY 'zATT' 48 #define REMOVE_FROM_TRAY 'zRFT' 49 #define OPEN_SETTINGS 'zOPS' 50 #define MSG_DELAY_POPUP 'arDP' 51 #define MSG_TOGGLE_ACTIVE 'arTA' 52 #define MSG_SET_ACTIVE 'arSA' 53 #define MSG_SET_INACTIVE 'arSI' 54 #define MSG_SET_DELAY 'arSD' 55 #define MSG_SET_MODE 'arSM' 56 #define MSG_SET_BEHAVIOUR 'arSB' 57 58 #endif 59