Ignore:
Timestamp:
11/05/07 10:20:10 (16 years ago)
Author:
Nicholas Riley
Message:

Updated for 1.4njr3. Fixed whitespace for consistent 8-space tabs.

File:
1 edited

Legend:

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

    r333 r346  
    2525#define sLatestVersionURL @"http://web.sabi.net/nriley/software/AntiRSI-version.txt"
    2626#define sURL @"http://web.sabi.net/nriley/software/#antirsi"
    27 #define sVersion @"1.4njr2"
     27#define sVersion @"1.4njr3"
    2828
    2929typedef enum _AntiRSIState {
    30         s_normal = 0,
    31         s_taking_micro_pause,
    32         s_taking_work_break,
     30    s_normal = 0,
     31    s_taking_micro_pause,
     32    s_taking_work_break,
    3333} AntiRSIState;
    3434
    3535@interface AntiRSI : NSObject
    3636{
    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;
     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;
    4343    IBOutlet NSTextField *session_time;
    4444    IBOutlet NSTextField *status;
    45         IBOutlet NSTextField *version; // XXX unused?
     45    IBOutlet NSTextField *version; // XXX unused?
    4646    IBOutlet NSDatePicker *reset_session_time;
    4747   
     
    5050    IBOutlet NSMenuItem *session_time_item;
    5151   
    52         // dock icon image
    53         NSImage* dock_image;
    54         NSImage* original_dock_image;
     52    // dock icon image
     53    NSImage* dock_image;
     54    NSImage* original_dock_image;
    5555    CTBadge* dock_badge;
    5656       
    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;
     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;
    7070    double session_t;
    71         double date;
     71    double date;
    7272    double reset_session_date;
    7373               
    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;
     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;
    8787    bool reset_session_timer_daily;
    8888    bool reset_session_timer_after;
     
    9090    int reset_session_timer_after_hours;
    9191       
    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;
     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;
    105105}
    106106
     
    154154
    155155@end
    156 
    157 
    158 
Note: See TracChangeset for help on using the changeset viewer.