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"
|
2009-03-07 21:31:44 +00:00
|
|
|
#import "PlaylistLoader.h"
|
2016-05-05 20:05:39 +00:00
|
|
|
#import "PlaybackController.h"
|
2008-06-21 04:05:30 +00:00
|
|
|
|
|
|
|
@implementation FileTreeViewController
|
|
|
|
|
2009-03-07 21:31:44 +00:00
|
|
|
- (id)init
|
2008-06-21 04:05:30 +00:00
|
|
|
{
|
2009-03-07 21:31:44 +00:00
|
|
|
return [super initWithNibName:@"FileTree" bundle:[NSBundle mainBundle]];
|
|
|
|
}
|
2008-06-21 04:05:30 +00:00
|
|
|
|
2013-10-12 21:31:28 +00:00
|
|
|
- (void)addToPlaylistInternal:(NSArray *)urls
|
2009-03-07 21:31:44 +00:00
|
|
|
{
|
2013-10-12 21:31:28 +00:00
|
|
|
[self doAddToPlaylist:urls origin:URLOriginInternal];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)addToPlaylistExternal:(NSArray *)urls
|
|
|
|
{
|
|
|
|
[self doAddToPlaylist:urls origin:URLOriginExternal];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (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
|
|
|
}
|
|
|
|
|
2009-08-16 16:49:34 +00:00
|
|
|
- (void)clear:(id)sender
|
|
|
|
{
|
|
|
|
[playlistLoader clear:sender];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)playPauseResume:(NSObject *)id
|
|
|
|
{
|
|
|
|
[playbackController playPauseResume:id];
|
|
|
|
}
|
2008-06-21 04:05:30 +00:00
|
|
|
|
2013-10-11 10:03:23 +00:00
|
|
|
- (FileTreeOutlineView*)outlineView
|
|
|
|
{
|
|
|
|
return fileTreeOutlineView;
|
|
|
|
}
|
|
|
|
|
2008-06-21 04:05:30 +00:00
|
|
|
@end
|