| 1 |
/* RecordPanelController */ |
| 2 |
|
| 3 |
/* |
| 4 |
Copyright 2010-2011 Toshi Nagata. All rights reserved. |
| 5 |
|
| 6 |
This program is free software; you can redistribute it and/or modify |
| 7 |
it under the terms of the GNU General Public License as published by |
| 8 |
the Free Software Foundation version 2 of the License. |
| 9 |
|
| 10 |
This program is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
*/ |
| 15 |
|
| 16 |
#import <Cocoa/Cocoa.h> |
| 17 |
|
| 18 |
#include "MDHeaders.h" |
| 19 |
#import "MyMIDISequence.h" |
| 20 |
|
| 21 |
@class MyDocument; |
| 22 |
|
| 23 |
@interface RecordPanelController : NSWindowController |
| 24 |
{ |
| 25 |
IBOutlet NSPopUpButton *barBeatPopUp; |
| 26 |
IBOutlet NSTextField *barBeatText; |
| 27 |
IBOutlet NSPopUpButton *destinationDevicePopUp; |
| 28 |
IBOutlet NSPopUpButton *sourceDevicePopUp; |
| 29 |
IBOutlet NSPopUpButton *midiChannelPopUp; |
| 30 |
IBOutlet NSPopUpButton *modePopUp; |
| 31 |
IBOutlet NSMatrix *overdubRadioMatrix; |
| 32 |
IBOutlet NSPopUpButton *destinationTrackPopUp; |
| 33 |
IBOutlet NSTextField *startTickText; |
| 34 |
IBOutlet NSButton *stopTickCheckbox; |
| 35 |
IBOutlet NSButton *startRecordingButton; |
| 36 |
IBOutlet NSTextField *stopTickText; |
| 37 |
IBOutlet NSButton *playThruCheckbox; |
| 38 |
IBOutlet NSPopUpButton *audioFormatPopUp; |
| 39 |
IBOutlet NSPopUpButton *audioSampleRatePopUp; |
| 40 |
IBOutlet NSPopUpButton *audioChannelsPopUp; |
| 41 |
IBOutlet NSTextField *audioFileLocationText; |
| 42 |
IBOutlet NSTextField *audioFileNameText; |
| 43 |
IBOutlet NSSlider *audioVolumeSlider; |
| 44 |
IBOutlet NSLevelIndicator *audioLeftLevel; |
| 45 |
IBOutlet NSLevelIndicator *audioRightLevel; |
| 46 |
IBOutlet NSPopUpButton *transposeOctavePopUp; |
| 47 |
IBOutlet NSPopUpButton *transposeNotePopUp; |
| 48 |
|
| 49 |
BOOL stopModalFlag; |
| 50 |
BOOL isAudio; |
| 51 |
MyDocument *myDocument; |
| 52 |
MDCalibrator *calib; |
| 53 |
NSMutableDictionary *info; |
| 54 |
|
| 55 |
NSTextField *editingText; /* The editing text control */ |
| 56 |
|
| 57 |
NSTimer *timer; /* Refresh the display periodically during playing */ |
| 58 |
} |
| 59 |
- (id)initWithDocument: (MyDocument *)document audio: (BOOL)isAudio; |
| 60 |
- (void)reloadInfoFromDocument; |
| 61 |
- (void)saveInfoToDocument; |
| 62 |
//- (void)beginSheetForWindow: (NSWindow *)parentWindow invokeStopModalWhenDone: (BOOL)flag; |
| 63 |
- (IBAction)barBeatTextChanged:(id)sender; |
| 64 |
- (IBAction)cancelButtonPressed:(id)sender; |
| 65 |
- (IBAction)myPopUpAction:(id)sender; |
| 66 |
- (IBAction)overdubRadioChecked:(id)sender; |
| 67 |
- (IBAction)startButtonPressed:(id)sender; |
| 68 |
- (IBAction)stopCheckboxClicked:(id)sender; |
| 69 |
//- (IBAction)playThruCheckboxClicked:(id)sender; |
| 70 |
- (IBAction)tickTextChanged:(id)sender; |
| 71 |
- (IBAction)chooseDestinationFile:(id)sender; |
| 72 |
- (IBAction)destinationTextChanged:(id)sender; |
| 73 |
//- (IBAction)volumeSliderMoved:(id)sender; |
| 74 |
@end |