// DTActivityWindowController.h
// Created by Rob Rix on 2011-04-14
// Copyright 2011 DEVONtechnologies, LLC

#import <Cocoa/Cocoa.h>

@class DTActivityLog;

@interface DTActivityWindow : NSPanel
@end

@interface DTActivityWindowController : NSWindowController
{
@private
	NSMutableArray *logKeys;
	NSMutableDictionary *logs;
	IBOutlet NSView *activityLogView;
	IBOutlet NSCollectionView *activityCollectionView;
}

+(BOOL)isVisible;
+(DTActivityWindowController *)sharedController;

-(NSArray *)logs;

-(DTActivityLog *)logForKey:(id)key;
-(void)setLog:(DTActivityLog *)log forKey:(id)key;
-(void)setLog:(DTActivityLog *)log forKey:(id)key showWindow:(BOOL)showWindow;
-(DTActivityLog *)addLogForKey:(id)key title:(NSString *)title showWindow:(BOOL)showWindow; // Creates a new log only if necessary

-(void)removeLogForKey:(id)key;
-(void)removeLogForKey:(id)key orderOut:(BOOL)orderOut;

@end
