2003-05-23 02:25:34 +00:00
|
|
|
/* IBObjectAdditions.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
|
2007-11-05 23:44:36 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2003-05-23 02:25:34 +00:00
|
|
|
* (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
|
2005-05-26 03:37:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
2003-05-23 02:25:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_IBOBJECTPROTOCOL_H
|
|
|
|
#define INCLUDED_IBOBJECTPROTOCOL_H
|
|
|
|
|
|
|
|
#include <InterfaceBuilder/IBDocuments.h>
|
|
|
|
|
|
|
|
@protocol IBObjectProtocol
|
2005-01-01 14:56:11 +00:00
|
|
|
/**
|
|
|
|
* Returns YES, if receiver can be displayed in
|
|
|
|
* the custom custom class inspector as a potential
|
|
|
|
* class which can be switched to by the receiver.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
+ (BOOL)canSubstituteForClass: (Class)origClass;
|
2005-01-01 14:56:11 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called immediate after loading the document into
|
|
|
|
* the interface editor application.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (void)awakeFromDocument: (id <IBDocuments>)doc;
|
|
|
|
|
2005-01-01 14:56:11 +00:00
|
|
|
/**
|
|
|
|
* Returns the NSImage to be used to represent an object
|
|
|
|
* of the receiver's class in the editor.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSImage *)imageForViewer;
|
|
|
|
|
2005-01-01 14:56:11 +00:00
|
|
|
/**
|
2005-01-01 15:29:40 +00:00
|
|
|
* Label for the receiver in the model.
|
2005-01-01 14:56:11 +00:00
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString *)nibLabel: (NSString *)objectName;
|
|
|
|
|
2005-01-01 14:56:11 +00:00
|
|
|
/**
|
|
|
|
* Title to display in the inspector.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString *)objectNameForInspectorTitle;
|
|
|
|
|
2005-01-01 14:56:11 +00:00
|
|
|
/**
|
|
|
|
* Name of attributes inspector class.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString*) inspectorClassName;
|
2005-01-01 14:56:11 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of connection inspector class.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString*) connectInspectorClassName;
|
2005-01-01 14:56:11 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of size inspector.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString*) sizeInspectorClassName;
|
2005-01-01 14:56:11 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of help inspector.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString*) helpInspectorClassName;
|
2005-01-01 14:56:11 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of class inspector.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString*) classInspectorClassName;
|
|
|
|
|
2005-01-01 14:56:11 +00:00
|
|
|
/**
|
|
|
|
* Name of the editor for the receiver.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSString*) editorClassName;
|
|
|
|
|
2005-01-01 14:56:11 +00:00
|
|
|
/**
|
|
|
|
* List of properties not compatible with interface app.
|
|
|
|
*/
|
2003-05-23 02:25:34 +00:00
|
|
|
- (NSArray*) ibIncompatibleProperties;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|