2008-06-21 04:05:30 +00:00
|
|
|
//
|
2009-03-07 21:31:44 +00:00
|
|
|
// SplitViewController.m
|
2008-06-21 04:05:30 +00:00
|
|
|
// Cog
|
|
|
|
//
|
2009-03-07 21:31:44 +00:00
|
|
|
// Created by Vincent Spader on 6/20/08.
|
2008-06-21 04:05:30 +00:00
|
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "FileTreeViewController.h"
|
2016-05-05 20:05:39 +00:00
|
|
|
#import "PlaybackController.h"
|
2022-02-07 05:49:27 +00:00
|
|
|
#import "PlaylistLoader.h"
|
2008-06-21 04:05:30 +00:00
|
|
|
|
|
|
|
@implementation FileTreeViewController
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (id)init {
|
2009-03-07 21:31:44 +00:00
|
|
|
return [super initWithNibName:@"FileTree" bundle:[NSBundle mainBundle]];
|
|
|
|
}
|
2008-06-21 04:05:30 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)addToPlaylistInternal:(NSArray *)urls {
|
2013-10-12 21:31:28 +00:00
|
|
|
[self doAddToPlaylist:urls origin:URLOriginInternal];
|
|
|
|
}
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)addToPlaylistExternal:(NSArray *)urls {
|
|
|
|
[self doAddToPlaylist:urls origin:URLOriginExternal];
|
2013-10-12 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)doAddToPlaylist:(NSArray *)urls origin:(URLOrigin)origin {
|
|
|
|
[playlistLoader willInsertURLs:urls origin:origin];
|
|
|
|
[playlistLoader didInsertURLs:[playlistLoader addURLs:urls sort:YES] origin:origin];
|
2008-06-21 04:05:30 +00:00
|
|
|
}
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)clear:(id)sender {
|
2009-08-16 16:49:34 +00:00
|
|
|
[playlistLoader clear:sender];
|
|
|
|
}
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)playPauseResume:(NSObject *)id {
|
2009-08-16 16:49:34 +00:00
|
|
|
[playbackController playPauseResume:id];
|
|
|
|
}
|
2008-06-21 04:05:30 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (FileTreeOutlineView *)outlineView {
|
|
|
|
return fileTreeOutlineView;
|
2013-10-11 10:03:23 +00:00
|
|
|
}
|
|
|
|
|
2008-06-21 04:05:30 +00:00
|
|
|
@end
|