Removed uneeded class and corrected default creation of inspectors and palettes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21586 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-07-31 22:53:05 +00:00
parent 791ff6c4bf
commit e5abeefe0d
3 changed files with 15 additions and 21 deletions

View file

@ -1,3 +1,9 @@
2005-07-31 18:56 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: Correction for bug#13990.
* GormCore/GormInspectorsManager.m: Removed uneeded GormISelectionView
class.
2005-07-31 10:57 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormInspectorsManager.m: [GormConnectionsInspector ok:]

View file

@ -2631,13 +2631,13 @@ static NSImage *fileImage = nil;
}
else if ([type isEqual: @"Inspector"] == YES)
{
NSWindow *aWindow;
NSPanel *aWindow;
NSRect frame = [[NSScreen mainScreen] frame];
unsigned style = NSTitledWindowMask | NSClosableWindowMask;
if ([NSWindow respondsToSelector: @selector(allocSubstitute)])
if ([NSPanel respondsToSelector: @selector(allocSubstitute)])
{
aWindow = [[NSWindow allocSubstitute]
aWindow = [[NSPanel allocSubstitute]
initWithContentRect: NSMakeRect(0,0, IVW, IVH)
styleMask: style
backing: NSBackingStoreRetained
@ -2645,7 +2645,7 @@ static NSImage *fileImage = nil;
}
else
{
aWindow = [[NSWindow alloc]
aWindow = [[NSPanel alloc]
initWithContentRect: NSMakeRect(0,0, IVW, IVH)
styleMask: style
backing: NSBackingStoreRetained
@ -2660,13 +2660,13 @@ static NSImage *fileImage = nil;
}
else if ([type isEqual: @"Palette"] == YES)
{
NSWindow *aWindow;
NSPanel *aWindow;
NSRect frame = [[NSScreen mainScreen] frame];
unsigned style = NSTitledWindowMask | NSClosableWindowMask;
if ([NSWindow respondsToSelector: @selector(allocSubstitute)])
if ([NSPanel respondsToSelector: @selector(allocSubstitute)])
{
aWindow = [[NSWindow allocSubstitute]
aWindow = [[NSPanel allocSubstitute]
initWithContentRect: NSMakeRect(0,0,272,160)
styleMask: style
backing: NSBackingStoreRetained
@ -2674,7 +2674,7 @@ static NSImage *fileImage = nil;
}
else
{
aWindow = [[NSWindow alloc]
aWindow = [[NSPanel alloc]
initWithContentRect: NSMakeRect(0,0,272,160)
styleMask: style
backing: NSBackingStoreRetained

View file

@ -151,18 +151,6 @@
}
@end
@interface GormISelectionView : NSView
{
}
@end
@implementation GormISelectionView : NSView
@end
@implementation GormInspectorsManager
- (void) dealloc
@ -222,7 +210,7 @@
* The selection view sits at the top of the panel and is always the
* same height.
*/
selectionView = [[GormISelectionView alloc] initWithFrame: selectionRect];
selectionView = [[NSView alloc] initWithFrame: selectionRect];
[selectionView setAutoresizingMask:
NSViewMinYMargin | NSViewWidthSizable];
[[panel contentView] addSubview: selectionView];