General cleanup.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@15742 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-01-28 03:20:22 +00:00
parent 8b5d9b34c6
commit 719c82309b
5 changed files with 23 additions and 14 deletions

View file

@ -1,3 +1,11 @@
2003-01-23 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Some general cleanup. Removed the startuptime
message. Indented some code to conform to guidelines.
* GModelDecoder.m: Added GormNSPanel to the set of classes
translated so that the window inspectors can be used to edit.
* Documentation/readme.texi: Updated to show current status.
2003-01-22 Gregory John Casamento <greg_casamento@yahoo.com> 2003-01-22 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Removed reference to NSImageDoesCaching. * Gorm.m: Removed reference to NSImageDoesCaching.

View file

@ -28,11 +28,8 @@ at @url{http://www.gnustep.it/pierre-yves/index.html}.
@section Status @section Status
At this point, Gorm is usable only for very simple stuff as it only supports Gorm is now completely usable. There are some minor bugs, but most of the
the most commonly used gui elements. However, the binary format in which major functionality is now implemented. Please report bugs to bug-gnustep@@gnu.org
documents are archived is stable, so documents created using Gorm now should
remain useful.
Interface test mode qorks quite nicely - you really can see things working.
Known problems (things to do) - Known problems (things to do) -

View file

@ -280,6 +280,7 @@ static BOOL gormFileOwnerDecoded;
/* Gorm classes */ /* Gorm classes */
[u decodeClassName: @"NSMenu" asClassName: @"GormNSMenu"]; [u decodeClassName: @"NSMenu" asClassName: @"GormNSMenu"];
[u decodeClassName: @"NSWindow" asClassName: @"GormNSWindow"]; [u decodeClassName: @"NSWindow" asClassName: @"GormNSWindow"];
[u decodeClassName: @"NSPanel" asClassName: @"GormNSPanel"];
[u decodeClassName: @"NSBrowser" asClassName: @"GormNSBrowser"]; [u decodeClassName: @"NSBrowser" asClassName: @"GormNSBrowser"];
[u decodeClassName: @"NSTableView" asClassName: @"GormNSTableView"]; [u decodeClassName: @"NSTableView" asClassName: @"GormNSTableView"];
[u decodeClassName: @"NSOutlineView" asClassName: @"GormNSOutlineView"]; [u decodeClassName: @"NSOutlineView" asClassName: @"GormNSOutlineView"];

16
Gorm.m
View file

@ -231,7 +231,7 @@ static NSButtonType _buttonTypeForObject( id button )
[self setFrame: [object frame] display: NO]; [self setFrame: [object frame] display: NO];
[self _setStyleMask: [object styleMask]]; [self _setStyleMask: [object styleMask]];
[self setClassName: name]; [self setClassName: name];
[object setContentView: nil]; [(NSWindow *)object setContentView: nil];
[self update]; [self update];
[object update]; [object update];
@ -985,7 +985,7 @@ static NSButtonType _buttonTypeForObject( id button )
[self setDelegate: self]; [self setDelegate: self];
[super finishLaunching]; [super finishLaunching];
NSLog(@"StartupTime %f", [startDate timeIntervalSinceNow]); NSDebugLog(@"StartupTime %f", [startDate timeIntervalSinceNow]);
} }
- (void) handleNotification: (NSNotification*)notification - (void) handleNotification: (NSNotification*)notification
@ -1020,18 +1020,20 @@ static NSButtonType _buttonTypeForObject( id button )
NSMutableDictionary *d; NSMutableDictionary *d;
d = [NSMutableDictionary dictionaryWithCapacity: 8]; d = [NSMutableDictionary dictionaryWithCapacity: 8];
[d setObject: @"Gorm" forKey: @"ApplicationName"]; [d setObject: @"Gorm"
forKey: @"ApplicationName"];
[d setObject: @"GNUstep Graphical Object Relationship Modeller" [d setObject: @"GNUstep Graphical Object Relationship Modeller"
forKey: @"ApplicationDescription"]; forKey: @"ApplicationDescription"];
[d setObject: @"Gorm 0.2.5" forKey: @"ApplicationRelease"]; [d setObject: @"Gorm 0.2.5"
[d setObject: @"0.2.5 Dec 2002" forKey: @"FullVersionID"]; forKey: @"ApplicationRelease"];
[d setObject: @"0.2.5 Dec 2002"
forKey: @"FullVersionID"];
[d setObject: [NSArray arrayWithObjects: @"Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>", [d setObject: [NSArray arrayWithObjects: @"Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>",
@"Gregory John Casamento <greg_casamento@yahoo.com>", @"Gregory John Casamento <greg_casamento@yahoo.com>",
@"Richard Frith-Macdonald <rfm@gnu.org>", @"Richard Frith-Macdonald <rfm@gnu.org>",
nil] nil]
forKey: @"Authors"]; forKey: @"Authors"];
// [d setObject: @"See http://www.gnustep.org" forKey: @"URL"]; [d setObject: @"Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc."
[d setObject: @"Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc."
forKey: @"Copyright"]; forKey: @"Copyright"];
[d setObject: @"Released under the GNU General Public License 2.0" [d setObject: @"Released under the GNU General Public License 2.0"
forKey: @"CopyrightDescription"]; forKey: @"CopyrightDescription"];

View file

@ -1152,6 +1152,7 @@ static NSImage *classesImage = nil;
/* /*
* Make sure that this editor is not the selection owner. * Make sure that this editor is not the selection owner.
*/ */
// if ([(id)NSApp selectionOwner] == anEditor)
if ([(id<IBSelectionOwners>)NSApp selectionOwner] == anEditor) if ([(id<IBSelectionOwners>)NSApp selectionOwner] == anEditor)
{ {
[self resignSelectionForEditor: anEditor]; [self resignSelectionForEditor: anEditor];
@ -1214,7 +1215,7 @@ static NSImage *classesImage = nil;
NSDebugLog(@"WARNING anEditor = editor"); NSDebugLog(@"WARNING anEditor = editor");
} }
[editor activate]; [editor activate];
RELEASE(editor); RELEASE((id)editor);
return editor; return editor;
} }
else if ([links count] == 0) else if ([links count] == 0)
@ -1241,7 +1242,7 @@ static NSImage *classesImage = nil;
if([template isKindOfClass: [GormNSWindowTemplate class]]) if([template isKindOfClass: [GormNSWindowTemplate class]])
{ {
BOOL isVisible = [self objectIsVisibleAtLaunch: template]; BOOL isVisible = [self objectIsVisibleAtLaunch: template];
[obj setContentView: [template contentView]]; [(NSWindow *)obj setContentView: [template contentView]];
[self setObject: template isVisibleAtLaunch: NO]; [self setObject: template isVisibleAtLaunch: NO];
[self setObject: obj isVisibleAtLaunch: isVisible]; [self setObject: obj isVisibleAtLaunch: isVisible];
} }