mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Added new file to the GormLib.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20929 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e538fd2c68
commit
a80f102678
4 changed files with 99 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-03-19 16:04 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormLib/InterfaceBuilder.h: Added new header
|
||||
* GormLib/IBViewResourceDragging.h: New header
|
||||
* GormLib/GNUmakefile: Added new header
|
||||
|
||||
2005-03-19 05:39 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormViewEditor.m: Corrected problem with control snapping to
|
||||
|
|
|
@ -59,6 +59,7 @@ IBResourceManager.h \
|
|||
IBSystem.h \
|
||||
IBViewAdditions.h \
|
||||
IBViewProtocol.h \
|
||||
IBViewResourceDragging.h \
|
||||
InterfaceBuilder.h
|
||||
|
||||
#
|
||||
|
|
90
GormLib/IBViewResourceDragging.h
Normal file
90
GormLib/IBViewResourceDragging.h
Normal file
|
@ -0,0 +1,90 @@
|
|||
/* IBViewResourceDragging.h
|
||||
*
|
||||
* Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
*
|
||||
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
* Date: 2003
|
||||
*
|
||||
* This file is part of GNUstep.
|
||||
*
|
||||
* This program 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 program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef INCLUDED_IBVIEWRESOURCEDRAGGING_H
|
||||
#define INCLUDED_IBVIEWRESOURCEDRAGGING_H
|
||||
|
||||
#include <AppKit/NSView.h>
|
||||
|
||||
@class NSPasteboard;
|
||||
|
||||
/**
|
||||
* Protocol describing those methods needed to accept resources.
|
||||
*/
|
||||
@protocol IBViewResourceDraggingDelegates
|
||||
|
||||
/**
|
||||
* Ask if the view accepts the object.
|
||||
*/
|
||||
- (BOOL) acceptsViewResourceFromPasteboard: (NSPasteboard *)pb
|
||||
forObject: (id)obj
|
||||
atPoint: (NSPoint)p;
|
||||
|
||||
/**
|
||||
* Perform the action of depositing the object.
|
||||
*/
|
||||
- (void) depositViewResourceFromPasteboard: (NSPasteboard *)pb
|
||||
onObject: (id)obj
|
||||
atPoint: (NSPoint)p;
|
||||
|
||||
/**
|
||||
* Should we draw the connection frame when the resource is
|
||||
* dragged in?
|
||||
*/
|
||||
- (BOOL) shouldDrawConnectionFrame;
|
||||
|
||||
/**
|
||||
* Types of resources accepted by this view.
|
||||
*/
|
||||
- (NSArray *)viewResourcePasteboardTypes;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* Informal protocol on NSView.
|
||||
*/
|
||||
@interface NSView (IBViewResourceDraggingDelegates)
|
||||
|
||||
/**
|
||||
* Types accepted by the view.
|
||||
*/
|
||||
+ (NSArray *) acceptedViewResourcePasteboardTypes;
|
||||
|
||||
/**
|
||||
* Return the list of registered delegates.
|
||||
*/
|
||||
+ (NSArray *) registeredViewResourceDraggingDelegates;
|
||||
|
||||
/**
|
||||
* Register a delegate.
|
||||
*/
|
||||
+ (void) registerViewResourceDraggingDelegate: (id<IBViewResourceDraggingDelegates>)delegate;
|
||||
|
||||
/**
|
||||
* Remove a previously registered delegate.
|
||||
*/
|
||||
+ (void) unregisterViewResourceDraggingDelegate: (id<IBViewResourceDraggingDelegates>)delegate;
|
||||
|
||||
@end
|
||||
#endif
|
|
@ -1,4 +1,4 @@
|
|||
/* IBObjectProtocol.h
|
||||
/* InterfaceBuilder.h
|
||||
*
|
||||
* Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
*
|
||||
|
@ -43,5 +43,6 @@
|
|||
#include <InterfaceBuilder/IBSystem.h>
|
||||
#include <InterfaceBuilder/IBViewAdditions.h>
|
||||
#include <InterfaceBuilder/IBViewProtocol.h>
|
||||
#include <InterfaceBuilder/IBViewResourceDragging.h>
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue