New files to be more compliant.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20444 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-12 21:04:53 +00:00
parent b3e02df247
commit 6de6f32167
6 changed files with 129 additions and 21 deletions

View file

@ -1,3 +1,12 @@
2004-12-12 16:00 Gregory John Casamento <greg_casamento@yahoo.com>
* GormLib/GNUmakefile: Added new header files.
* GormLib/IBViewAdditions.h: Creates a category/informal protocol.
* GormLib/IBViewProtocol.h: New file defines IBViewProtocol
* GormLib/IBCellAdditions.h: New file for IBCellAdditions, adopts
protocol and creates a category/informal protocol.
* GormLib/IBCellProtocol.h: New file defines IBCellProtocol
2004-12-12 15:27 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassEditor.m: Corrected problem in -outlineView:

View file

@ -42,6 +42,8 @@ libGorm_LIBRARIES_DEPEND_UPON += -lgnustep-gui -l$(FOUNDATION_LIBRARY_NAME)
libGorm_HEADER_FILES= \
IBApplicationAdditions.h \
IBCellAdditions.h \
IBCellProtocol.h \
IBConnectors.h \
IBDefines.h \
IBDocuments.h \
@ -51,6 +53,7 @@ IBObjectAdditions.h \
IBObjectProtocol.h \
IBPalette.h \
IBViewAdditions.h \
IBViewProtocol.h \
InterfaceBuilder.h
#

33
GormLib/IBCellAdditions.h Normal file
View file

@ -0,0 +1,33 @@
/* IBViewAdditions.h
*
* Copyright (C) 1999 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 1999
*
* 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_IBCELLADDITIONS_H
#define INCLUDED_IBCELLADDITIONS_H
#include <InterfaceBuilder/IBCellProtocol.h>
@interface NSCell (IBCellAdditions) <IBCellProtocol>
@end
#endif

39
GormLib/IBCellProtocol.h Normal file
View file

@ -0,0 +1,39 @@
/* IBViewProtocol.h
*
* Copyright (C) 1999 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 1999
*
* 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_IBCELLPROTOCOL_H
#define INCLUDED_IBCELLPROTOCOL_H
#include <Foundation/NSGeometry.h>
#include <InterfaceBuilder/IBDefines.h>
@protocol IBCellProtocol
- (void) cellWillAltDragWithSize: (NSSize)size;
- (NSSize) maximumSizeForCellSize: (NSSize)size
knobPosition: (IBKnobPosition)position;
- (NSSize) minimumSizeForCellSize: (NSSize)size
knobPosition: (IBKnobPosition)position;
@end
#endif

View file

@ -25,29 +25,10 @@
#ifndef INCLUDED_IBVIEWADDITIONS_H
#define INCLUDED_IBVIEWADDITIONS_H
#include <InterfaceBuilder/IBDefines.h>
#include <Foundation/NSGeometry.h>
#include <InterfaceBuilder/IBViewProtocol.h>
#include <AppKit/NSView.h>
#include <AppKit/NSCell.h>
// forward references
@class NSColor;
@interface NSView (IBViewAdditions)
- (BOOL) acceptsColor: (NSColor*)color atPoint: (NSPoint)point;
- (BOOL) allowsAltDragging;
- (void) depositColor: (NSColor*)color atPoint: (NSPoint)point;
- (NSSize) maximumSizeFromKnobPosition: (IBKnobPosition)knobPosition;
- (NSSize) minimumSizeFromKnobPosition: (IBKnobPosition)position;
- (void) placeView: (NSRect)newFrame;
@end
@interface NSCell (IBCellAdditions)
- (void) cellWillAltDragWithSize: (NSSize)size;
- (NSSize) maximumSizeForCellSize: (NSSize)size
knobPosition: (IBKnobPosition)position;
- (NSSize) minimumSizeForCellSize: (NSSize)size
knobPosition: (IBKnobPosition)position;
@interface NSView (IBViewAdditions) <IBViewProtocol>
@end
#endif

43
GormLib/IBViewProtocol.h Normal file
View file

@ -0,0 +1,43 @@
/* IBViewProtocol.h
*
* Copyright (C) 1999 Free Software Foundation, Inc.
*
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
* Date: 1999
*
* 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_IBVIEWPROTOCOL_H
#define INCLUDED_IBVIEWPROTOCOL_H
#include <InterfaceBuilder/IBDefines.h>
#include <Foundation/NSGeometry.h>
// forward references
@class NSColor;
@protocol IBViewProtocol
- (BOOL) acceptsColor: (NSColor*)color atPoint: (NSPoint)point;
- (BOOL) allowsAltDragging;
- (void) depositColor: (NSColor*)color atPoint: (NSPoint)point;
- (NSSize) maximumSizeFromKnobPosition: (IBKnobPosition)knobPosition;
- (NSSize) minimumSizeFromKnobPosition: (IBKnobPosition)position;
- (void) placeView: (NSRect)newFrame;
@end
#endif