Authors
- Generated by buildd
-
- Declared in:
- GormCore/GormDocument.h
- Conforms to:
- IBDocuments
- GSNibContainer
- NSCoding
Description forthcoming.
Instance Variables
Method summary
- (id)
addAttributeToClass: (id)sender;
Add an outlet/action to the classes view.
- (void)
alignSelectedObjects: (id)sender;
Aligns selected objects on a given axis.
Align objects to center, left, right, top, bottom.
- (NSArray*)
allManagedPboardTypes;
Returns all pasteboard types registered for with
the IBResourceManager.
Get all pasteboard types
managed by the resource manager.
- (void)
arrangeSelectedObjects: (id)sender;
Arrages selected objects based on the either in
front of or in back of the view stack.
Arrange
views in front or in back of one another.
- (void)
changeToTopLevelEditorAcceptingTypes: (NSArray*)types
andFileType: (NSString*)fileType;
Switch to the top level editor responsible for a
given type. This allows the document in the view to
switch to the view which is appropriate for the
resource being dragged in.
- (void)
changeToViewWithTag: (int)tag;
Switches to the view using the specified
tag. They are 0=objects, 1=images,
2=sounds, 3=classes, 4=file prefs.
- (BOOL)
classIsSelected;
Returns YES
, if the current select on
the classes view is a class.
- (void)
closeAllEditors;
Forces the closing of all editors in the document.
- (id)
createClassFiles: (id)sender;
Create the class files for the selected class.
- (void)
createResourceManagers;
Create resource manager instances for all registered
classes.
- (id)
createSubclass: (id)sender;
Create a subclass of the currently selected class in
the classes view.
- (void)
deactivateEditors;
Deactivate the editors for archiving..
- (NSSet*)
deferredWindows;
Windows deferred.
All windows marked,
deferred.
- (void)
exportStrings: (id)sender;
This method is used to export all strings in a
document to a file for Language translation. This
allows the user to see all of the strings which can
be translated and allows the user to provide a
translateion for each of them.
- (id)
firstResponder;
Returns stand-in object for firstResponder
Return first responder stand in.
- (id)
fontManager;
Returns stand-in object for fontManager.
Return font manager stand in.
- (void)
handleNotification: (NSNotification*)aNotification;
Handle all notifications. Checks the value of [
aNotification name] against the set of
notifications this class responds to and
takes appropriate action.
- (NSArray*)
images;
Images
- (NSData*)
infoData;
return the file info.
- (id)
instantiateClass: (id)sender;
Create an instance of a given class.
- (BOOL)
isActive;
Returns YES
, if document is active.
- (BOOL)
isDocumentOpen;
Return the document open flag.
- (BOOL)
isOlderArchive;
Return YES
if this is an older archive.
- (BOOL)
isTopLevelObject: (id)obj;
Returns YES
, if obj is a
top level object.
- (id)
loadClass: (id)sender;
Load a class into the document.
Parse a header
into the classes view.
- (BOOL)
objectIsDeferred: (id)anObject;
Return YES
, if anObject is
deferred.
Return YES
, if the
anObject is in the deferred list.
- (BOOL)
objectIsVisibleAtLaunch: (id)anObject;
Return YES
, if anObject is
visible at launch time.
- (id)
openImage: (id)sender;
Open an image and copy it into the document.
- (id)
openSound: (id)sender;
Open a sound and load it into the document.
- (void)
reactivateEditors;
Reactivate all of the editors...
- (void)
rebuildObjToNameMapping;
Build our reverse mapping information and other
initialisation
- (NSMenu*)
recentDocumentsMenu;
Returns the menu which will be the recent documents
menu for the document.
Return the object that
will be the receent documents menu.
- (void)
refreshConnectionsForClassNamed: (NSString*)className;
Refresh all connections to any and all instances of
className. Checks if the class has the
action/outlet present and deletes it, if it
doesn't.
- (id)
remove: (id)sender;
Remove a class from the classes view
- (void)
removeAllInstancesOfClass: (NSString*)className;
Remove all instances of a given class.
- (BOOL)
removeConnectionsForClassNamed: (NSString*)className;
Remove all connections to any and all instances of
className.
- (BOOL)
removeConnectionsWithLabel: (NSString*)name
forClassNamed: (NSString*)className
isAction: (BOOL)action;
Removes all connections given action or
outlet with the specified label (paramter
name) class name (parameter
className).
- (BOOL)
renameConnectionsForClassNamed: (NSString*)className
toName: (NSString*)newName;
Rename connections connected to an instance of on
class to another.
- (IBResourceManager*)
resourceManagerForPasteboard: (NSPasteboard*)pboard;
Get the resource manager which handles the content on
pboard.
- (NSArray*)
resourceManagers;
The list of all resource managers.
- (NSArray*)
retrieveObjectsForParent: (id)parent
recursively: (BOOL)flag;
Retrieve all objects which have parent
as thier parent. If flag is
YES
, then retrieve the entire graph of
objects starting with the parent.
Pull all of the objects which are under a given
parent. Returns an autoreleased array.
- (NSFileWrapper*)
scmWrapper;
Save the SCM directory.
- (void)
selectClass: (NSString*)className;
Select a class in the classes view
- (void)
selectClass: (NSString*)className
editClass: (BOOL)flag;
Select a class in the classes view
- (NSMenu*)
servicesMenu;
Returns the services menu for the document.
Return the object that will be the services menu.
- (void)
setDocumentActive: (BOOL)flag;
Marks this document as the currently active document.
The active document is the one being edited by the
user.
- (void)
setDocumentOpen: (BOOL)flag;
Set the document open flag.
- (void)
setImages: (NSArray*)imgs;
Images
- (void)
setInfoData: (NSData*)data;
Set the file info for this document.
- (void)
setObject: (id)anObject
isDeferred: (BOOL)flag;
Add object to the defferred list.
Add
anObject to the deferred list.
- (void)
setObject: (id)anObject
isVisibleAtLaunch: (BOOL)flag;
Add object to the visible at launch list.
- (void)
setOlderArchive: (BOOL)flag;
Set the "older archive" flag.
- (void)
setRecentDocumentsMenu: (NSMenu*)anObject;
Sets the recent documents menu.
Set the menu
that will be the recent documents menu in the app.
- (void)
setSCMWrapper: (NSFileWrapper*)wrapper;
Save the SCM directory.
- (void)
setServicesMenu: (NSMenu*)anObject;
Set the services menu.
Set the object that will
be the services menu in the app.
- (void)
setSounds: (NSArray*)snds;
Sounds
- (void)
setWindowsMenu: (NSMenu*)anObject;
Sets the windows menu.
Set the windows menu.
- (NSArray*)
sounds;
Sounds
- (void)
translate: (id)sender;
This method is used to translate all of the strings in
the file from one language into another. This is
helpful when attempting to translate an application
for use in different locales.
- (NSView*)
viewWithTag: (int)tag;
returns the view using the specified tag
. They are 0=objects, 1=images, 2=sounds, 3=classes,
4=file prefs.
- (NSSet*)
visibleWindows;
Windows visible at launch...
All windows
marked, visible at launch.
- (NSWindow*)
window;
The document window.
- (NSWindow*)
windowAndRect: (NSRect*)r
forObject: (id)object;
WindowAndRect:forObject: is called
by Gorm to determine where it should draw selection
markup
Returns the window and the rect
r for object.
- (NSMenu*)
windowsMenu;
Returns the menu which will be the windows menu for
the document.
return the windows menu.
Instance Variables for GormDocument Class
@protected GormClassManager* classManager;
Description forthcoming.
@protected NSScrollView* classesScrollView;
Description forthcoming.
@protected id classesView;
Description forthcoming.
@protected NSMutableArray* connections;
Description forthcoming.
@protected NSMutableSet* deferredWindows;
Description forthcoming.
@protected GormFilePrefsManager* filePrefsManager;
Description forthcoming.
@protected id filePrefsView;
Description forthcoming.
@protected NSWindow* filePrefsWindow;
Description forthcoming.
@protected GormFilesOwner* filesOwner;
Description forthcoming.
@protected GormFirstResponder* firstResponder;
Description forthcoming.
@protected GormObjectProxy* fontManager;
Description forthcoming.
@protected NSMutableArray* hidden;
Description forthcoming.
@protected NSMutableArray* images;
Description forthcoming.
@protected NSScrollView* imagesScrollView;
Description forthcoming.
@protected id imagesView;
Description forthcoming.
@protected NSData* infoData;
Description forthcoming.
@protected BOOL isActive;
Description forthcoming.
@protected BOOL isDocumentOpen;
Description forthcoming.
@protected BOOL isOlderArchive;
Description forthcoming.
@protected id lastEditor;
Description forthcoming.
@protected NSMutableDictionary* nameTable;
Description forthcoming.
@protected NSMapTable* objToName;
Description forthcoming.
@protected id objectsView;
Description forthcoming.
@protected NSMutableArray* openEditors;
Description forthcoming.
@protected NSMenuItem* quitItem;
Description forthcoming.
@protected NSMutableArray* resourceManagers;
Description forthcoming.
@protected NSMutableArray* savedEditors;
Description forthcoming.
@protected NSMenu* savedMenu;
Description forthcoming.
@protected NSFileWrapper* scmWrapper;
Description forthcoming.
@protected NSScrollView* scrollView;
Description forthcoming.
@protected NSBox* selectionBox;
Description forthcoming.
@protected NSMutableArray* sounds;
Description forthcoming.
@protected NSScrollView* soundsScrollView;
Description forthcoming.
@protected id soundsView;
Description forthcoming.
@protected NSToolbar* toolbar;
Description forthcoming.
@protected NSMutableSet* topLevelObjects;
Description forthcoming.
@protected NSMutableSet* visibleWindows;
Description forthcoming.
@protected GormDocumentWindow* window;
Description forthcoming.
- Declared in:
- GormCore/GormDocument.h
Description forthcoming.
- Declared in:
- GormCore/GormDocument.h
Description forthcoming.
- Declared in:
- GormCore/GormDocument.h
Description forthcoming.
- Declared in:
- GormCore/GormDocument.h
Description forthcoming.
Method summary
- (BOOL)
isEditingClasses;
Returns YES
if the document is editing
classes.
- (BOOL)
isEditingImages;
Returns YES
if the document is editing
images.
- (BOOL)
isEditingObjects;
Returns YES
if the document is editing
instance/objects.
- (BOOL)
isEditingSounds;
Returns YES
if the document is editing
sounds.