//
//  MyWindowController.h
//  DatabaseExample
//
//  Created by Bernard Teo on 27/06/2007.
//  Copyright 2007 Cutedge. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "DataModeller.h"

@interface MyWindowController : NSWindowController 
{
	IBOutlet NSArrayController *arrayController;

	IBOutlet id databasePanel;
	IBOutlet id databaseType;
	IBOutlet id databaseName;
	IBOutlet id databaseURL;
	IBOutlet id databaseUserName;
	IBOutlet id databasePassword;
}

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification;

- (IBAction)chooseDatabaseType:(id)sender;
- (IBAction)showDatabaseConnectionSheet:(id)sender;
- (IBAction)closeSheet:(id)sender;
- (IBAction)selectDatabase:(id)sender;

- (IBAction)loadDataFromDatabase:(id)sender;
- (IBAction)saveDataToDatabase:(id)sender;

- (DataModeller *)dataModeller;

@end
