Reorganize and fix typography
This commit is contained in:
parent
1159ba793a
commit
454adfb9d1
|
@ -97,6 +97,21 @@
|
|||
withEvent:nil select:YES];
|
||||
}
|
||||
|
||||
- (void)delete:(id)sender
|
||||
{
|
||||
NSResponder * responder = [[self window] firstResponder];
|
||||
while (responder && responder != self) {
|
||||
if (responder == mediaTable) {
|
||||
[mediaController remove:sender];
|
||||
break;
|
||||
} else if (responder == annotationTable) {
|
||||
[annotationController remove:sender];
|
||||
break;
|
||||
}
|
||||
responder = [responder nextResponder];
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)toggleMediaPlay:(id)sender
|
||||
{
|
||||
if ([[movieView movie] rate] > 0.0f)
|
||||
|
@ -171,38 +186,23 @@ static NSTimeInterval sLastSkip = 0.0;
|
|||
return [[self document] tagDescriptionForName:editingString];
|
||||
}
|
||||
|
||||
#pragma mark Menu commands
|
||||
|
||||
- (IBAction)delete:(id)sender
|
||||
{
|
||||
NSResponder * responder = [[self window] firstResponder];
|
||||
while (responder && responder != self) {
|
||||
if (responder == mediaTable) {
|
||||
[mediaController remove:sender];
|
||||
break;
|
||||
} else if (responder == annotationTable) {
|
||||
[annotationController remove:sender];
|
||||
break;
|
||||
}
|
||||
responder = [responder nextResponder];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark Split management
|
||||
|
||||
-(CGFloat)splitView:(NSSplitView *)splitView constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)dividerIndex
|
||||
- (CGFloat)splitView:(NSSplitView *)splitView constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)dividerIndex
|
||||
{
|
||||
return splitView.frame.size.height-108.0;
|
||||
}
|
||||
|
||||
-(CGFloat)splitView:(NSSplitView *)splitView constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)dividerIndex
|
||||
|
||||
- (CGFloat)splitView:(NSSplitView *)splitView constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)dividerIndex
|
||||
{
|
||||
return 80.0;
|
||||
}
|
||||
|
||||
// This only prevents resizing the topView in cases where the user does not use the divider (resizing the window primarily).
|
||||
-(BOOL)splitView:(NSSplitView *)splitView shouldAdjustSizeOfSubview:(NSView *)subview
|
||||
- (BOOL)splitView:(NSSplitView *)splitView shouldAdjustSizeOfSubview:(NSView *)subview
|
||||
{
|
||||
//
|
||||
// Only resize the bottom view if window is resized or zoomed
|
||||
//
|
||||
return subview != [[splitView subviews] objectAtIndex:0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user