mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
Cleanup code
This commit is contained in:
parent
6545df37d5
commit
4a23bc81e0
5 changed files with 17 additions and 17 deletions
|
@ -217,6 +217,7 @@ GormCore_RESOURCE_FILES = \
|
|||
Images/GormWindow.tiff \
|
||||
Images/browserView.tiff \
|
||||
Images/outlineView.tiff \
|
||||
Images/iconView.tiff \
|
||||
Resources/VersionProfiles.plist \
|
||||
Resources/ClassInformation.plist
|
||||
|
||||
|
|
|
@ -3961,7 +3961,7 @@ willBeInsertedIntoToolbar: (BOOL)flag
|
|||
}
|
||||
else if ([item isKindOfClass: [NSWindow class]])
|
||||
{
|
||||
return 1; // [[[item contentView] subviews] count];
|
||||
return 1; // We are only counting the contentView...
|
||||
}
|
||||
else if ([item isKindOfClass: [NSView class]])
|
||||
{
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
* Copyright (C) 1999, 2003 Free Software Foundation, Inc.
|
||||
*
|
||||
* Author: Richard Frith-Macdonald <richard@brainstrom.co.uk>
|
||||
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
* Date: 1999, 2003, 2004
|
||||
* Author: Gregory John Casamento <greg.casamento@gmail.com>
|
||||
* Date: 1999, 2003, 2004, 2024
|
||||
*
|
||||
* This file is part of GNUstep.
|
||||
*
|
||||
|
@ -26,29 +26,29 @@
|
|||
#ifndef INCLUDED_GormObjectEditor_h
|
||||
#define INCLUDED_GormObjectEditor_h
|
||||
|
||||
#include "GormGenericEditor.h"
|
||||
#import "GormGenericEditor.h"
|
||||
|
||||
@interface NSObject (GormObjectAdditions)
|
||||
|
||||
- (NSImage*) imageForViewer;
|
||||
- (NSString*) inspectorClassName;
|
||||
- (NSString*) connectInspectorClassName;
|
||||
- (NSString*) sizeInspectorClassName;
|
||||
- (NSString*) helpInspectorClassName;
|
||||
- (NSString*) classInspectorClassName;
|
||||
- (NSString*) editorClassName;
|
||||
- (NSImage *) imageForViewer;
|
||||
- (NSString *) inspectorClassName;
|
||||
- (NSString *) connectInspectorClassName;
|
||||
- (NSString *) sizeInspectorClassName;
|
||||
- (NSString *) helpInspectorClassName;
|
||||
- (NSString *) classInspectorClassName;
|
||||
- (NSString *) editorClassName;
|
||||
|
||||
@end
|
||||
|
||||
@interface GormObjectEditor : GormGenericEditor
|
||||
{
|
||||
}
|
||||
|
||||
+ (void) setEditor: (id)editor forDocument: (id<IBDocuments>)aDocument;
|
||||
- (void) draggedImage: (NSImage*)i endedAt: (NSPoint)p deposited: (BOOL)f;
|
||||
- (void) draggedImage: (NSImage *)i endedAt: (NSPoint)p deposited: (BOOL)f;
|
||||
- (NSDragOperation) draggingSourceOperationMaskForLocal: (BOOL)flag;
|
||||
- (BOOL) acceptsTypeFromArray: (NSArray*)types;
|
||||
- (BOOL) acceptsTypeFromArray: (NSArray *)types;
|
||||
- (void) makeSelectionVisible: (BOOL)flag;
|
||||
- (void) resetObject: (id)anObject;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
|
|
@ -103,7 +103,7 @@ static NSMapTable *docMap = 0;
|
|||
{
|
||||
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
||||
NSNonRetainedObjectMapValueCallBacks,
|
||||
2);
|
||||
2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,6 @@ static NSMapTable *docMap = 0;
|
|||
NSMapInsert(docMap, (void*)aDocument, (void*)editor);
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) acceptsTypeFromArray: (NSArray*)types
|
||||
{
|
||||
return ([[(GormDocument *)document allManagedPboardTypes] firstObjectCommonWithArray: types] != nil);
|
||||
|
|
BIN
GormCore/Images/iconView.tiff
Normal file
BIN
GormCore/Images/iconView.tiff
Normal file
Binary file not shown.
Loading…
Reference in a new issue