* English.lproj/GormDocument.gorm: Corrected possition.

* GormCore/GormInspectorsManager.m: Show the name of the object 
        which is being edited in the inspector title.
        * Palettes/1Windows/GormNSWindowInspector.gorm: Added support for 
        setting the frame save name.
        * Palettes/1Windows/GormWindowAttributesInspector.h: Added ivar
        * Palettes/1Windows/GormWindowAttributesInspector.m: Modified ok: and
        revert:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26474 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-04-25 21:43:54 +00:00
parent 685a9a4409
commit 0a0af253db
6 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,14 @@
2008-04-25 17:41-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* English.lproj/GormDocument.gorm: Corrected possition.
* GormCore/GormInspectorsManager.m: Show the name of the object
which is being edited in the inspector title.
* Palettes/1Windows/GormNSWindowInspector.gorm: Added support for
setting the frame save name.
* Palettes/1Windows/GormWindowAttributesInspector.h: Added ivar
* Palettes/1Windows/GormWindowAttributesInspector.m: Modified ok: and
revert:
2008-04-24 18:57-EDT Gregory John Casamento <greg_casamento@yahoo.com> 2008-04-24 18:57-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* English.lproj/GormDocument.gorm: Correct position of window. * English.lproj/GormDocument.gorm: Correct position of window.

View file

@ -28,6 +28,7 @@
#include <InterfaceBuilder/IBInspectorMode.h> #include <InterfaceBuilder/IBInspectorMode.h>
#include <InterfaceBuilder/IBObjectAdditions.h> #include <InterfaceBuilder/IBObjectAdditions.h>
#include <InterfaceBuilder/IBInspectorManager.h> #include <InterfaceBuilder/IBInspectorManager.h>
#include <InterfaceBuilder/IBDocuments.h>
#include "GormPrivate.h" #include "GormPrivate.h"
#include "GormImage.h" #include "GormImage.h"
#include "GormSound.h" #include "GormSound.h"
@ -273,6 +274,7 @@
NSArray *selection = [[(id<IB>)NSApp selectionOwner] selection]; NSArray *selection = [[(id<IB>)NSApp selectionOwner] selection];
unsigned count = [selection count]; unsigned count = [selection count];
id obj = [selection lastObject]; id obj = [selection lastObject];
id<IBDocuments> document = [(id<IB>)NSApp activeDocument];
NSView *newView = nil; NSView *newView = nil;
NSView *oldView = nil; NSView *oldView = nil;
NSString *newInspector = nil; NSString *newInspector = nil;
@ -341,7 +343,8 @@
else else
{ {
NSString *newTitle = [selectedObject objectNameForInspectorTitle]; NSString *newTitle = [selectedObject objectNameForInspectorTitle];
[panel setTitle: [NSString stringWithFormat:_(@"%@ Inspector"), newTitle]]; NSString *objName = [document nameForObject: selectedObject];
[panel setTitle: [NSString stringWithFormat:_(@"%@ (%@) Inspector"), newTitle,objName]];
} }
if (newInspector == nil) if (newInspector == nil)

View file

@ -65,6 +65,7 @@
/* Miniaturized Window Icon */ /* Miniaturized Window Icon */
NSForm *iconNameForm; NSForm *iconNameForm;
NSButton *clearButton; NSButton *clearButton;
NSForm *autosaveName;
} }
@end @end

View file

@ -62,6 +62,11 @@
{ {
[object setTitle: [[sender cellAtIndex: 0] stringValue] ]; [object setTitle: [[sender cellAtIndex: 0] stringValue] ];
} }
/* title */
else if (sender == autosaveName)
{
[object setFrameAutosaveName: [[sender cellAtIndex: 0] stringValue] ];
}
/* backing Type */ /* backing Type */
else if (sender == backingMatrix) else if (sender == backingMatrix)
{ {
@ -190,6 +195,9 @@
/* Title */ /* Title */
[[titleForm cellAtIndex: 0] setStringValue: [object title] ]; [[titleForm cellAtIndex: 0] setStringValue: [object title] ];
// Autosave name
[[autosaveName cellAtIndex: 0] setStringValue: [object frameAutosaveName] ];
/* Backing */ /* Backing */
[backingMatrix selectCellWithTag: [object backingType] ]; [backingMatrix selectCellWithTag: [object backingType] ];