mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-19 17:50:47 +00:00
* EOModeler/EOMInspector.m: Cleanups. (selectedObjects): Reimplement. (selectedObject): Return last viewed path if no selection was made. * EOModeler/EOModelerDocument.m: Reimplement. * EOModeler/EOMInspectorController.m (init): Ditto. (-_selectionChanged:): Ditto. (-_selectInspector:): Implement and renamed from selectInspector:. * EOModeler/EOModelerEditor.h * EOModeler/EOModelerEditor.m: Add documentation. (-initWithDocument:): Initialize instance variable. (-debugSelectionPath): Implement. (-[EOModelerCompoundEditor initWithDocument:]): Remove initializtation. (-[EOModelerCompoundEditor selectionDidChange]): Implement. (-[EOModelerCompoundEditor setSelectionPath:]): Call selectionDidChange instead of sending notifcation directly. (-[EOModelerCompoundEditor viewSelectedObject]): Implement. (-[EOModelerEmbedibleEditor dealloc]): Implement. (-[EOModelerEmbedibleEditor initWithParentEditor:]): Observe EOMSelectionChangedNotification. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23396 72102866-910b-0410-8b05-ffd578937521
58 lines
1.5 KiB
Objective-C
58 lines
1.5 KiB
Objective-C
#ifndef __EOMInspector_H__
|
|
#define __EOMInspector_H__
|
|
|
|
/* -*-objc-*-
|
|
EOMInspector.h
|
|
|
|
Copyright (C) 2005 Free Software Foundation, Inc.
|
|
|
|
Author: Matt Rice <ratmice@yahoo.com>
|
|
Date: Apr 2005
|
|
|
|
This file is part of the GNUstep Database Library.
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
This library 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
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#include <Foundation/NSObject.h>
|
|
|
|
@class NSArray;
|
|
@class NSWindow;
|
|
@class NSView;
|
|
@class NSImage;
|
|
|
|
@interface EOMInspector : NSObject
|
|
{
|
|
NSImage *image;
|
|
NSView *view;
|
|
NSWindow *window;
|
|
}
|
|
+ (NSArray *)allRegisteredInspectors;
|
|
+ (NSArray *)allInspectorsThatCanInspectObject:(id)anObject;
|
|
+ (EOMInspector *) sharedInspector;
|
|
|
|
- (NSView *)view;
|
|
- (BOOL) canInspectObject:(id)anObject;
|
|
- (void) prepareForDisplay;
|
|
- (void) refresh;
|
|
- (id) selectedObject;
|
|
|
|
- (NSString *)displayName;
|
|
- (float) displayOrder;
|
|
- (NSImage *)image;
|
|
- (NSImage *)hilightedImage;
|
|
@end
|
|
|
|
#endif // __EOMInspector_H__
|