mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Correction to window inspector spacing. Improvment to how services/windows menus are handled.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19425 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cc275bf43c
commit
3a6b0cfd40
4 changed files with 41 additions and 1 deletions
|
@ -1,5 +1,14 @@
|
|||
2004-05-29 08:56 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormDocument.m: [GormDocument attachObject:] added code
|
||||
to automatically mark a menu being attached as the
|
||||
windows/services menu if it has the appropriate title.
|
||||
Also changed [GormDocument detachObject:] added code to
|
||||
remove the menu as the services/windows menu if it's detached
|
||||
from the document.
|
||||
|
||||
2004-05-29 08:56 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/2Controls/main.m: Had some DOS formatted lines. Simply
|
||||
converted to UNIX format.
|
||||
* Palettes/3Containers/main.m: Changed the default border type
|
||||
|
|
|
@ -509,6 +509,17 @@ static NSImage *classesImage = nil;
|
|||
[self setName: @"NSMenu" forObject: anObject];
|
||||
[objectsView addObject: anObject];
|
||||
}
|
||||
else
|
||||
{
|
||||
if([[anObject title] isEqual: @"Services"])
|
||||
{
|
||||
[self setServicesMenu: anObject];
|
||||
}
|
||||
else if([[anObject title] isEqual: @"Windows"])
|
||||
{
|
||||
[self setWindowsMenu: anObject];
|
||||
}
|
||||
}
|
||||
|
||||
[[self openEditorForObject: anObject] activate];
|
||||
}
|
||||
|
@ -1046,6 +1057,20 @@ static NSImage *classesImage = nil;
|
|||
{
|
||||
[objectsView removeObject: anObject];
|
||||
}
|
||||
|
||||
// eliminate it from being the windows/services menu, if it's being detached.
|
||||
if ([anObject isKindOfClass: [NSMenu class]])
|
||||
{
|
||||
if([self windowsMenu] == anObject)
|
||||
{
|
||||
[self setWindowsMenu: nil];
|
||||
}
|
||||
else if([self servicesMenu] == anObject)
|
||||
{
|
||||
[self setServicesMenu: nil];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure this object isn't in the list of objects to be made visible
|
||||
* on nib loading.
|
||||
|
|
|
@ -188,6 +188,7 @@
|
|||
frame.size.height -= 5;
|
||||
frame.origin.x += 1;
|
||||
frame.size.width += 3;
|
||||
|
||||
[tf setFrame: frame];
|
||||
[tf setEditable: YES];
|
||||
[tf setBezeled: NO];
|
||||
|
@ -452,8 +453,13 @@
|
|||
|
||||
[self closeSubeditors];
|
||||
[self deactivate];
|
||||
|
||||
// if it's visible, close it.
|
||||
if([edited isVisible])
|
||||
[edited close];
|
||||
{
|
||||
[edited close];
|
||||
}
|
||||
|
||||
[document editor: self didCloseForObject: edited];
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue