forked from damariei/wiiscale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppController.h
51 lines (41 loc) · 1.22 KB
/
AppController.h
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
#import <Cocoa/Cocoa.h>
#import "PrefsController.h"
#import "WiiRemote.h"
#import "WiiRemoteDiscovery.h"
#import "FPLevelIndicator.h"
@interface AppController : NSWindowController<WiiRemoteDelegate, WiiRemoteDiscoveryDelegate> {
IBOutlet NSProgressIndicator* spinner;
IBOutlet NSProgressIndicator* ghspinner;
IBOutlet NSTextField* weight;
IBOutlet NSTextField* status;
IBOutlet NSTextField* bbstatus;
IBOutlet FPLevelIndicator* weightIndicator;
IBOutlet NSPopUpButton* profilesPopUp;
IBOutlet NSMenuItem* fileConnect;
IBOutlet NSMenuItem* fileTare;
IBOutlet NSButton *profileButton;
IBOutlet NSWindow* prefs;
IBOutlet PrefsController *prefsController;
NSMutableArray *profiles;
NSDictionary *strings;
WiiRemoteDiscovery* discovery;
WiiRemote* wii;
float tare;
float avgWeight;
float sentWeight;
float lastWeight;
float weightSamples[100];
float weightSum;
float weightSquareSums;
int weightSampleIndex;
BOOL sent;
float height_cm;
}
- (NSString*)stringForKey:(NSString *)key;
- (NSArray*)getFromStorage;
- (void)setToStorage:(NSArray *)storeArray;
- (IBAction)doDiscovery:(id)sender;
- (IBAction)doTare:(id)sender;
- (IBAction)showPrefs:(id)sender;
- (IBAction)profileChanged:(id)sender;
@end