Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (56 sloc) 1.987 kb
86a3973 @oatmealandcoffee Initial commit to GitHub
authored
1 //
2 // OCSelectKeyWindowController.m
3 // Bridge
4 //
5 // Created by Philip Regan on 2011/11/27.
6 // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
7 //
8
9 #import "OCSelectKeyWindowController.h"
10
11 #import "OCWindowController.h"
12 #import "OCConstants.h"
13
14 @implementation OCSelectKeyWindowController
15 @synthesize windowController;
16
17 - (id)initWithWindow:(NSWindow *)window
18 {
19 self = [super initWithWindow:window];
20 if (self) {
21
22 }
23
24 return self;
25 }
26
27 - (void)initInterface
28 {
29 // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
30 [keyTonicMenu removeAllItems];
31 [keyTonicMenu addItemWithTitle:kKeyType_C];
32 [keyTonicMenu addItemWithTitle:kKeyType_CsharpDflat];
33 [keyTonicMenu addItemWithTitle:kKeyType_D];
34 [keyTonicMenu addItemWithTitle:kKeyType_DsharpEflat];
35 [keyTonicMenu addItemWithTitle:kKeyType_E];
36 [keyTonicMenu addItemWithTitle:kKeyType_F];
37 [keyTonicMenu addItemWithTitle:kKeyType_FsharpGflat];
38 [keyTonicMenu addItemWithTitle:kKeyType_G];
39 [keyTonicMenu addItemWithTitle:kKeyType_GsharpAFlat];
40 [keyTonicMenu addItemWithTitle:kKeyType_A];
41 [keyTonicMenu addItemWithTitle:kKeyType_AsharpBflat];
42 [keyTonicMenu addItemWithTitle:kKeyType_B];
43
44 [keyTypeMenu removeAllItems];
45 [keyTypeMenu addItemWithTitle:kKeyMajor];
46 [keyTypeMenu addItemWithTitle:kKeyMinor];
47 [keyTypeMenu addItemWithTitle:kKeyMinorHarmonic];
48 [keyTypeMenu addItemWithTitle:kKeyMinorMelodic];
49 [keyTypeMenu addItemWithTitle:kKeyPentatonicMajor];
50 [keyTypeMenu addItemWithTitle:kKeyPentatonicMinor];
51
52 }
53
54 - (IBAction)setKeyTonic:(id)sender {
55 [windowController setKeyTonic:sender];
56 }
57
58 - (IBAction)setKeyType:(id)sender {
59 [windowController setKeyType:sender];
60 }
61
62 - (IBAction)okButton:(id)sender {
63 [windowController keyOkButton:sender];
64 }
65
66 - (IBAction)cancelButton:(id)sender {
67 [windowController keyCancelButton:sender];
68 }
69 @end
Something went wrong with that request. Please try again.