1 //**************************************************************************************** 2 // 3 // File: Common.h 4 // 5 // Written by: Daniel Switkin 6 // 7 // Copyright 1999, Be Incorporated 8 // 9 //**************************************************************************************** 10 11 #ifndef COMMON_H 12 #define COMMON_H 13 14 enum { 15 NORMAL_WINDOW_MODE = 0, 16 MINI_WINDOW_MODE, 17 DESKBAR_MODE 18 }; 19 20 enum { 21 PULSEVIEW_WIDTH = 263, 22 PULSEVIEW_MIN_HEIGHT = 82, 23 PROGRESS_MLEFT = 101, 24 PROGRESS_MTOP = 18, 25 PROGRESS_MBOTTOM = 10, 26 CPUBUTTON_MLEFT = 79, 27 CPUBUTTON_MTOP = 20, 28 CPUBUTTON_WIDTH = 16, 29 CPUBUTTON_HEIGHT = 16, 30 ITEM_OFFSET = 27 31 }; 32 33 #define APP_SIGNATURE "application/x-vnd.Haiku-Pulse" 34 35 #define PV_NORMAL_MODE 'pvnm' 36 #define PV_MINI_MODE 'pvmm' 37 #define PV_DESKBAR_MODE 'pvdm' 38 #define PV_PREFERENCES 'pvpr' 39 #define PV_ABOUT 'pvab' 40 #define PV_QUIT 'pvqt' 41 #define PV_CPU_MENU_ITEM 'pvcm' 42 #define PV_REPLICANT_PULSE 'pvrp' 43 44 #define PRV_NORMAL_FADE_COLORS 'prnf' 45 #define PRV_NORMAL_CHANGE_COLOR 'prnc' 46 #define PRV_MINI_ACTIVE 'prma' 47 #define PRV_MINI_IDLE 'prmi' 48 #define PRV_MINI_FRAME 'prmf' 49 #define PRV_MINI_CHANGE_COLOR 'prmc' 50 #define PRV_DESKBAR_ACTIVE 'prda' 51 #define PRV_DESKBAR_IDLE 'prdi' 52 #define PRV_DESKBAR_FRAME 'prdf' 53 #define PRV_DESKBAR_ICON_WIDTH 'prdw' 54 #define PRV_DESKBAR_CHANGE_COLOR 'prdc' 55 #define PRV_BOTTOM_OK 'prbo' 56 #define PRV_BOTTOM_DEFAULTS 'prbd' 57 #define PRV_QUIT 'prvq' 58 59 #define DEFAULT_NORMAL_BAR_COLOR 0x00f00000 60 #define DEFAULT_MINI_ACTIVE_COLOR 0x20c02000 61 #define DEFAULT_MINI_IDLE_COLOR 0x20402000 62 #define DEFAULT_MINI_FRAME_COLOR 0x20202000 63 #define DEFAULT_DESKBAR_ACTIVE_COLOR 0x20c02000 64 #define DEFAULT_DESKBAR_IDLE_COLOR 0x20402000 65 #define DEFAULT_DESKBAR_FRAME_COLOR 0x20202000 66 #define DEFAULT_NORMAL_FADE_COLORS true 67 #define DEFAULT_DESKBAR_ICON_WIDTH 9 68 69 #endif 70