//
//  MyDocument.h
//  ScaleAndPadImages
//
//  Created by Frank Mcpherson on 2/28/07.
//  Copyright Frank H. McPherson IV, 2007. All rights reserved.
//


#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
#import "MyTypes.h"

@class BWSnippetKeeper;

@interface MyDocument : NSDocument
{
	IBOutlet NSPanel *sheet;
	NSString *inPath;
	NSString *outPath;
				
	NSDictionary *sharedDefaults;
	
	BWSnippetKeeper *snippets;
	
	// List of the files we've found
	NSMutableArray *pathArray;
	NSMutableArray *imageArray;
	
	int imageIndex;
	int imageCount;
}

- (void) setDefaults;

- (int) intFromDefaultsFor: (NSString *) string;

// Bound through nib's AController
- (bool)pathsSet;

- (IBAction)chooseDirectory:(id)sender;
- (IBAction)processImages;

- (IBAction)showHTMLSnippets:(id)sender;
@end
