2006-10-28 09:18:55 +00:00
|
|
|
|
//
|
2007-04-27 06:41:34 +00:00
|
|
|
|
// File: VLSheetWindow.mm - Control lead sheet editing window
|
2006-10-28 09:18:55 +00:00
|
|
|
|
//
|
2007-04-27 06:41:34 +00:00
|
|
|
|
// Author(s):
|
|
|
|
|
//
|
|
|
|
|
// (MN) Matthias Neeracher
|
|
|
|
|
//
|
2011-08-29 00:01:49 +00:00
|
|
|
|
// Copyright <20> 2005-2011 Matthias Neeracher
|
2006-10-28 09:18:55 +00:00
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "VLSheetWindow.h"
|
|
|
|
|
#import "VLDocument.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@implementation VLEditable
|
|
|
|
|
|
|
|
|
|
- (NSString *) stringValue
|
|
|
|
|
{
|
|
|
|
|
return @"";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void) setStringValue:(NSString*)val
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (BOOL) validValue:(NSString*)val
|
|
|
|
|
{
|
|
|
|
|
return YES;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void) moveToNext
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void) moveToPrev
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void) highlightCursor
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@implementation VLSheetWindow
|
|
|
|
|
|
|
|
|
|
- (id)initWithWindow:(NSWindow *)window
|
|
|
|
|
{
|
|
|
|
|
if (self = [super initWithWindow:window]) {
|
|
|
|
|
editTarget = nil;
|
|
|
|
|
}
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (VLEditable *)editTarget
|
|
|
|
|
{
|
|
|
|
|
return editTarget;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void)setEditTarget:(VLEditable *)editable
|
|
|
|
|
{
|
|
|
|
|
editTarget = editable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void)windowDidLoad
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2007-04-18 07:05:04 +00:00
|
|
|
|
- (void) startAnimation
|
|
|
|
|
{
|
2011-08-29 00:01:49 +00:00
|
|
|
|
[progressIndicator startAnimation:self];
|
2007-04-18 07:05:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void) stopAnimation
|
|
|
|
|
{
|
2011-08-29 00:01:49 +00:00
|
|
|
|
[progressIndicator stopAnimation:self];
|
2007-04-18 07:05:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
2008-01-29 03:02:25 +00:00
|
|
|
|
- (IBAction) zoomIn: (id) sender
|
|
|
|
|
{
|
|
|
|
|
[sheetView zoomIn:sender];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (IBAction) zoomOut: (id) sender
|
|
|
|
|
{
|
|
|
|
|
[sheetView zoomOut:sender];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void) mouseMoved:(NSEvent *)event
|
|
|
|
|
{
|
|
|
|
|
[sheetView mouseMoved:event];
|
|
|
|
|
}
|
|
|
|
|
|
2008-05-29 18:54:30 +00:00
|
|
|
|
- (void) willPlaySequence:(MusicSequence)music
|
|
|
|
|
{
|
|
|
|
|
[sheetView willPlaySequence:music];
|
|
|
|
|
}
|
|
|
|
|
|
2006-10-28 09:18:55 +00:00
|
|
|
|
@end
|