2003-07-10 16:00:49 +00:00
|
|
|
/*
|
2006-12-26 10:58:39 +00:00
|
|
|
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
2003-07-10 16:00:49 +00:00
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
Copyright (C) 2000-2005 Free Software Foundation
|
2003-07-10 16:00:49 +00:00
|
|
|
|
2004-06-12 19:23:26 +00:00
|
|
|
Authors: Serg Stoyan
|
2003-07-10 16:00:49 +00:00
|
|
|
|
|
|
|
This file is part of GNUstep.
|
|
|
|
|
|
|
|
This application is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This application is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|
|
|
*/
|
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
#ifndef _PCFileNameIcon_h_
|
|
|
|
#define _PCFileNameIcon_h_
|
2004-06-11 13:43:02 +00:00
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
@class NSImageView;
|
2003-07-10 16:00:49 +00:00
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
@interface PCFileNameIcon : NSImageView
|
2004-06-11 13:43:02 +00:00
|
|
|
{
|
2009-02-05 23:59:32 +00:00
|
|
|
NSString *filePath;
|
|
|
|
NSTextField *fileNameField;
|
|
|
|
id delegate;
|
2004-06-11 13:43:02 +00:00
|
|
|
}
|
2003-07-10 16:00:49 +00:00
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
- (void)setFileNameField:(NSTextField *)field;
|
|
|
|
- (void)setDelegate:(id)object;
|
|
|
|
- (void)updateIcon;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface PCFileNameIcon (FileNameIconDelegate)
|
|
|
|
|
2009-01-16 23:02:48 +00:00
|
|
|
// --- NSDraggingDestination protocol methods
|
2006-12-26 10:58:39 +00:00
|
|
|
- (NSImage *)fileNameIconImage;
|
|
|
|
- (NSString *)fileNameIconTitle;
|
2009-02-05 23:59:32 +00:00
|
|
|
- (NSString *)fileNameIconPath;
|
2007-08-21 23:22:12 +00:00
|
|
|
- (BOOL)canPerformDraggingOf:(NSArray *)paths;
|
2008-12-30 23:58:11 +00:00
|
|
|
- (BOOL)prepareForDraggingOf:(NSArray *)paths;
|
|
|
|
- (BOOL)performDraggingOf:(NSArray *)paths;
|
|
|
|
- (BOOL)concludeDraggingOf:(NSArray *)paths;
|
2003-07-10 16:00:49 +00:00
|
|
|
|
2009-01-16 23:02:48 +00:00
|
|
|
// --- NSDraggingSource protocol methods
|
|
|
|
- (void)draggedImage:(NSImage *)anImage beganAt:(NSPoint)aPoint;
|
|
|
|
|
2003-07-10 16:00:49 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|