cog/FileTree/FileTreeViewController.m

52 lines
1.0 KiB
Matlab
Raw Normal View History

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"
#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
- (void)addToPlaylistInternal:(NSArray *)urls
2009-03-07 21:31:44 +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
}
- (void)clear:(id)sender
{
[playlistLoader clear:sender];
}
- (void)playPauseResume:(NSObject *)id
{
[playbackController playPauseResume:id];
}
2008-06-21 04:05:30 +00:00
- (FileTreeOutlineView*)outlineView
{
return fileTreeOutlineView;
}
2008-06-21 04:05:30 +00:00
@end