1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/* All Rights reserved */
#include <AppKit/AppKit.h>
#include "Todo.h"
@interface Backend : NSObject
{
id text;
id imageView;
int aktTodo;
id todos;
id timer;
id progress;
id button;
id preferences;
id prf_tableView;
id prf_buttonText;
id prf_imageText;
id prf_durationText;
id prf_image;
}
- (id) init;
- (void) tick;
- (void) StartWashing: (id)sender;
- (void) clickedButton: (id)sender;
- (void) showPreferences: (id)sender;
+ (NSString *) secondsToDuration: (long) seconds;
-(void) savePreferences;
// actions of the preferences panel
- (void) prf_save: (id)sender;
- (void) prf_add: (id)sender;
- (void) prf_del: (id)sender;
// Delegate functions for preferences table view
-(void)tableViewSelectionDidChange:(NSNotification *) noty;
- (void)textDidChange:(NSNotification *)tnot;
-(void) applicationDidFinishLaunching: (NSNotification *) not;
// tableview data source methods:
- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
// Delegate functions for NSApp
@end
|