Ignore:
Timestamp:
08/06/07 19:01:05 (13 years ago)
Author:
Nicholas Riley
Message:

Info.plist: Updated for 1.4njr1.

AntiRSI.xcodeproj: Disable prebinding.

AntiRSI.[hm]: Added session time support; consolidated break window update drawing; fixed -[AntiRSI validateMenuItem:] so it compares selectors rather than titles.

English.lproj/MainMenu.nib: Redid preferences window, menu bar, dock menu, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/AntiRSI/AntiRSI.h

    r329 r330  
    4040        IBOutlet NSTextField *time;
    4141        IBOutlet NSTextField *next_break;
     42    IBOutlet NSTextField *session_time;
    4243    IBOutlet NSTextField *status;
    43         IBOutlet NSTextField *version;
     44        IBOutlet NSTextField *version; // XXX unused?
     45   
     46    // dock menu
     47    IBOutlet NSMenu *dock_menu;
     48    IBOutlet NSMenuItem *session_time_item;
    4449   
    4550        // dock icon image
     
    6065        double work_break_taking_cached_t;
    6166        double work_break_taking_cached_date;
     67    double session_t;
    6268        double date;
    6369               
     
    111117- (IBAction)breakNow:(id)sender;
    112118
     119// reset session time menu item
     120- (IBAction)resetSession:(id)sender;
     121
     122// returns string of the form "Session: 12:34:56"
     123- (NSString *)sessionTimeString;
     124
    113125// one second ticks away ...
    114126- (void)tick:(NSTimer *)timer;
     
    126138- (void)endBreak;
    127139
    128 // time left string
    129 - (void)drawTimeLeft:(double)seconds;
    130 
    131 // time to next break string
    132 - (void)drawNextBreak:(int)seconds;
     140// update window
     141- (void)updateBreakWindowDuration:(double)duration progress:(double)progress_t nextBreak:(double)nextBreak;
    133142
    134143@end
Note: See TracChangeset for help on using the changeset viewer.