mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Adding .gorm file packages and adding sound support to gorm.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@14921 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
90e36d54b0
commit
ca5882b572
13 changed files with 1079 additions and 21 deletions
16
ChangeLog
16
ChangeLog
|
@ -1,3 +1,19 @@
|
||||||
|
2002-11-03 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* GormDocument.m: Added methods for class support
|
||||||
|
-[GormDocument openSound:], -[GormDocument _createSoundPlaceHolder:].
|
||||||
|
Modified -[GormDocument saveDocument], and
|
||||||
|
-[GormDocument loadDocument] to handle copying of sounds into the
|
||||||
|
gorm file package when the .gorm is saved and registering them w/
|
||||||
|
Gorm when the package is subsequently loaded.
|
||||||
|
* GormPrivate.h: Added class declaration for GormSound, the
|
||||||
|
sound placeholder class. This class contains the minimal information
|
||||||
|
needed to handle sounds in Gorm.
|
||||||
|
* GormSoundInspector.[hm]: The sound inspector.
|
||||||
|
* Resources/GormSoundInspector.gorm: The beginnings of the sound
|
||||||
|
inspector gui.
|
||||||
|
* Resources: Replaced old gorm files w/ packages.
|
||||||
|
|
||||||
2002-10-31 Gregory John Casamento <greg_casamento@yahoo.com>
|
2002-10-31 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* GormDocument.m: -[GormDocument saveDocument:] made changes to allow
|
* GormDocument.m: -[GormDocument saveDocument:] made changes to allow
|
||||||
|
|
|
@ -108,7 +108,8 @@ Gorm_RESOURCE_FILES = \
|
||||||
Images/GormActionSelected.tiff \
|
Images/GormActionSelected.tiff \
|
||||||
Images/GormOutletSelected.tiff \
|
Images/GormOutletSelected.tiff \
|
||||||
Resources/GormViewSizeInspector.gorm \
|
Resources/GormViewSizeInspector.gorm \
|
||||||
Resources/GormCustomClassInspector.gorm
|
Resources/GormCustomClassInspector.gorm \
|
||||||
|
Resources/GormSoundInspector.gorm
|
||||||
|
|
||||||
Gorm_HEADERS = \
|
Gorm_HEADERS = \
|
||||||
Gorm.h \
|
Gorm.h \
|
||||||
|
@ -116,6 +117,7 @@ Gorm_HEADERS = \
|
||||||
GormCustomView.h \
|
GormCustomView.h \
|
||||||
GormOutlineView.h \
|
GormOutlineView.h \
|
||||||
GormCustomClassInspector.h \
|
GormCustomClassInspector.h \
|
||||||
|
GormSoundInspector.h \
|
||||||
GormMatrixEditor.h \
|
GormMatrixEditor.h \
|
||||||
GormPalettesManager.h \
|
GormPalettesManager.h \
|
||||||
GormViewEditor.h \
|
GormViewEditor.h \
|
||||||
|
@ -160,7 +162,9 @@ Gorm_OBJC_FILES = \
|
||||||
GormPalettesManager.m \
|
GormPalettesManager.m \
|
||||||
GormOutlineView.m \
|
GormOutlineView.m \
|
||||||
GormCustomClassInspector.m \
|
GormCustomClassInspector.m \
|
||||||
GormScrollViewEditor.m
|
GormSoundInspector.m \
|
||||||
|
GormScrollViewEditor.m \
|
||||||
|
GormSoundEditor.m
|
||||||
|
|
||||||
-include GNUmakefile.preamble
|
-include GNUmakefile.preamble
|
||||||
|
|
||||||
|
|
16
Gorm.m
16
Gorm.m
|
@ -855,11 +855,13 @@ static NSButtonType _buttonTypeForObject( id button )
|
||||||
return [(id)[self activeDocument] remove: sender];
|
return [(id)[self activeDocument] remove: sender];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
- (id) editClass: (id)sender
|
- (id) editClass: (id)sender
|
||||||
{
|
{
|
||||||
[self inspector: self];
|
[self inspector: self];
|
||||||
return [(id)[self activeDocument] editClass: sender];
|
return [(id)[self activeDocument] editClass: sender];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
- (id) createClassFiles: (id)sender
|
- (id) createClassFiles: (id)sender
|
||||||
{
|
{
|
||||||
|
@ -1026,6 +1028,9 @@ static NSButtonType _buttonTypeForObject( id button )
|
||||||
[aMenu addItemWithTitle: @"Debug"
|
[aMenu addItemWithTitle: @"Debug"
|
||||||
action: @selector(debug:)
|
action: @selector(debug:)
|
||||||
keyEquivalent: @""];
|
keyEquivalent: @""];
|
||||||
|
[aMenu addItemWithTitle: @"Load Sound"
|
||||||
|
action: @selector(loadSound:)
|
||||||
|
keyEquivalent: @""];
|
||||||
menuItem = [mainMenu addItemWithTitle: @"Document"
|
menuItem = [mainMenu addItemWithTitle: @"Document"
|
||||||
action: NULL
|
action: NULL
|
||||||
keyEquivalent: @""];
|
keyEquivalent: @""];
|
||||||
|
@ -1090,9 +1095,9 @@ static NSButtonType _buttonTypeForObject( id button )
|
||||||
[aMenu addItemWithTitle: @"Load Class..."
|
[aMenu addItemWithTitle: @"Load Class..."
|
||||||
action: @selector(loadClass:)
|
action: @selector(loadClass:)
|
||||||
keyEquivalent: @""];
|
keyEquivalent: @""];
|
||||||
[aMenu addItemWithTitle: @"Edit Class..."
|
// [aMenu addItemWithTitle: @"Edit Class..."
|
||||||
action: @selector(editClass:)
|
// action: @selector(editClass:)
|
||||||
keyEquivalent: @""];
|
// keyEquivalent: @""];
|
||||||
[aMenu addItemWithTitle: @"Create Class's Files..."
|
[aMenu addItemWithTitle: @"Create Class's Files..."
|
||||||
action: @selector(createClassFiles:)
|
action: @selector(createClassFiles:)
|
||||||
keyEquivalent: @""];
|
keyEquivalent: @""];
|
||||||
|
@ -1311,6 +1316,11 @@ NSLog(@"StartupTime %f", [startDate timeIntervalSinceNow]);
|
||||||
[[self activeDocument] performSelector: @selector(printAllEditors)];
|
[[self activeDocument] performSelector: @selector(printAllEditors)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) loadSound: (id) sender
|
||||||
|
{
|
||||||
|
[[self activeDocument] openSound: sender];
|
||||||
|
}
|
||||||
|
|
||||||
- (id) miniaturize: (id)sender
|
- (id) miniaturize: (id)sender
|
||||||
{
|
{
|
||||||
NSWindow *window = [(id)[self activeDocument] window];
|
NSWindow *window = [(id)[self activeDocument] window];
|
||||||
|
|
|
@ -36,8 +36,10 @@
|
||||||
NSBox *selectionBox;
|
NSBox *selectionBox;
|
||||||
NSScrollView *scrollView;
|
NSScrollView *scrollView;
|
||||||
NSScrollView *classesScrollView;
|
NSScrollView *classesScrollView;
|
||||||
|
NSScrollView *soundsScrollView;
|
||||||
id classesView;
|
id classesView;
|
||||||
id objectsView;
|
id objectsView;
|
||||||
|
id soundsView;
|
||||||
BOOL hasSetDefaults;
|
BOOL hasSetDefaults;
|
||||||
BOOL isActive;
|
BOOL isActive;
|
||||||
NSMenu *savedMenu;
|
NSMenu *savedMenu;
|
||||||
|
@ -45,6 +47,7 @@
|
||||||
NSMutableArray *savedEditors;
|
NSMutableArray *savedEditors;
|
||||||
NSMutableArray *hidden;
|
NSMutableArray *hidden;
|
||||||
NSMutableArray *deferredWindows;
|
NSMutableArray *deferredWindows;
|
||||||
|
NSMutableSet *sounds;
|
||||||
}
|
}
|
||||||
- (void) addConnector: (id<IBConnectors>)aConnector;
|
- (void) addConnector: (id<IBConnectors>)aConnector;
|
||||||
- (NSArray*) allConnectors;
|
- (NSArray*) allConnectors;
|
||||||
|
@ -100,6 +103,9 @@
|
||||||
- (id) editClass: (id)sender;
|
- (id) editClass: (id)sender;
|
||||||
- (id) createClassFiles: (id)sender;
|
- (id) createClassFiles: (id)sender;
|
||||||
- (void) changeCurrentClass: (id)sender;
|
- (void) changeCurrentClass: (id)sender;
|
||||||
|
|
||||||
|
// sound support
|
||||||
|
- (id) openSound: (id)sender;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
118
GormDocument.m
118
GormDocument.m
|
@ -26,6 +26,7 @@
|
||||||
#include "GormClassManager.h"
|
#include "GormClassManager.h"
|
||||||
#include "GormCustomView.h"
|
#include "GormCustomView.h"
|
||||||
#include "GormOutlineView.h"
|
#include "GormOutlineView.h"
|
||||||
|
#include <AppKit/NSSound.h>
|
||||||
|
|
||||||
NSString *IBDidOpenDocumentNotification = @"IBDidOpenDocumentNotification";
|
NSString *IBDidOpenDocumentNotification = @"IBDidOpenDocumentNotification";
|
||||||
NSString *IBWillSaveDocumentNotification = @"IBWillSaveDocumentNotification";
|
NSString *IBWillSaveDocumentNotification = @"IBWillSaveDocumentNotification";
|
||||||
|
@ -248,6 +249,17 @@ static NSImage *classesImage = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sound support
|
||||||
|
- (GormSound *)_createSoundPlaceHolder: (NSString *)path
|
||||||
|
{
|
||||||
|
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
|
||||||
|
NSString *name = [[path lastPathComponent] stringByDeletingPathExtension];
|
||||||
|
// [dict setObject: path forKey: @"Path"];
|
||||||
|
// [dict setObject: name forKey: @"Name"];
|
||||||
|
return AUTORELEASE([[GormSound alloc] initWithName: name path: path]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// template support
|
||||||
- (void) _replaceObjectsWithTemplates
|
- (void) _replaceObjectsWithTemplates
|
||||||
{
|
{
|
||||||
if(![classManager isCustomClassMapEmpty])
|
if(![classManager isCustomClassMapEmpty])
|
||||||
|
@ -407,10 +419,10 @@ static NSImage *classesImage = nil;
|
||||||
case 1: // images
|
case 1: // images
|
||||||
[selectionBox setContentView: imagesScrollView];
|
[selectionBox setContentView: imagesScrollView];
|
||||||
break;
|
break;
|
||||||
|
*/
|
||||||
case 2: // sounds
|
case 2: // sounds
|
||||||
[selectionBox setContentView: soundsScrollView];
|
[selectionBox setContentView: soundsScrollView];
|
||||||
break;
|
break;
|
||||||
*/
|
|
||||||
case 3: // classes
|
case 3: // classes
|
||||||
[selectionBox setContentView: classesScrollView];
|
[selectionBox setContentView: classesScrollView];
|
||||||
break;
|
break;
|
||||||
|
@ -1297,6 +1309,9 @@ static NSImage *classesImage = nil;
|
||||||
// defferred windows for this document...
|
// defferred windows for this document...
|
||||||
deferredWindows = [NSMutableArray new];
|
deferredWindows = [NSMutableArray new];
|
||||||
|
|
||||||
|
// defferred windows for this document...
|
||||||
|
sounds = [NSMutableSet new];
|
||||||
|
|
||||||
style = NSTitledWindowMask | NSClosableWindowMask
|
style = NSTitledWindowMask | NSClosableWindowMask
|
||||||
| NSResizableWindowMask | NSMiniaturizableWindowMask;
|
| NSResizableWindowMask | NSMiniaturizableWindowMask;
|
||||||
window = [[NSWindow alloc] initWithContentRect: winrect
|
window = [[NSWindow alloc] initWithContentRect: winrect
|
||||||
|
@ -1396,25 +1411,40 @@ static NSImage *classesImage = nil;
|
||||||
[[window contentView] addSubview: selectionBox];
|
[[window contentView] addSubview: selectionBox];
|
||||||
RELEASE(selectionBox);
|
RELEASE(selectionBox);
|
||||||
|
|
||||||
|
// objects...
|
||||||
|
mainRect.origin = NSMakePoint(0,0);
|
||||||
scrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
|
scrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
|
||||||
[scrollView setHasVerticalScroller: YES];
|
[scrollView setHasVerticalScroller: YES];
|
||||||
[scrollView setHasHorizontalScroller: NO];
|
[scrollView setHasHorizontalScroller: NO];
|
||||||
[scrollView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
|
[scrollView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
|
||||||
|
|
||||||
mainRect.origin = NSMakePoint(0,0);
|
|
||||||
objectsView = [[GormObjectEditor alloc] initWithObject: nil
|
objectsView = [[GormObjectEditor alloc] initWithObject: nil
|
||||||
inDocument: self];
|
inDocument: self];
|
||||||
AUTORELEASE(objectsView);
|
AUTORELEASE(objectsView);
|
||||||
[objectsView setFrame: mainRect];
|
[objectsView setFrame: mainRect];
|
||||||
[objectsView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
|
[objectsView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
|
||||||
[scrollView setDocumentView: objectsView];
|
[scrollView setDocumentView: objectsView];
|
||||||
RELEASE(objectsView);
|
RELEASE(objectsView);
|
||||||
|
|
||||||
|
// sounds...
|
||||||
|
mainRect.origin = NSMakePoint(0,0);
|
||||||
|
soundsScrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
|
||||||
|
[soundsScrollView setHasVerticalScroller: YES];
|
||||||
|
[soundsScrollView setHasHorizontalScroller: NO];
|
||||||
|
[soundsScrollView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
|
||||||
|
soundsView = [[GormSoundEditor alloc] initWithObject: nil
|
||||||
|
inDocument: self];
|
||||||
|
AUTORELEASE(soundsView);
|
||||||
|
[soundsView setFrame: mainRect];
|
||||||
|
[soundsView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
|
||||||
|
[soundsScrollView setDocumentView: soundsView];
|
||||||
|
RELEASE(soundsView);
|
||||||
|
|
||||||
|
// classes...
|
||||||
classesScrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
|
classesScrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
|
||||||
[classesScrollView setHasVerticalScroller: YES];
|
[classesScrollView setHasVerticalScroller: YES];
|
||||||
[classesScrollView setHasHorizontalScroller: NO];
|
[classesScrollView setHasHorizontalScroller: NO];
|
||||||
[classesScrollView setAutoresizingMask:
|
[classesScrollView setAutoresizingMask:
|
||||||
NSViewHeightSizable|NSViewWidthSizable];
|
NSViewHeightSizable|NSViewWidthSizable];
|
||||||
|
|
||||||
mainRect.origin = NSMakePoint(0,0);
|
mainRect.origin = NSMakePoint(0,0);
|
||||||
classesView = [[GormOutlineView alloc] initWithFrame: mainRect];
|
classesView = [[GormOutlineView alloc] initWithFrame: mainRect];
|
||||||
|
@ -1435,7 +1465,7 @@ static NSImage *classesImage = nil;
|
||||||
|
|
||||||
tableColumn = [[NSTableColumn alloc] initWithIdentifier: @"classes"];
|
tableColumn = [[NSTableColumn alloc] initWithIdentifier: @"classes"];
|
||||||
[[tableColumn headerCell] setStringValue: @"Classes"];
|
[[tableColumn headerCell] setStringValue: @"Classes"];
|
||||||
[tableColumn setMinWidth: 200];
|
[tableColumn setMinWidth: 190]; // 200
|
||||||
[tableColumn setResizable: YES];
|
[tableColumn setResizable: YES];
|
||||||
[tableColumn setEditable: YES];
|
[tableColumn setEditable: YES];
|
||||||
[classesView addTableColumn: tableColumn];
|
[classesView addTableColumn: tableColumn];
|
||||||
|
@ -1443,8 +1473,8 @@ static NSImage *classesImage = nil;
|
||||||
RELEASE(tableColumn);
|
RELEASE(tableColumn);
|
||||||
|
|
||||||
tableColumn = [[NSTableColumn alloc] initWithIdentifier: @"outlets"];
|
tableColumn = [[NSTableColumn alloc] initWithIdentifier: @"outlets"];
|
||||||
[[tableColumn headerCell] setStringValue: @"O"];
|
[[tableColumn headerCell] setStringValue: @"Outlet"];
|
||||||
[tableColumn setWidth: 45];
|
[tableColumn setWidth: 50]; // 45
|
||||||
[tableColumn setResizable: NO];
|
[tableColumn setResizable: NO];
|
||||||
[tableColumn setEditable: NO];
|
[tableColumn setEditable: NO];
|
||||||
[classesView addTableColumn: tableColumn];
|
[classesView addTableColumn: tableColumn];
|
||||||
|
@ -1452,8 +1482,8 @@ static NSImage *classesImage = nil;
|
||||||
RELEASE(tableColumn);
|
RELEASE(tableColumn);
|
||||||
|
|
||||||
tableColumn = [[NSTableColumn alloc] initWithIdentifier: @"actions"];
|
tableColumn = [[NSTableColumn alloc] initWithIdentifier: @"actions"];
|
||||||
[[tableColumn headerCell] setStringValue: @"A"];
|
[[tableColumn headerCell] setStringValue: @"Action"];
|
||||||
[tableColumn setWidth: 45];
|
[tableColumn setWidth: 50]; // 45
|
||||||
[tableColumn setResizable: NO];
|
[tableColumn setResizable: NO];
|
||||||
[tableColumn setEditable: NO];
|
[tableColumn setEditable: NO];
|
||||||
[classesView addTableColumn: tableColumn];
|
[classesView addTableColumn: tableColumn];
|
||||||
|
@ -1572,6 +1602,7 @@ static NSImage *classesImage = nil;
|
||||||
NSString *ownerClass;
|
NSString *ownerClass;
|
||||||
NSFileManager *mgr = [NSFileManager defaultManager];
|
NSFileManager *mgr = [NSFileManager defaultManager];
|
||||||
BOOL isDir = NO;
|
BOOL isDir = NO;
|
||||||
|
NSDirectoryEnumerator *dirEnumerator;
|
||||||
|
|
||||||
if([mgr fileExistsAtPath: aFile isDirectory: &isDir])
|
if([mgr fileExistsAtPath: aFile isDirectory: &isDir])
|
||||||
{
|
{
|
||||||
|
@ -1736,13 +1767,34 @@ static NSImage *classesImage = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Finally, we set our new file name
|
* set our new file name
|
||||||
*/
|
*/
|
||||||
ASSIGN(documentPath, aFile);
|
ASSIGN(documentPath, aFile);
|
||||||
[window setTitleWithRepresentedFilename: documentPath];
|
[window setTitleWithRepresentedFilename: documentPath];
|
||||||
[nc postNotificationName: IBDidOpenDocumentNotification
|
[nc postNotificationName: IBDidOpenDocumentNotification
|
||||||
object: self];
|
object: self];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* read in all of the sounds in the .gorm wrapper and load them into the editor.
|
||||||
|
*/
|
||||||
|
dirEnumerator = [mgr enumeratorAtPath: documentPath];
|
||||||
|
if(dirEnumerator)
|
||||||
|
{
|
||||||
|
NSString *file = nil;
|
||||||
|
NSArray *fileTypes = [NSSound soundUnfilteredFileTypes];
|
||||||
|
while(file = [dirEnumerator nextObject])
|
||||||
|
{
|
||||||
|
if([fileTypes containsObject: [file pathExtension]])
|
||||||
|
{
|
||||||
|
NSString *soundPath = [documentPath stringByAppendingPathComponent: file];
|
||||||
|
// add the sound...
|
||||||
|
NSLog(@"Add the sound %@",file);
|
||||||
|
[soundsView addObject: [self _createSoundPlaceHolder: soundPath]];
|
||||||
|
[sounds addObject: soundPath];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// get the custom class map and set it into the class manager...
|
// get the custom class map and set it into the class manager...
|
||||||
NSDebugLog(@"GSCustomClassMap = %@",[[c nameTable] objectForKey: @"GSCustomClassMap"]);
|
NSDebugLog(@"GSCustomClassMap = %@",[[c nameTable] objectForKey: @"GSCustomClassMap"]);
|
||||||
[classManager setCustomClassMap: [[c nameTable] objectForKey: @"GSCustomClassMap"]];
|
[classManager setCustomClassMap: [[c nameTable] objectForKey: @"GSCustomClassMap"]];
|
||||||
|
@ -2319,10 +2371,28 @@ static NSImage *classesImage = nil;
|
||||||
{
|
{
|
||||||
// save the custom classes.. and we're done...
|
// save the custom classes.. and we're done...
|
||||||
archiveResult = [classManager saveToFile: classesPath];
|
archiveResult = [classManager saveToFile: classesPath];
|
||||||
|
|
||||||
|
// copy sounds into the new folder...
|
||||||
|
if(archiveResult)
|
||||||
|
{
|
||||||
|
NSEnumerator *en = [sounds objectEnumerator];
|
||||||
|
id object = nil;
|
||||||
|
|
||||||
|
while((object = [en nextObject]) != nil)
|
||||||
|
{
|
||||||
|
NSString *soundPath = [documentPath stringByAppendingPathComponent: [object lastPathComponent]];
|
||||||
|
BOOL copied = [mgr copyPath: object toPath: soundPath handler: nil];
|
||||||
|
|
||||||
|
if(!copied)
|
||||||
|
{
|
||||||
|
NSLog(@"Could not find sound at path %@", object);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[self endArchiving];
|
[self endArchiving];
|
||||||
|
|
||||||
if (archiveResult == NO)
|
if (archiveResult == NO)
|
||||||
{
|
{
|
||||||
|
@ -2818,5 +2888,29 @@ shouldEditTableColumn: (NSTableColumn *)tableColumn
|
||||||
|
|
||||||
NSLog(@"all editors %@", set);
|
NSLog(@"all editors %@", set);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sound support...
|
||||||
|
- (id) openSound: (id)sender
|
||||||
|
{
|
||||||
|
NSArray *fileTypes = [NSSound soundUnfilteredFileTypes];
|
||||||
|
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
|
||||||
|
int result;
|
||||||
|
|
||||||
|
[oPanel setAllowsMultipleSelection: NO];
|
||||||
|
[oPanel setCanChooseFiles: YES];
|
||||||
|
[oPanel setCanChooseDirectories: NO];
|
||||||
|
result = [oPanel runModalForDirectory: nil
|
||||||
|
file: nil
|
||||||
|
types: fileTypes];
|
||||||
|
if (result == NSOKButton)
|
||||||
|
{
|
||||||
|
NSLog(@"Loading sound file: %@",[oPanel filename]);
|
||||||
|
[soundsView addObject: [self _createSoundPlaceHolder: [oPanel filename]]];
|
||||||
|
[sounds addObject: [oPanel filename]];
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -384,11 +384,13 @@
|
||||||
{
|
{
|
||||||
[panel setTitle: @"Inspector"];
|
[panel setTitle: @"Inspector"];
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
else if ([obj isKindOfClass: [GormClassProxy class]])
|
else if ([obj isKindOfClass: [GormClassProxy class]])
|
||||||
{
|
{
|
||||||
[panel setTitle: [NSString stringWithFormat: @"Class Edit Inspector:%@",
|
[panel setTitle: [NSString stringWithFormat: @"Class Edit Inspector:%@",
|
||||||
[obj className]]];
|
[obj className]]];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[panel setTitle: [NSString stringWithFormat: @"%@ Inspector",
|
[panel setTitle: [NSString stringWithFormat: @"%@ Inspector",
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
extern NSString *GormLinkPboardType;
|
extern NSString *GormLinkPboardType;
|
||||||
|
|
||||||
|
// templates
|
||||||
@interface GSNibItem (GormAdditions)
|
@interface GSNibItem (GormAdditions)
|
||||||
- initWithClassName: (NSString*)className frame: (NSRect)frame;
|
- initWithClassName: (NSString*)className frame: (NSRect)frame;
|
||||||
- (NSString*) className;
|
- (NSString*) className;
|
||||||
|
@ -142,6 +142,7 @@ extern NSString *GormLinkPboardType;
|
||||||
- (id) inspector: (id) sender;
|
- (id) inspector: (id) sender;
|
||||||
- (id) newApplication: (id) sender;
|
- (id) newApplication: (id) sender;
|
||||||
- (id) loadPalette: (id) sender;
|
- (id) loadPalette: (id) sender;
|
||||||
|
- (void) loadSound: (id) sender;
|
||||||
- (id) open: (id)sender;
|
- (id) open: (id)sender;
|
||||||
- (id) palettes: (id) sender;
|
- (id) palettes: (id) sender;
|
||||||
- (id) paste: (id)sender;
|
- (id) paste: (id)sender;
|
||||||
|
@ -178,7 +179,7 @@ extern NSString *GormLinkPboardType;
|
||||||
NSPasteboard *dragPb;
|
NSPasteboard *dragPb;
|
||||||
NSString *dragType;
|
NSString *dragType;
|
||||||
}
|
}
|
||||||
+ (GormObjectEditor*) editorForDocument: (id<IBDocuments>)aDocument;
|
// + (GormObjectEditor*) editorForDocument: (id<IBDocuments>)aDocument;
|
||||||
- (void) addObject: (id)anObject;
|
- (void) addObject: (id)anObject;
|
||||||
- (void) draggedImage: (NSImage*)i endedAt: (NSPoint)p deposited: (BOOL)f;
|
- (void) draggedImage: (NSImage*)i endedAt: (NSPoint)p deposited: (BOOL)f;
|
||||||
- (unsigned int) draggingSourceOperationMaskForLocal: (BOOL)flag;
|
- (unsigned int) draggingSourceOperationMaskForLocal: (BOOL)flag;
|
||||||
|
@ -205,6 +206,30 @@ extern NSString *GormLinkPboardType;
|
||||||
- (NSWindow*) window;
|
- (NSWindow*) window;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface GormSoundEditor : NSMatrix <IBEditors, IBSelectionOwners>
|
||||||
|
{
|
||||||
|
NSMutableArray *objects;
|
||||||
|
id<IBDocuments> document;
|
||||||
|
id selected;
|
||||||
|
NSPasteboard *dragPb;
|
||||||
|
NSString *dragType;
|
||||||
|
}
|
||||||
|
// don't redeclare methods already declared in protocols.
|
||||||
|
+ (GormSoundEditor*) editorForDocument: (id<IBDocuments>)aDocument;
|
||||||
|
- (void) addObject: (id)anObject;
|
||||||
|
- (void) draggedImage: (NSImage*)i endedAt: (NSPoint)p deposited: (BOOL)f;
|
||||||
|
- (unsigned int) draggingSourceOperationMaskForLocal: (BOOL)flag;
|
||||||
|
- (void) refreshCells;
|
||||||
|
- (void) removeObject: (id)anObject;
|
||||||
|
- (void) closeSubeditors;
|
||||||
|
- (BOOL) containsObject: (id)anObject;
|
||||||
|
- (void) copySelection;
|
||||||
|
- (void) deleteSelection;
|
||||||
|
- (id<IBEditors>) openSubeditorForObject: (id)anObject;
|
||||||
|
- (void) pasteInSelection;
|
||||||
|
- (NSRect) rectForObject: (id)anObject;
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
||||||
@interface GormFilesOwnerInspector : IBInspector
|
@interface GormFilesOwnerInspector : IBInspector
|
||||||
{
|
{
|
||||||
|
@ -252,6 +277,28 @@ extern NSString *GormLinkPboardType;
|
||||||
- (id) allocSubstitute;
|
- (id) allocSubstitute;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
// we don't use the actual sound since we don't want to read the entire sound into
|
||||||
|
// memory.
|
||||||
|
@interface GormSound : NSObject
|
||||||
|
{
|
||||||
|
NSString *name;
|
||||||
|
NSString *path;
|
||||||
|
BOOL isSystemSound;
|
||||||
|
BOOL isInWrapper;
|
||||||
|
}
|
||||||
|
- (id) initWithName: (NSString *)aName
|
||||||
|
path: (NSString *)aPath;
|
||||||
|
- (void) setSoundName: (NSString *)aName;
|
||||||
|
- (NSString *) soundName;
|
||||||
|
- (void) setSoundPath: (NSString *)aPath;
|
||||||
|
- (NSString *) soundPath;
|
||||||
|
- (void) setSystemSound: (BOOL)flag;
|
||||||
|
- (BOOL) isSystemSound;
|
||||||
|
- (void) setInWrapper: (BOOL)flag;
|
||||||
|
- (BOOL) isInWrapper;
|
||||||
|
- (NSString *)inspectorClassName;
|
||||||
|
@end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Functions for drawing knobs etc.
|
* Functions for drawing knobs etc.
|
||||||
*/
|
*/
|
||||||
|
|
153
Resources/GormCustomClassInspector.gorm/data.classes
Normal file
153
Resources/GormCustomClassInspector.gorm/data.classes
Normal file
|
@ -0,0 +1,153 @@
|
||||||
|
{
|
||||||
|
FirstResponder = {
|
||||||
|
Actions = (
|
||||||
|
"activateContextHelpMode:",
|
||||||
|
"alignCenter:",
|
||||||
|
"alignJustified:",
|
||||||
|
"alignLeft:",
|
||||||
|
"alignRight:",
|
||||||
|
"arrangeInFront:",
|
||||||
|
"cancel:",
|
||||||
|
"capitalizeWord:",
|
||||||
|
"changeColor:",
|
||||||
|
"changeFont:",
|
||||||
|
"checkSpelling:",
|
||||||
|
"close:",
|
||||||
|
"complete:",
|
||||||
|
"copy:",
|
||||||
|
"copyFont:",
|
||||||
|
"copyRuler:",
|
||||||
|
"cut:",
|
||||||
|
"delete:",
|
||||||
|
"deleteBackward:",
|
||||||
|
"deleteForward:",
|
||||||
|
"deleteToBeginningOfLine:",
|
||||||
|
"deleteToBeginningOfParagraph:",
|
||||||
|
"deleteToEndOfLine:",
|
||||||
|
"deleteToEndOfParagraph:",
|
||||||
|
"deleteToMark:",
|
||||||
|
"deleteWordBackward:",
|
||||||
|
"deleteWordForward:",
|
||||||
|
"deminiaturize:",
|
||||||
|
"deselectAll:",
|
||||||
|
"fax:",
|
||||||
|
"hide:",
|
||||||
|
"hideOtherApplications:",
|
||||||
|
"indent:",
|
||||||
|
"loosenKerning:",
|
||||||
|
"lowerBaseline:",
|
||||||
|
"lowercaseWord:",
|
||||||
|
"makeKeyAndOrderFront:",
|
||||||
|
"miniaturize:",
|
||||||
|
"miniaturizeAll:",
|
||||||
|
"moveBackward:",
|
||||||
|
"moveBackwardAndModifySelection:",
|
||||||
|
"moveDown:",
|
||||||
|
"moveDownAndModifySelection:",
|
||||||
|
"moveForward:",
|
||||||
|
"moveForwardAndModifySelection:",
|
||||||
|
"moveLeft:",
|
||||||
|
"moveRight:",
|
||||||
|
"moveToBeginningOfDocument:",
|
||||||
|
"moveToBeginningOfLine:",
|
||||||
|
"moveToBeginningOfParagraph:",
|
||||||
|
"moveToEndOfDocument:",
|
||||||
|
"moveToEndOfLine:",
|
||||||
|
"moveToEndOfParagraph:",
|
||||||
|
"moveUp:",
|
||||||
|
"moveUpAndModifySelection:",
|
||||||
|
"moveWordBackward:",
|
||||||
|
"moveWordBackwardAndModifySelection:",
|
||||||
|
"moveWordForward:",
|
||||||
|
"moveWordForwardAndModifySelection:",
|
||||||
|
"newDocument:",
|
||||||
|
"ok:",
|
||||||
|
"openDocument:",
|
||||||
|
"orderBack:",
|
||||||
|
"orderFront:",
|
||||||
|
"orderFrontColorPanel:",
|
||||||
|
"orderFrontDataLinkPanel:",
|
||||||
|
"orderFrontHelpPanel:",
|
||||||
|
"orderFrontStandardAboutPanel:",
|
||||||
|
"orderFrontStandardInfoPanel:",
|
||||||
|
"orderOut:",
|
||||||
|
"pageDown:",
|
||||||
|
"pageUp:",
|
||||||
|
"paste:",
|
||||||
|
"pasteAsPlainText:",
|
||||||
|
"pasteAsRichText:",
|
||||||
|
"pasteFont:",
|
||||||
|
"pasteRuler:",
|
||||||
|
"performClose:",
|
||||||
|
"performMiniaturize:",
|
||||||
|
"performZoom:",
|
||||||
|
"print:",
|
||||||
|
"raiseBaseline:",
|
||||||
|
"revertDocumentToSaved:",
|
||||||
|
"runPageLayout:",
|
||||||
|
"runToolbarCustomizationPalette:",
|
||||||
|
"saveAllDocuments:",
|
||||||
|
"saveDocument:",
|
||||||
|
"saveDocumentAs:",
|
||||||
|
"saveDocumentTo:",
|
||||||
|
"scrollLineDown:",
|
||||||
|
"scrollLineUp:",
|
||||||
|
"scrollPageDown:",
|
||||||
|
"scrollPageUp:",
|
||||||
|
"scrollViaScroller:",
|
||||||
|
"selectAll:",
|
||||||
|
"selectLine:",
|
||||||
|
"selectNextKeyView:",
|
||||||
|
"selectParagraph:",
|
||||||
|
"selectPreviousKeyView:",
|
||||||
|
"selectText:",
|
||||||
|
"selectText:",
|
||||||
|
"selectToMark:",
|
||||||
|
"selectWord:",
|
||||||
|
"showContextHelp:",
|
||||||
|
"showGuessPanel:",
|
||||||
|
"showHelp:",
|
||||||
|
"showWindow:",
|
||||||
|
"stop:",
|
||||||
|
"subscript:",
|
||||||
|
"superscript:",
|
||||||
|
"swapWithMark:",
|
||||||
|
"takeDoubleValueFrom:",
|
||||||
|
"takeFloatValueFrom:",
|
||||||
|
"takeIntValueFrom:",
|
||||||
|
"takeObjectValueFrom:",
|
||||||
|
"takeStringValueFrom:",
|
||||||
|
"terminate:",
|
||||||
|
"tightenKerning:",
|
||||||
|
"toggle:",
|
||||||
|
"toggleContinuousSpellChecking:",
|
||||||
|
"toggleRuler:",
|
||||||
|
"toggleToolbarShown:",
|
||||||
|
"toggleTraditionalCharacterShape:",
|
||||||
|
"transpose:",
|
||||||
|
"transposeWords:",
|
||||||
|
"turnOffKerning:",
|
||||||
|
"turnOffLigatures:",
|
||||||
|
"underline:",
|
||||||
|
"unhide:",
|
||||||
|
"unhideAllApplications:",
|
||||||
|
"unscript:",
|
||||||
|
"uppercaseWord:",
|
||||||
|
"useAllLigatures:",
|
||||||
|
"useStandardKerning:",
|
||||||
|
"useStandardLigatures:",
|
||||||
|
"yank:",
|
||||||
|
"zoom:"
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
GormCustomClassInspector = {
|
||||||
|
Actions = (
|
||||||
|
"select:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
browser
|
||||||
|
);
|
||||||
|
Super = IBInspector;
|
||||||
|
};
|
||||||
|
}
|
BIN
Resources/GormCustomClassInspector.gorm/objects.gorm
Normal file
BIN
Resources/GormCustomClassInspector.gorm/objects.gorm
Normal file
Binary file not shown.
155
Resources/GormSoundInspector.gorm/data.classes
Normal file
155
Resources/GormSoundInspector.gorm/data.classes
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
{
|
||||||
|
FirstResponder = {
|
||||||
|
Actions = (
|
||||||
|
"activateContextHelpMode:",
|
||||||
|
"alignCenter:",
|
||||||
|
"alignJustified:",
|
||||||
|
"alignLeft:",
|
||||||
|
"alignRight:",
|
||||||
|
"arrangeInFront:",
|
||||||
|
"cancel:",
|
||||||
|
"capitalizeWord:",
|
||||||
|
"changeColor:",
|
||||||
|
"changeFont:",
|
||||||
|
"checkSpelling:",
|
||||||
|
"close:",
|
||||||
|
"complete:",
|
||||||
|
"copy:",
|
||||||
|
"copyFont:",
|
||||||
|
"copyRuler:",
|
||||||
|
"cut:",
|
||||||
|
"delete:",
|
||||||
|
"deleteBackward:",
|
||||||
|
"deleteForward:",
|
||||||
|
"deleteToBeginningOfLine:",
|
||||||
|
"deleteToBeginningOfParagraph:",
|
||||||
|
"deleteToEndOfLine:",
|
||||||
|
"deleteToEndOfParagraph:",
|
||||||
|
"deleteToMark:",
|
||||||
|
"deleteWordBackward:",
|
||||||
|
"deleteWordForward:",
|
||||||
|
"deminiaturize:",
|
||||||
|
"deselectAll:",
|
||||||
|
"fax:",
|
||||||
|
"hide:",
|
||||||
|
"hideOtherApplications:",
|
||||||
|
"indent:",
|
||||||
|
"loosenKerning:",
|
||||||
|
"lowerBaseline:",
|
||||||
|
"lowercaseWord:",
|
||||||
|
"makeKeyAndOrderFront:",
|
||||||
|
"miniaturize:",
|
||||||
|
"miniaturizeAll:",
|
||||||
|
"moveBackward:",
|
||||||
|
"moveBackwardAndModifySelection:",
|
||||||
|
"moveDown:",
|
||||||
|
"moveDownAndModifySelection:",
|
||||||
|
"moveForward:",
|
||||||
|
"moveForwardAndModifySelection:",
|
||||||
|
"moveLeft:",
|
||||||
|
"moveRight:",
|
||||||
|
"moveToBeginningOfDocument:",
|
||||||
|
"moveToBeginningOfLine:",
|
||||||
|
"moveToBeginningOfParagraph:",
|
||||||
|
"moveToEndOfDocument:",
|
||||||
|
"moveToEndOfLine:",
|
||||||
|
"moveToEndOfParagraph:",
|
||||||
|
"moveUp:",
|
||||||
|
"moveUpAndModifySelection:",
|
||||||
|
"moveWordBackward:",
|
||||||
|
"moveWordBackwardAndModifySelection:",
|
||||||
|
"moveWordForward:",
|
||||||
|
"moveWordForwardAndModifySelection:",
|
||||||
|
"newDocument:",
|
||||||
|
"ok:",
|
||||||
|
"openDocument:",
|
||||||
|
"orderBack:",
|
||||||
|
"orderFront:",
|
||||||
|
"orderFrontColorPanel:",
|
||||||
|
"orderFrontDataLinkPanel:",
|
||||||
|
"orderFrontHelpPanel:",
|
||||||
|
"orderFrontStandardAboutPanel:",
|
||||||
|
"orderFrontStandardInfoPanel:",
|
||||||
|
"orderOut:",
|
||||||
|
"pageDown:",
|
||||||
|
"pageUp:",
|
||||||
|
"paste:",
|
||||||
|
"pasteAsPlainText:",
|
||||||
|
"pasteAsRichText:",
|
||||||
|
"pasteFont:",
|
||||||
|
"pasteRuler:",
|
||||||
|
"performClose:",
|
||||||
|
"performMiniaturize:",
|
||||||
|
"performZoom:",
|
||||||
|
"print:",
|
||||||
|
"raiseBaseline:",
|
||||||
|
"revertDocumentToSaved:",
|
||||||
|
"runPageLayout:",
|
||||||
|
"runToolbarCustomizationPalette:",
|
||||||
|
"saveAllDocuments:",
|
||||||
|
"saveDocument:",
|
||||||
|
"saveDocumentAs:",
|
||||||
|
"saveDocumentTo:",
|
||||||
|
"scrollLineDown:",
|
||||||
|
"scrollLineUp:",
|
||||||
|
"scrollPageDown:",
|
||||||
|
"scrollPageUp:",
|
||||||
|
"scrollViaScroller:",
|
||||||
|
"selectAll:",
|
||||||
|
"selectLine:",
|
||||||
|
"selectNextKeyView:",
|
||||||
|
"selectParagraph:",
|
||||||
|
"selectPreviousKeyView:",
|
||||||
|
"selectText:",
|
||||||
|
"selectText:",
|
||||||
|
"selectToMark:",
|
||||||
|
"selectWord:",
|
||||||
|
"showContextHelp:",
|
||||||
|
"showGuessPanel:",
|
||||||
|
"showHelp:",
|
||||||
|
"showWindow:",
|
||||||
|
"stop:",
|
||||||
|
"subscript:",
|
||||||
|
"superscript:",
|
||||||
|
"swapWithMark:",
|
||||||
|
"takeDoubleValueFrom:",
|
||||||
|
"takeFloatValueFrom:",
|
||||||
|
"takeIntValueFrom:",
|
||||||
|
"takeObjectValueFrom:",
|
||||||
|
"takeStringValueFrom:",
|
||||||
|
"terminate:",
|
||||||
|
"tightenKerning:",
|
||||||
|
"toggle:",
|
||||||
|
"toggleContinuousSpellChecking:",
|
||||||
|
"toggleRuler:",
|
||||||
|
"toggleToolbarShown:",
|
||||||
|
"toggleTraditionalCharacterShape:",
|
||||||
|
"transpose:",
|
||||||
|
"transposeWords:",
|
||||||
|
"turnOffKerning:",
|
||||||
|
"turnOffLigatures:",
|
||||||
|
"underline:",
|
||||||
|
"unhide:",
|
||||||
|
"unhideAllApplications:",
|
||||||
|
"unscript:",
|
||||||
|
"uppercaseWord:",
|
||||||
|
"useAllLigatures:",
|
||||||
|
"useStandardKerning:",
|
||||||
|
"useStandardLigatures:",
|
||||||
|
"yank:",
|
||||||
|
"zoom:"
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
GormSoundInspector = {
|
||||||
|
Actions = (
|
||||||
|
"record:",
|
||||||
|
"pause:",
|
||||||
|
"play:",
|
||||||
|
"stop:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
);
|
||||||
|
Super = IBInspector;
|
||||||
|
};
|
||||||
|
}
|
BIN
Resources/GormSoundInspector.gorm/objects.gorm
Normal file
BIN
Resources/GormSoundInspector.gorm/objects.gorm
Normal file
Binary file not shown.
571
Resources/GormViewSizeInspector.gorm/data.classes
Normal file
571
Resources/GormViewSizeInspector.gorm/data.classes
Normal file
|
@ -0,0 +1,571 @@
|
||||||
|
{
|
||||||
|
FirstResponder = {
|
||||||
|
Actions = (
|
||||||
|
"activateContextHelpMode:",
|
||||||
|
"alignCenter:",
|
||||||
|
"alignJustified:",
|
||||||
|
"alignLeft:",
|
||||||
|
"alignRight:",
|
||||||
|
"arrangeInFront:",
|
||||||
|
"cancel:",
|
||||||
|
"capitalizeWord:",
|
||||||
|
"changeColor:",
|
||||||
|
"changeFont:",
|
||||||
|
"checkSpelling:",
|
||||||
|
"close:",
|
||||||
|
"complete:",
|
||||||
|
"copy:",
|
||||||
|
"copyFont:",
|
||||||
|
"copyRuler:",
|
||||||
|
"cut:",
|
||||||
|
"delete:",
|
||||||
|
"deleteBackward:",
|
||||||
|
"deleteForward:",
|
||||||
|
"deleteToBeginningOfLine:",
|
||||||
|
"deleteToBeginningOfParagraph:",
|
||||||
|
"deleteToEndOfLine:",
|
||||||
|
"deleteToEndOfParagraph:",
|
||||||
|
"deleteToMark:",
|
||||||
|
"deleteWordBackward:",
|
||||||
|
"deleteWordForward:",
|
||||||
|
"deminiaturize:",
|
||||||
|
"deselectAll:",
|
||||||
|
"fax:",
|
||||||
|
"hide:",
|
||||||
|
"hideOtherApplications:",
|
||||||
|
"indent:",
|
||||||
|
"loosenKerning:",
|
||||||
|
"lowerBaseline:",
|
||||||
|
"lowercaseWord:",
|
||||||
|
"makeKeyAndOrderFront:",
|
||||||
|
"miniaturize:",
|
||||||
|
"miniaturizeAll:",
|
||||||
|
"moveBackward:",
|
||||||
|
"moveBackwardAndModifySelection:",
|
||||||
|
"moveDown:",
|
||||||
|
"moveDownAndModifySelection:",
|
||||||
|
"moveForward:",
|
||||||
|
"moveForwardAndModifySelection:",
|
||||||
|
"moveLeft:",
|
||||||
|
"moveRight:",
|
||||||
|
"moveToBeginningOfDocument:",
|
||||||
|
"moveToBeginningOfLine:",
|
||||||
|
"moveToBeginningOfParagraph:",
|
||||||
|
"moveToEndOfDocument:",
|
||||||
|
"moveToEndOfLine:",
|
||||||
|
"moveToEndOfParagraph:",
|
||||||
|
"moveUp:",
|
||||||
|
"moveUpAndModifySelection:",
|
||||||
|
"moveWordBackward:",
|
||||||
|
"moveWordBackwardAndModifySelection:",
|
||||||
|
"moveWordForward:",
|
||||||
|
"moveWordForwardAndModifySelection:",
|
||||||
|
"ok:",
|
||||||
|
"open:",
|
||||||
|
"orderBack:",
|
||||||
|
"orderFront:",
|
||||||
|
"orderFrontColorPanel:",
|
||||||
|
"orderFrontDataLinkPanel:",
|
||||||
|
"orderFrontHelpPanel:",
|
||||||
|
"orderFrontStandardAboutPanel:",
|
||||||
|
"orderFrontStandardInfoPanel:",
|
||||||
|
"orderOut:",
|
||||||
|
"pageDown:",
|
||||||
|
"pageUp:",
|
||||||
|
"paste:",
|
||||||
|
"pasteAsPlainText:",
|
||||||
|
"pasteAsRichText:",
|
||||||
|
"pasteFont:",
|
||||||
|
"pasteRuler:",
|
||||||
|
"performClose:",
|
||||||
|
"performMiniaturize:",
|
||||||
|
"performZoom:",
|
||||||
|
"print:",
|
||||||
|
"raiseBaseline:",
|
||||||
|
"runPageLayout:",
|
||||||
|
"runToolbarCustomizationPalette:",
|
||||||
|
"scrollLineDown:",
|
||||||
|
"scrollLineUp:",
|
||||||
|
"scrollPageDown:",
|
||||||
|
"scrollPageUp:",
|
||||||
|
"scrollViaScroller:",
|
||||||
|
"selectAll:",
|
||||||
|
"selectLine:",
|
||||||
|
"selectNextKeyView:",
|
||||||
|
"selectParagraph:",
|
||||||
|
"selectPreviousKeyView:",
|
||||||
|
"selectText:",
|
||||||
|
"selectText:",
|
||||||
|
"selectToMark:",
|
||||||
|
"selectWord:",
|
||||||
|
"showContextHelp:",
|
||||||
|
"showGuessPanel:",
|
||||||
|
"showHelp:",
|
||||||
|
"showWindow:",
|
||||||
|
"stop:",
|
||||||
|
"subscript:",
|
||||||
|
"superscript:",
|
||||||
|
"swapWithMark:",
|
||||||
|
"takeDoubleValueFrom:",
|
||||||
|
"takeFloatValueFrom:",
|
||||||
|
"takeIntValueFrom:",
|
||||||
|
"takeObjectValueFrom:",
|
||||||
|
"takeStringValueFrom:",
|
||||||
|
"terminate:",
|
||||||
|
"tightenKerning:",
|
||||||
|
"toggle:",
|
||||||
|
"toggleContinuousSpellChecking:",
|
||||||
|
"toggleRuler:",
|
||||||
|
"toggleToolbarShown:",
|
||||||
|
"toggleTraditionalCharacterShape:",
|
||||||
|
"transpose:",
|
||||||
|
"transposeWords:",
|
||||||
|
"turnOffKerning:",
|
||||||
|
"turnOffLigatures:",
|
||||||
|
"underline:",
|
||||||
|
"unhide:",
|
||||||
|
"unhideAllApplications:",
|
||||||
|
"unscript:",
|
||||||
|
"uppercaseWord:",
|
||||||
|
"useAllLigatures:",
|
||||||
|
"useStandardKerning:",
|
||||||
|
"useStandardLigatures:",
|
||||||
|
"yank:",
|
||||||
|
"zoom:"
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
GormViewSizeInpector = {
|
||||||
|
Actions = (
|
||||||
|
"setAutosize:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
bottom,
|
||||||
|
height,
|
||||||
|
left,
|
||||||
|
right,
|
||||||
|
sizeForm,
|
||||||
|
top,
|
||||||
|
width
|
||||||
|
);
|
||||||
|
Super = IBInspector;
|
||||||
|
};
|
||||||
|
IBInspector = {
|
||||||
|
Actions = (
|
||||||
|
"ok:",
|
||||||
|
"revert:",
|
||||||
|
"touch:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
window
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
IBPalette = {
|
||||||
|
Actions = (
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
originalWindow
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSActionCell = {
|
||||||
|
Super = NSCell;
|
||||||
|
};
|
||||||
|
NSApplication = {
|
||||||
|
Actions = (
|
||||||
|
"arrangeInFront:",
|
||||||
|
"hide:",
|
||||||
|
"hideOtherApplications:",
|
||||||
|
"miniaturizeAll:",
|
||||||
|
"orderFrontColorPanel:",
|
||||||
|
"orderFrontDataLinkPanel:",
|
||||||
|
"orderFrontHelpPanel:",
|
||||||
|
"orderFrontStandardAboutPanel:",
|
||||||
|
"orderFrontStandardInfoPanel:",
|
||||||
|
"runPageLayout:",
|
||||||
|
"stop:",
|
||||||
|
"terminate:",
|
||||||
|
"unhide:",
|
||||||
|
"unhideAllApplications:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSResponder;
|
||||||
|
};
|
||||||
|
NSArray = {
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSBrowser = {
|
||||||
|
Actions = (
|
||||||
|
"doClick:",
|
||||||
|
"doDoubleClick:",
|
||||||
|
"selectAll:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSBrowserCell = {
|
||||||
|
Super = NSCell;
|
||||||
|
};
|
||||||
|
NSButton = {
|
||||||
|
Actions = (
|
||||||
|
"performClick:"
|
||||||
|
);
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSButtonCell = {
|
||||||
|
Actions = (
|
||||||
|
"performClick:"
|
||||||
|
);
|
||||||
|
Super = NSActionCell;
|
||||||
|
};
|
||||||
|
NSCStringText = {
|
||||||
|
Actions = (
|
||||||
|
"clear:",
|
||||||
|
"selectText:"
|
||||||
|
);
|
||||||
|
Super = NSText;
|
||||||
|
};
|
||||||
|
NSCell = {
|
||||||
|
Actions = (
|
||||||
|
"takeDoubleValueFrom:",
|
||||||
|
"takeFloatValueFrom:",
|
||||||
|
"takeIntValueFrom:",
|
||||||
|
"takeStringValueFrom:"
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSColorWell = {
|
||||||
|
Actions = (
|
||||||
|
"takeColorFrom:"
|
||||||
|
);
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSComboBox = {
|
||||||
|
Outlets = (
|
||||||
|
dataSource
|
||||||
|
);
|
||||||
|
Super = NSTextField;
|
||||||
|
};
|
||||||
|
NSControl = {
|
||||||
|
Actions = (
|
||||||
|
"takeDoubleValueFrom:",
|
||||||
|
"takeFloatValueFrom:",
|
||||||
|
"takeIntValueFrom:",
|
||||||
|
"takeObjectValueFrom:",
|
||||||
|
"takeStringValueFrom:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
target
|
||||||
|
);
|
||||||
|
Super = NSView;
|
||||||
|
};
|
||||||
|
NSCursor = {
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSDateFormatter = {
|
||||||
|
Super = NSFormatter;
|
||||||
|
};
|
||||||
|
NSDictionary = {
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSDocument = {
|
||||||
|
Actions = (
|
||||||
|
"printDocument:",
|
||||||
|
"revertDocumentToSaved:",
|
||||||
|
"runPageLayout:",
|
||||||
|
"saveDocument:",
|
||||||
|
"saveDocumentAs:",
|
||||||
|
"saveDocumentTo:"
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSDocumentController = {
|
||||||
|
Actions = (
|
||||||
|
"clearRecentDocuments:",
|
||||||
|
"newDocument:",
|
||||||
|
"openDocument:",
|
||||||
|
"saveAllDocuments:"
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSDrawer = {
|
||||||
|
Actions = (
|
||||||
|
"close:",
|
||||||
|
"open:",
|
||||||
|
"toggle:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSResponder;
|
||||||
|
};
|
||||||
|
NSFontManager = {
|
||||||
|
Actions = (
|
||||||
|
"addFontTrait:",
|
||||||
|
"modifyFont:",
|
||||||
|
"modifyFontViaPanel:",
|
||||||
|
"orderFrontFontPanel:",
|
||||||
|
"removeFontTrait:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
menu
|
||||||
|
);
|
||||||
|
Super = NSResponder;
|
||||||
|
};
|
||||||
|
NSForm = {
|
||||||
|
Super = NSMatrix;
|
||||||
|
};
|
||||||
|
NSFormCell = {
|
||||||
|
Super = NSActionCell;
|
||||||
|
};
|
||||||
|
NSFormatter = {
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSHelpManager = {
|
||||||
|
Actions = (
|
||||||
|
"activateContextHelpMode:",
|
||||||
|
"showHelp:"
|
||||||
|
);
|
||||||
|
Super = NSResponder;
|
||||||
|
};
|
||||||
|
NSImage = {
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSImageView = {
|
||||||
|
Super = NScontrol;
|
||||||
|
};
|
||||||
|
NSMatrix = {
|
||||||
|
Actions = (
|
||||||
|
"selectAll:",
|
||||||
|
"selectText:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSMenu = {
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSMenuItem = {
|
||||||
|
Outlets = (
|
||||||
|
target
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSMutableArray = {
|
||||||
|
Super = NSArray;
|
||||||
|
};
|
||||||
|
NSMutableDictionary = {
|
||||||
|
Super = NSDictionary;
|
||||||
|
};
|
||||||
|
NSNumberFormatter = {
|
||||||
|
Super = NSFormatter;
|
||||||
|
};
|
||||||
|
NSOutlineView = {
|
||||||
|
Super = NSTableView;
|
||||||
|
};
|
||||||
|
NSPanel = {
|
||||||
|
Super = NSWindow;
|
||||||
|
};
|
||||||
|
NSPopUpButton = {
|
||||||
|
Super = NSButton;
|
||||||
|
};
|
||||||
|
NSProgressIndicator = {
|
||||||
|
Actions = (
|
||||||
|
"animate:",
|
||||||
|
"startAnimation:",
|
||||||
|
"stopAnimation:"
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSResponder = {
|
||||||
|
Outlets = (
|
||||||
|
menu
|
||||||
|
);
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSRulerView = {
|
||||||
|
Super = NSView;
|
||||||
|
};
|
||||||
|
NSScrollView = {
|
||||||
|
Super = NSView;
|
||||||
|
};
|
||||||
|
NSScroller = {
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSSecureTextField = {
|
||||||
|
Super = NSTextField;
|
||||||
|
};
|
||||||
|
NSSecureTextFieldCell = {
|
||||||
|
Super = NSTextFieldCell;
|
||||||
|
};
|
||||||
|
NSSlider = {
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSSliderCell = {
|
||||||
|
Super = NSActionCell;
|
||||||
|
};
|
||||||
|
NSSplitView = {
|
||||||
|
Super = NSView;
|
||||||
|
};
|
||||||
|
NSTabView = {
|
||||||
|
Actions = (
|
||||||
|
"selectFirstTabViewItem:",
|
||||||
|
"selectLastTabViewItem:",
|
||||||
|
"selectNextTabViewItem:",
|
||||||
|
"selectPreviousTabViewItem:",
|
||||||
|
"takeSelectedTabViewItemFromSender:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSView;
|
||||||
|
};
|
||||||
|
NSTableColumn = {
|
||||||
|
Super = NSObject;
|
||||||
|
};
|
||||||
|
NSTableHeaderCell = {
|
||||||
|
Super = NSTextFieldCell;
|
||||||
|
};
|
||||||
|
NSTableHeaderView = {
|
||||||
|
Super = NSView;
|
||||||
|
};
|
||||||
|
NSTableView = {
|
||||||
|
Actions = (
|
||||||
|
"deselectAll:",
|
||||||
|
"selectAll:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
dataSource,
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSText = {
|
||||||
|
Actions = (
|
||||||
|
"alignCenter:",
|
||||||
|
"alignLeft:",
|
||||||
|
"alignRight:",
|
||||||
|
"changeFont:",
|
||||||
|
"changeSpelling:",
|
||||||
|
"checkSpelling:",
|
||||||
|
"copy:",
|
||||||
|
"copyFont:",
|
||||||
|
"copyRuler:",
|
||||||
|
"cut:",
|
||||||
|
"delete:",
|
||||||
|
"ignoreSpelling:",
|
||||||
|
"paste:",
|
||||||
|
"pasteFont:",
|
||||||
|
"pasteRuler:",
|
||||||
|
"selectAll:",
|
||||||
|
"showGuessPanel:",
|
||||||
|
"subscript:",
|
||||||
|
"superscript:",
|
||||||
|
"toggleRuler:",
|
||||||
|
"underline:",
|
||||||
|
"unscript:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSView;
|
||||||
|
};
|
||||||
|
NSTextField = {
|
||||||
|
Actions = (
|
||||||
|
"selectText:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate
|
||||||
|
);
|
||||||
|
Super = NSControl;
|
||||||
|
};
|
||||||
|
NSTextFieldCell = {
|
||||||
|
Super = NSActionCell;
|
||||||
|
};
|
||||||
|
NSTextView = {
|
||||||
|
Actions = (
|
||||||
|
"alignJustified:",
|
||||||
|
"changeColor:",
|
||||||
|
"deleteBackwards:",
|
||||||
|
"insertBacktab:",
|
||||||
|
"insertNewLine:",
|
||||||
|
"insertParagraphSeparator:",
|
||||||
|
"insertTab:",
|
||||||
|
"loosenKerning:",
|
||||||
|
"lowerBaseline:",
|
||||||
|
"moveBackward:",
|
||||||
|
"moveDown:",
|
||||||
|
"moveForward:",
|
||||||
|
"moveLeft:",
|
||||||
|
"moveRight:",
|
||||||
|
"moveUp:",
|
||||||
|
"pasteAsPlainText:",
|
||||||
|
"pasteAsRichText:",
|
||||||
|
"raiseBaseline:",
|
||||||
|
"tightenKerning:",
|
||||||
|
"toggleContinuousSpellChecking:",
|
||||||
|
"toggleTraditionalCharacterShape:",
|
||||||
|
"turnOffKerning:",
|
||||||
|
"turnOffLigatures:",
|
||||||
|
"useAllLigatures:",
|
||||||
|
"useDefaultBaseline:",
|
||||||
|
"useDefaultKerning:",
|
||||||
|
"useDefaultLigatures:",
|
||||||
|
"useStandardBaseline:",
|
||||||
|
"useStandardKerning:",
|
||||||
|
"useStandardLigatures:"
|
||||||
|
);
|
||||||
|
Super = NSText;
|
||||||
|
};
|
||||||
|
NSView = {
|
||||||
|
Actions = (
|
||||||
|
"fax:",
|
||||||
|
"print:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
nextKeyView
|
||||||
|
);
|
||||||
|
Super = NSResponder;
|
||||||
|
};
|
||||||
|
NSWindow = {
|
||||||
|
Actions = (
|
||||||
|
"deminiaturize:",
|
||||||
|
"fax:",
|
||||||
|
"makeKeyAndOrderFront:",
|
||||||
|
"miniaturize:",
|
||||||
|
"orderBack:",
|
||||||
|
"orderFront:",
|
||||||
|
"orderOut:",
|
||||||
|
"performClose:",
|
||||||
|
"performMiniaturize:",
|
||||||
|
"performZoom:",
|
||||||
|
"print:",
|
||||||
|
"runToolbarCustomizationPalette:",
|
||||||
|
"selectNextKeyView:",
|
||||||
|
"selectPreviousKeyView:",
|
||||||
|
"toggleToolbarShown:",
|
||||||
|
"zoom:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
delegate,
|
||||||
|
initialFirstResponder
|
||||||
|
);
|
||||||
|
Super = NSResponder;
|
||||||
|
};
|
||||||
|
NSWindowController = {
|
||||||
|
Actions = (
|
||||||
|
"showWindow:"
|
||||||
|
);
|
||||||
|
Outlets = (
|
||||||
|
document
|
||||||
|
);
|
||||||
|
Super = NSResponder;
|
||||||
|
};
|
||||||
|
}
|
BIN
Resources/GormViewSizeInspector.gorm/objects.gorm
Normal file
BIN
Resources/GormViewSizeInspector.gorm/objects.gorm
Normal file
Binary file not shown.
Loading…
Reference in a new issue