mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +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/GormWindow.tiff \
|
||||||
Images/browserView.tiff \
|
Images/browserView.tiff \
|
||||||
Images/outlineView.tiff \
|
Images/outlineView.tiff \
|
||||||
|
Images/iconView.tiff \
|
||||||
Resources/VersionProfiles.plist \
|
Resources/VersionProfiles.plist \
|
||||||
Resources/ClassInformation.plist
|
Resources/ClassInformation.plist
|
||||||
|
|
||||||
|
|
|
@ -3961,7 +3961,7 @@ willBeInsertedIntoToolbar: (BOOL)flag
|
||||||
}
|
}
|
||||||
else if ([item isKindOfClass: [NSWindow class]])
|
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]])
|
else if ([item isKindOfClass: [NSView class]])
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
* Copyright (C) 1999, 2003 Free Software Foundation, Inc.
|
* Copyright (C) 1999, 2003 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* Author: Richard Frith-Macdonald <richard@brainstrom.co.uk>
|
* Author: Richard Frith-Macdonald <richard@brainstrom.co.uk>
|
||||||
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
* Author: Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
* Date: 1999, 2003, 2004
|
* Date: 1999, 2003, 2004, 2024
|
||||||
*
|
*
|
||||||
* This file is part of GNUstep.
|
* This file is part of GNUstep.
|
||||||
*
|
*
|
||||||
|
@ -26,29 +26,29 @@
|
||||||
#ifndef INCLUDED_GormObjectEditor_h
|
#ifndef INCLUDED_GormObjectEditor_h
|
||||||
#define INCLUDED_GormObjectEditor_h
|
#define INCLUDED_GormObjectEditor_h
|
||||||
|
|
||||||
#include "GormGenericEditor.h"
|
#import "GormGenericEditor.h"
|
||||||
|
|
||||||
@interface NSObject (GormObjectAdditions)
|
@interface NSObject (GormObjectAdditions)
|
||||||
|
|
||||||
- (NSImage*) imageForViewer;
|
- (NSImage *) imageForViewer;
|
||||||
- (NSString*) inspectorClassName;
|
- (NSString *) inspectorClassName;
|
||||||
- (NSString*) connectInspectorClassName;
|
- (NSString *) connectInspectorClassName;
|
||||||
- (NSString*) sizeInspectorClassName;
|
- (NSString *) sizeInspectorClassName;
|
||||||
- (NSString*) helpInspectorClassName;
|
- (NSString *) helpInspectorClassName;
|
||||||
- (NSString*) classInspectorClassName;
|
- (NSString *) classInspectorClassName;
|
||||||
- (NSString*) editorClassName;
|
- (NSString *) editorClassName;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface GormObjectEditor : GormGenericEditor
|
@interface GormObjectEditor : GormGenericEditor
|
||||||
{
|
|
||||||
}
|
|
||||||
+ (void) setEditor: (id)editor forDocument: (id<IBDocuments>)aDocument;
|
+ (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;
|
- (NSDragOperation) draggingSourceOperationMaskForLocal: (BOOL)flag;
|
||||||
- (BOOL) acceptsTypeFromArray: (NSArray*)types;
|
- (BOOL) acceptsTypeFromArray: (NSArray *)types;
|
||||||
- (void) makeSelectionVisible: (BOOL)flag;
|
- (void) makeSelectionVisible: (BOOL)flag;
|
||||||
- (void) resetObject: (id)anObject;
|
- (void) resetObject: (id)anObject;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -103,7 +103,7 @@ static NSMapTable *docMap = 0;
|
||||||
{
|
{
|
||||||
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
docMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
|
||||||
NSNonRetainedObjectMapValueCallBacks,
|
NSNonRetainedObjectMapValueCallBacks,
|
||||||
2);
|
2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,6 @@ static NSMapTable *docMap = 0;
|
||||||
NSMapInsert(docMap, (void*)aDocument, (void*)editor);
|
NSMapInsert(docMap, (void*)aDocument, (void*)editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
- (BOOL) acceptsTypeFromArray: (NSArray*)types
|
- (BOOL) acceptsTypeFromArray: (NSArray*)types
|
||||||
{
|
{
|
||||||
return ([[(GormDocument *)document allManagedPboardTypes] firstObjectCommonWithArray: types] != nil);
|
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