2009-01-17 Sergii Stoian <stoyan255@gmail.com>

* Framework/GNUmakefile: Include PCFileNameField.h and
  PCFileNameIcon.h in ProjectCenter_HEADER_FILES as 
  referenced by PCProjectInspector.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27613 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2009-01-16 23:02:48 +00:00
parent ed890b7e2e
commit c3aa1d47a0
5 changed files with 30 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2009-01-17 Sergii Stoian <stoyan255@gmail.com>
* Framework/GNUmakefile: Include PCFileNameField.h and
PCFileNameIcon.h in ProjectCenter_HEADER_FILES as
referenced by PCProjectInspector.h
2009-01-13 Riccardo Mottola <rmottola@users.sf.net>
* Framework/English.lproj/ProjectDescription.gorm:

View file

@ -49,6 +49,9 @@ ProjectCenter_HEADER_FILES = \
PCProjectLoadedFiles.h \
PCProjectLoadedFilesPanel.h \
\
PCFileNameField.h \
PCFileNameIcon.h \
\
PCPrefController.h \
PCLogController.h

View file

@ -33,6 +33,7 @@
- (void)awakeFromNib
{
filePath = nil;
// [self setEditable:NO]; // prevents dragging
[self setImage:[NSImage imageNamed:@"ProjectCenter"]];
[self
registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
@ -44,7 +45,7 @@
filePath = nil;
[self setRefusesFirstResponder:YES];
[self setEditable:NO];
// [self setEditable:NO]; // prevents dragging
[self setImage:[NSImage imageNamed:@"ProjectCenter"]];
return self;
@ -86,6 +87,14 @@
{
[fileNameField setStringValue:[delegate fileNameIconTitle]];
}
if ([delegate respondsToSelector:@selector(isFileNameIconDraggable)])
{
[self setEditable:[delegate isFileNameIconDraggable]];
}
/* if ([delegate respondsToSelector:@selector(fileNameIconTitle)])
{
[fileNameField setStringValue:[delegate fileNameIconTitle]];
}*/
}
}
@ -171,5 +180,11 @@
}
}
// --- NSDraggingSource protocol methods
- (void)draggedImage:(NSImage *)anImage beganAt:(NSPoint)aPoint
{
NSLog(@"Icon dragging started");
}
@end

View file

@ -26,7 +26,7 @@
#ifndef _PCBundleManager_h_
#define _PCBundleManager_h_
#import <AppKit/AppKit.h>
#include <AppKit/AppKit.h>
@interface PCBundleManager : NSObject
{

View file

@ -43,6 +43,7 @@
@interface PCFileNameIcon (FileNameIconDelegate)
// --- NSDraggingDestination protocol methods
- (NSImage *)fileNameIconImage;
- (NSString *)fileNameIconTitle;
- (BOOL)canPerformDraggingOf:(NSArray *)paths;
@ -50,6 +51,9 @@
- (BOOL)performDraggingOf:(NSArray *)paths;
- (BOOL)concludeDraggingOf:(NSArray *)paths;
// --- NSDraggingSource protocol methods
- (void)draggedImage:(NSImage *)anImage beganAt:(NSPoint)aPoint;
@end
#endif