Changeset 346 for trunk/Cocoa/AntiRSI/AntiRSI.h
- Timestamp:
- 11/05/07 10:20:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/AntiRSI/AntiRSI.h
r333 r346 25 25 #define sLatestVersionURL @"http://web.sabi.net/nriley/software/AntiRSI-version.txt" 26 26 #define sURL @"http://web.sabi.net/nriley/software/#antirsi" 27 #define sVersion @"1.4njr 2"27 #define sVersion @"1.4njr3" 28 28 29 29 typedef enum _AntiRSIState { 30 31 32 30 s_normal = 0, 31 s_taking_micro_pause, 32 s_taking_work_break, 33 33 } AntiRSIState; 34 34 35 35 @interface AntiRSI : NSObject 36 36 { 37 38 39 40 41 42 37 // views to display current status in 38 IBOutlet AntiRSIView *view; 39 IBOutlet NSLevelIndicator *progress; 40 IBOutlet NSButton *postpone; 41 IBOutlet NSTextField *time; 42 IBOutlet NSTextField *next_break; 43 43 IBOutlet NSTextField *session_time; 44 44 IBOutlet NSTextField *status; 45 45 IBOutlet NSTextField *version; // XXX unused? 46 46 IBOutlet NSDatePicker *reset_session_time; 47 47 … … 50 50 IBOutlet NSMenuItem *session_time_item; 51 51 52 53 54 52 // dock icon image 53 NSImage* dock_image; 54 NSImage* original_dock_image; 55 55 CTBadge* dock_badge; 56 56 57 58 59 60 61 62 63 64 65 66 67 68 69 57 // window to display the views in 58 NSWindow *main_window; 59 60 // timer that ticks every second to update 61 NSTimer *mtimer; 62 63 // various timers 64 double micro_pause_t; 65 double work_break_t; 66 double micro_pause_taking_t; 67 double work_break_taking_t; 68 double work_break_taking_cached_t; 69 double work_break_taking_cached_date; 70 70 double session_t; 71 71 double date; 72 72 double reset_session_date; 73 73 74 75 76 77 78 79 80 81 82 83 84 85 86 74 // various timing lengths 75 int micro_pause_period; 76 int micro_pause_duration; 77 int work_break_period; 78 int work_break_duration; 79 80 double sample_interval; 81 82 // verious other options 83 bool lock_focus; 84 bool draw_dock_image; 85 bool draw_dock_badge; 86 bool draw_dock_image_q; 87 87 bool reset_session_timer_daily; 88 88 bool reset_session_timer_after; … … 90 90 int reset_session_timer_after_hours; 91 91 92 93 94 95 96 97 98 99 100 101 102 103 104 92 // various colors 93 NSColor* taking; 94 NSColor* elapsed; 95 NSColor* background; 96 NSColor* darkbackground; 97 98 // state we are in 99 AntiRSIState state; 100 101 // history filter 102 double h0; 103 double h1; 104 double h2; 105 105 } 106 106 … … 154 154 155 155 @end 156 157 158
Note:
See TracChangeset
for help on using the changeset viewer.