Move the media characteristic tags view to the standard property view.

This commit is contained in:
Damiano Galassi committed 2016-02-18 12:12:37 +01:00
1 parent 1193fc763d
commit fd28ebe60c
14 files changed
+186 -309

No files matched your search

-16
View File
@@ -23,8 +23,6 @@
#import "SBChapterSearchController.h"
#import "SBMediaTagsController.h"
#import <MP42Foundation/MP42File.h>
#import <MP42Foundation/MP42FileImporter.h>
#import <MP42Foundation/MP42Languages.h>
@@ -394,9 +392,6 @@
if (action == @selector(showTrackOffsetSheet:) && [fileTracksTable selectedRow] != -1)
return YES;
if (action == @selector(showMediaCharacteristicTags:) && [fileTracksTable selectedRow] != -1)
return YES;
if (action == @selector(addChaptersEvery:))
return YES;
@@ -790,17 +785,6 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
[offsetWindow orderOut:self];
}
- (IBAction)showMediaCharacteristicTags:(id)sender
{
_sheet = [[SBMediaTagsController alloc] initWithTrack:self.mp4.tracks[fileTracksTable.selectedRow]];
[NSApp beginSheet:_sheet.window
modalForWindow:documentWindow
modalDelegate:self
didEndSelector:@selector(mediaSheetDidEnd:returnCode:contextInfo:)
contextInfo:nil];
}
- (void)mediaSheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo {
if (returnCode == NSOKButton) {
[self updateChangeCount:NSChangeDone];