//
//  GSDialogController.h
//  GlyphsCore
//
//  Created by Georg Seifert on 12.09.09.
//  Copyright 2009 schriftgestaltung.de. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class GSDialogController;

@protocol GSDialogDelegateProtocol <NSObject>
@optional
- (void) confirmDialog:(id) sender;
- (void) cancelDialog:(id) sender;
- (NSString*) okButtonTitleForDialog:(GSDialogController*)Dialog;
@end

@interface GSDialogController : NSWindowController {
	id<GSDialogDelegateProtocol> _delegate;
	SEL oKSelector;
	SEL cancelSelector;
	NSInteger _returnValue;
	NSView *_contentView;
	IBOutlet NSButton * okButton;
	IBOutlet NSButton * cancelButton;
}

- (id) initWithController:(id) Delegate ;
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo ;
- (void) setContentView:(NSView*) ContentView ;
- (NSInteger) runDialog:(id)sender ;
- (NSInteger) runDialog:(id)sender modalForWindow:(NSWindow*) Window ;
- (IBAction) okDialog:(id)sender ;
- (IBAction) cancelDialog:(id)sender;
- (void) setTitle: (NSString*) Title ;
- (void) setOkStringValue:(NSString*)aString ;
//- (IBAction) zoomIn: (id) sender ;
//- (IBAction) zoomOut: (id) sender ;
- (void) setOKSelector:(SEL)aSelector;
- (void) setCancelSelector:(SEL)aSelector;
@end