Commit 65b49324 authored by Eric Heintzmann's avatar Eric Heintzmann

Import Upstream version 1.0.4

parent c02592e9
1 ANNOUNCE
**********
This is version 1.0.1 of Gorm.
This is version 1.0.4 of Gorm.
1.1 What is Gorm?
=================
......@@ -12,14 +12,20 @@ GNUstep Object Relationship Modeler).
Gorm is a clone of the NeXTstep `Interface Builder' application for
GNUstep.
1.2 Noteworthy changes in version `1.0.0'
1.2 Noteworthy changes in version `1.0.4'
=========================================
This is a bugfix release.
* Fixed some bugs with table column selection.
* Corrected some bug#15236 with window style mask settings.
* Corrected a minor problem in the custom class inspector.
* Corrected bug#15236, which caused window fields in the inspector
not to update when the field was being edited and a new window is
selected.
* Corrected bug #15178.
* Corrected problem with standalone views
1.3 How can I get support for this software?
============================================
......
2006-01-25 05:21 Gregory John Casamento <greg_casamento@yahoo.com>
* Version 1.0.4
2006-01-21 00:19 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormViewEditor.m: [GormViewEditor activate] do not send
notifications about frame size changes, if the object is a standalone
view.
* GormCore/GormViewSizeInspector.m: [GormViewSizeInspector setObject:]
Added code to enable/disable cells if view is standalone.
2006-01-16 23:19 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormViewSizeInspector.m: Correction for a similar problem
in the view size inspector. Added to call to abort editing.
2006-01-16 16:25 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/1Windows/GormWindowSizeInspector.m: Correction for
bug#13994. abortEditing call to all forms added to revert:.
2006-01-16 12:20 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/1Windows/GormWindowAttributesInspector.m: Correction
for bug#15236. In ok: method the newStyleMask variable wasn't
properly initialized, this was causing the flags to be set improperly.
2005-12-15 19:08 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: Correction for crash on close after
opening objects.gorm directly. Corrects bug#15178.
2005-12-14 22:08 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.h: Declaration for new readableTypes method.
* GormCore/GormDocument.m: Added readableTypes method to return the
types accepted by GormDocument.
* Gorm.m: Use readableTypes in application:openFile: corrects
bug#15178
2005-11-19 09:57 Gregory John Casamento <greg_casamento@yahoo.com>
* Version 1.0.1
......
......@@ -4,13 +4,15 @@
@include version.texi
@end ifset
@section Noteworthy changes in version @samp{1.0.0}
@section Noteworthy changes in version @samp{1.0.4}
This is a bugfix release.
@itemize @bullet
@item Fixed some bugs with table column selection.
@item Corrected a minor problem in the custom class inspector.
@item Corrected some bug#15236 with window style mask settings.
@item Corrected bug#15236, which caused window fields in the inspector not to update when the field was being edited and a new window is selected.
@item Corrected bug #15178.
@item Corrected problem with standalone views
@end itemize
@ifclear ANNOUNCE-ONLY
......@@ -19,6 +21,15 @@ This is a bugfix release.
@section Noteworthy changes in version @samp{1.0.0}
This is a bugfix release.
@itemize @bullet
@item Fixed some bugs with table column selection.
@item Corrected a minor problem in the custom class inspector.
@end itemize
@section Noteworthy changes in version @samp{1.0.0}
PLEASE NOTE: This version of Gorm requires base 1.11.1 and
gui 0.10.1 to be installed (gnustep-startup-0.13.0).
......
......@@ -1077,22 +1077,24 @@
return nil;
}
- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName
{
GormDocument *doc = AUTORELEASE([[GormDocument alloc] init]);
NSString *ext = [fileName pathExtension];
GormDocument *doc = nil;
[documents addObject: doc];
if ([doc loadDocument: fileName] == nil)
{
[documents removeObjectIdenticalTo: doc];
doc = nil;
}
else
if([[GormDocument readableTypes] containsObject: ext])
{
[[doc window] orderFrontRegardless];
[[doc window] makeKeyWindow];
doc = AUTORELEASE([[GormDocument alloc] init]);
if ([doc loadDocument: fileName] == nil)
{
doc = nil;
}
else
{
[documents addObject: doc];
[[doc window] orderFrontRegardless];
[[doc window] makeKeyWindow];
}
}
return (doc != nil);
......
......@@ -77,6 +77,11 @@
NSMutableArray *resourceManagers;
}
/**
* Return the types readable by this document class
*/
+ (NSArray *) readableTypes;
/* Archiving objects */
/**
......
......@@ -200,6 +200,14 @@ static NSImage *fileImage = nil;
}
}
/**
* Return the types readable by this document class.
*/
+ (NSArray *) readableTypes
{
return [NSArray arrayWithObjects: @"gorm", @"gmodel", nil];
}
/**
* Initialize the new GormDocument object.
*/
......@@ -1681,15 +1689,7 @@ static NSImage *fileImage = nil;
[editors addObjectsFromArray: openEditors];
[editors makeObjectsPerformSelector: @selector(close)];
[openEditors removeAllObjects];
// [editors makeObjectsPerformSelector: @selector(release)];
[editors removeAllObjects];
// Close the editors in the document window...
// don't worry about the "classesView" since it's not really an
// editor.
[objectsView close];
[imagesView close];
[soundsView close];
}
/**
......@@ -1710,19 +1710,8 @@ static NSImage *fileImage = nil;
enumerator = [nameTable objectEnumerator];
while ((obj = [enumerator nextObject]) != nil)
{
/*
if ([obj isKindOfClass: [NSMenu class]] == YES)
{
if ([[obj window] isVisible] == YES)
{
[obj close];
}
}
else
*/
if ([obj isKindOfClass: [NSWindow class]] == YES)
{
// [obj setReleasedWhenClosed: YES];
[obj close];
RELEASE(obj);
}
......
......@@ -83,7 +83,7 @@ NSString *formatVersion(int version)
+ (int) currentVersion
{
return appVersion(1,0,1);
return appVersion(1,0,4);
}
- (void) awakeFromNib
......
......@@ -179,6 +179,7 @@ static BOOL currently_displaying = NO;
if(viewWindow == nil)
{
[self setAutoresizesSubviews: NO];
[_editedObject setPostsFrameChangedNotifications: YES];
}
else
{
......@@ -187,13 +188,13 @@ static BOOL currently_displaying = NO;
[self addSubview: _editedObject];
[_editedObject setPostsFrameChangedNotifications: YES];
[[NSNotificationCenter defaultCenter]
addObserver: self
selector: @selector(editedObjectFrameDidChange:)
name: NSViewFrameDidChangeNotification
object: _editedObject];
[self setPostsFrameChangedNotifications: YES];
[[NSNotificationCenter defaultCenter]
addObserver: self
......@@ -321,14 +322,12 @@ static BOOL currently_displaying = NO;
[self setBounds: [_editedObject frame]];
}
- (void) frameDidChange: (id) sender
{
[self setBounds: [self frame]];
[_editedObject setFrame: [self frame]];
}
- (GormPlacementInfo *) initializeResizingInFrame: (NSView *)view
withKnob: (IBKnobPosition) knob
{
......
......@@ -25,6 +25,7 @@
#include "GormPrivate.h"
#include "GormViewKnobs.h"
#include "GormViewSizeInspector.h"
#include "GormViewWindow.h"
@implementation GormViewSizeInspector
......@@ -155,6 +156,18 @@ NSImage *mVLine = nil;
if (anObject != object)
return;
if([[anObject window] isKindOfClass: [GormViewWindow class]])
{
[sizeForm setEnabled: NO];
}
else
{
[sizeForm setEnabled: YES];
}
// stop editing so that the new values can be populated.
[sizeForm abortEditing];
frame = [anObject frame];
[[sizeForm cellAtIndex: 0] setFloatValue: NSMinX(frame)];
[[sizeForm cellAtIndex: 1] setFloatValue: NSMinY(frame)];
......@@ -238,6 +251,32 @@ NSImage *mVLine = nil;
[[sizeForm cellAtIndex: 2] setFloatValue: NSWidth(frame)];
[[sizeForm cellAtIndex: 3] setFloatValue: NSHeight(frame)];
[anObject setPostsFrameChangedNotifications: YES];
if([[anObject window] isKindOfClass: [GormViewWindow class]] ||
[anObject window] == nil)
{
[[sizeForm cellAtIndex: 0] setEnabled: NO];
[[sizeForm cellAtIndex: 1] setEnabled: NO];
[[sizeForm cellAtIndex: 2] setEnabled: NO];
[[sizeForm cellAtIndex: 3] setEnabled: NO];
[[sizeForm cellAtIndex: 0] setEditable: NO];
[[sizeForm cellAtIndex: 1] setEditable: NO];
[[sizeForm cellAtIndex: 2] setEditable: NO];
[[sizeForm cellAtIndex: 3] setEditable: NO];
}
else
{
[[sizeForm cellAtIndex: 0] setEnabled: YES];
[[sizeForm cellAtIndex: 1] setEnabled: YES];
[[sizeForm cellAtIndex: 2] setEnabled: YES];
[[sizeForm cellAtIndex: 3] setEnabled: YES];
[[sizeForm cellAtIndex: 0] setEditable: YES];
[[sizeForm cellAtIndex: 1] setEditable: YES];
[[sizeForm cellAtIndex: 2] setEditable: YES];
[[sizeForm cellAtIndex: 3] setEditable: YES];
}
}
}
@end
......@@ -14,9 +14,9 @@
ApplicationDescription = "[GNUstep | Graphical] Object Relationship Modeller";
ApplicationIcon = "Gorm.tiff";
ApplicationName = "Gorm";
ApplicationRelease = "Gorm 1.0.1 (Release)";
ApplicationRelease = "Gorm 1.0.4 (Release)";
Authors = ("Gregory John Casamento <greg_casamento@yahoo.com>","Richard Frith-Macdonald <rfm@gnu.org>","Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>");
Copyright = "Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 FSF";
CopyrightDescription = "Released under the GNU General Public License 2.0";
NSBuildVersion = "1.0.1 Nov 19 2005";
NSBuildVersion = "1.0.4 Jan 25 2006";
}
0.1 Noteworthy changes in version `1.0.0'
0.1 Noteworthy changes in version `1.0.4'
=========================================
This is a bugfix release.
* Corrected some bug#15236 with window style mask settings.
* Corrected bug#15236, which caused window fields in the inspector
not to update when the field was being edited and a new window is
selected.
* Corrected bug #15178.
* Corrected problem with standalone views
0.2 Noteworthy changes in version `1.0.0'
=========================================
This is a bugfix release.
......@@ -7,7 +22,7 @@ This is a bugfix release.
* Corrected a minor problem in the custom class inspector.
0.2 Noteworthy changes in version `1.0.0'
0.3 Noteworthy changes in version `1.0.0'
=========================================
PLEASE NOTE: This version of Gorm requires base 1.11.1 and
......@@ -26,7 +41,7 @@ gui 0.10.1 to be installed (gnustep-startup-0.13.0).
* Added documentation to GormCore
0.3 Noteworthy changes in version `0.11.0'
0.4 Noteworthy changes in version `0.11.0'
==========================================
* Improved implementation of canSubstituteForClass: the default
......@@ -63,7 +78,7 @@ gui 0.10.1 to be installed (gnustep-startup-0.13.0).
* Lots of bugfixes and usability changes are also included in this
release.
0.4 Noteworthy changes in version `0.9.10'
0.5 Noteworthy changes in version `0.9.10'
==========================================
* Gorm now has a full implementation of canSubstituteForClass: which
......@@ -94,7 +109,7 @@ gui 0.10.1 to be installed (gnustep-startup-0.13.0).
* A myriad of bug fixes.
0.5 Noteworthy changes in version `0.9.2'
0.6 Noteworthy changes in version `0.9.2'
=========================================
NOTE: This is mainly a bugfix release.
......@@ -115,7 +130,7 @@ NOTE: This is mainly a bugfix release.
* Various improvements in documentation
0.6 Noteworthy changes in version `0.9.0'
0.7 Noteworthy changes in version `0.9.0'
=========================================
* Images/Sounds can now be dragged into a matrix cell.
......@@ -154,7 +169,7 @@ NOTE: This is mainly a bugfix release.
* Fixed a number of bugs.
0.7 Noteworthy changes in version `0.8.0'
0.8 Noteworthy changes in version `0.8.0'
=========================================
PLEASE NOTE: It is important for this release that you upgrade to Gorm
......@@ -202,7 +217,7 @@ that it is known beyond a reasonable doubt.
amount of time the user needs to spend fiddling with the font
panel.
0.8 Noteworthy changes in version `0.7.7'
0.9 Noteworthy changes in version `0.7.7'
=========================================
* Important bugfixes in editor classes.
......@@ -226,8 +241,8 @@ that it is known beyond a reasonable doubt.
* Gorm will now show an alert panel when a model fails to load or
test properly.
0.9 Noteworthy changes in version `0.7.6'
=========================================
0.10 Noteworthy changes in version `0.7.6'
==========================================
This release is mainly a bugfix release for 0.7.5.
......@@ -239,7 +254,7 @@ This release is mainly a bugfix release for 0.7.5.
* Important bugfixes for class inspector.
0.10 Noteworthy changes in version `0.7.5'
0.11 Noteworthy changes in version `0.7.5'
==========================================
* The 'reparent' feature in the class inspector. This allows the
......@@ -260,7 +275,7 @@ This release is mainly a bugfix release for 0.7.5.
* A way to restore a complete NSMenu if it's deleted (a new palette
entry for NSMenu, not just an item)
0.11 Noteworthy changes in version `0.6.0'
0.12 Noteworthy changes in version `0.6.0'
==========================================
* Several major bugs corrected.
......@@ -271,7 +286,7 @@ This release is mainly a bugfix release for 0.7.5.
* More descriptive title displayed when a class is being edited.
0.12 Noteworthy changes in version `0.5.0'
0.13 Noteworthy changes in version `0.5.0'
==========================================
* Enabled defer in NSWindow inspector.
......@@ -290,7 +305,7 @@ This release is mainly a bugfix release for 0.7.5.
* Bug fixes, eliminated memory leak, code cleanup, etc.
0.13 Noteworthy changes in version `0.4.0'
0.14 Noteworthy changes in version `0.4.0'
==========================================
* New Menu and Menu Item inspectors.
......@@ -312,7 +327,7 @@ This release is mainly a bugfix release for 0.7.5.
* Windows and Services menus now function correctly.
0.14 Noteworthy changes in version `0.3.1'
0.15 Noteworthy changes in version `0.3.1'
==========================================
* New custom class system.
......@@ -323,7 +338,7 @@ This release is mainly a bugfix release for 0.7.5.
* Various bugfixes
0.15 Noteworthy changes in version `0.3.0'
0.16 Noteworthy changes in version `0.3.0'
==========================================
* Preferences added.
......@@ -348,7 +363,7 @@ This release is mainly a bugfix release for 0.7.5.
* various bug fixes.
0.16 Noteworthy changes in version `0.2.5'.
0.17 Noteworthy changes in version `0.2.5'.
===========================================
Many fixes and improvements to make the app work better.
......@@ -359,7 +374,7 @@ Many fixes and improvements to make the app work better.
* Re-add multiple selection via mouse drag.
0.17 Noteworthy changes in version `0.2.0' snapshot.
0.18 Noteworthy changes in version `0.2.0' snapshot.
====================================================
Gobs of improvements, mostly due to the hard work of Gregory John
......@@ -384,7 +399,7 @@ Casamento and Pierre-Yves Rivaille. Thanks guys!
* gorm files were changed to directory wrappers for more flexibility.
0.18 Noteworthy changes in version `0.1.0'
0.19 Noteworthy changes in version `0.1.0'
==========================================
* load/parses class files for entry into class list.
......@@ -403,7 +418,7 @@ Casamento and Pierre-Yves Rivaille. Thanks guys!
* Ability to change the font of some objects.
0.19 Noteworthy changes in version `0.0.3'
0.20 Noteworthy changes in version `0.0.3'
==========================================
* Create stub .m and .h files from new classes
......@@ -419,7 +434,7 @@ Casamento and Pierre-Yves Rivaille. Thanks guys!
* Support for custom objects.
0.20 Noteworthy changes in version `0.0.2'
0.21 Noteworthy changes in version `0.0.2'
==========================================
* Add popup and pulldown menu controls
......@@ -432,7 +447,7 @@ Casamento and Pierre-Yves Rivaille. Thanks guys!
* Much more fleshed out - too numerous to mention.
0.21 Noteworthy changes in version `0.0.1'
0.22 Noteworthy changes in version `0.0.1'
==========================================
* 8th December 1999
......
......@@ -73,7 +73,7 @@
( sender == closeButton ) ||
( sender == resizeBarButton ) )
{
unsigned int newStyleMask;
unsigned int newStyleMask = [object _styleMask];
if ( [miniaturizeButton state] == NSOnState )
newStyleMask |= NSMiniaturizableWindowMask;
......
......@@ -101,6 +101,8 @@
[bottom setTag: GSWindowMinYMargin];
[left setTag: GSWindowMinXMargin];
[right setTag: GSWindowMaxXMargin];
// reset information in forms...
}
......@@ -155,7 +157,7 @@
}
/* Sync from object ( NSWindow ) changes to the inspector */
- (void) revert:(id)sender
- (void) revert: (id)sender
{
NSRect frame;
NSSize size;
......@@ -163,6 +165,12 @@
if ( object == nil )
return;
// Abort editing of the fields, so that the new values can be
// populated.
[sizeForm abortEditing];
[minForm abortEditing];
[maxForm abortEditing];
mask = [object autoPositionMask];
......@@ -205,7 +213,7 @@
- (void) windowChangeNotification: (NSNotification*)aNotification
{
[self ok: [aNotification object]];
[self revert: nil];
}
......
......@@ -11,5 +11,5 @@ GNUSTEP_CORE_VERSION=0.10.0
# The version number of this release.
MAJOR_VERSION=1
MINOR_VERSION=0
SUBMINOR_VERSION=1
SUBMINOR_VERSION=4
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${SUBMINOR_VERSION}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment