//
//  NSPathControl.h
//  AppKit
//
//  Created by Fabian Spillner on 29.11.07.
//  Copyright 2007 Golden Delicious Computers GmbH&Co. KG. All rights reserved.
//

#import <AppKit/NSControl.h>
#import <AppKit/NSDragging.h>
#import "NSPathCell.h"

@class NSColor, NSPathComponentCell;

@interface NSPathControl : NSControl {
//	id _delegate;	// special for mySTEP: NSControl defines _delegate
	NSDragOperation _localDraggingMask;
	NSDragOperation _remoteDraggingMask;
}

- (NSColor *) backgroundColor; 
- (NSPathComponentCell *) clickedPathComponentCell; 
- (id) delegate; 
- (SEL) doubleAction; 
- (NSArray *) pathComponentCells; 
- (NSPathStyle) pathStyle; 
- (void) setBackgroundColor:(NSColor *) col; 
- (void) setDelegate:(id) delegate; 
- (void) setDoubleAction:(SEL) sel; 
- (void) setDraggingSourceOperationMask:(NSDragOperation) mask forLocal:(BOOL) flag; 
- (void) setPathComponentCells:(NSArray *) pathCells; 
- (void) setPathStyle:(NSPathStyle) pathStyle; 
- (void) setURL:(NSURL *) url; 
- (NSURL *) URL; 

@end


@interface NSObject (NSPathControlDelegate)

- (BOOL) pathControl:(NSPathControl *) sender acceptDrop:(id <NSDraggingInfo>) draggingInfo; 
- (BOOL) pathControl:(NSPathControl *) sender shouldDragPathComponentCell:(NSPathComponentCell *) cell withPasteboard:(NSPasteboard *) pboard; 
- (NSDragOperation) pathControl:(NSPathControl *) sender validateDrop:(id <NSDraggingInfo>) draggingInfo; 
- (void) pathControl:(NSPathControl *) sender willDisplayOpenPanel:(NSOpenPanel *) openPanel; 
- (void) pathControl:(NSPathControl *) sender willPopUpMenu:(NSMenu *) menu; 

@end