Added GormDummyInspector.gorm and made additional changes to use it.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21715 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-09-13 02:42:18 +00:00
parent c865883bf3
commit 6dc0477648
6 changed files with 21 additions and 17 deletions

View file

@ -3,7 +3,8 @@
* GNUmakefile: Copy the .gorm file into the Resources.
* GormCore/GormInspectorsManager.h: Use the inspector panel gorm.
* GormCore/GormInspectorsManager.m: Use the inspector panel gorm.
* English/GormInspectorPanel.gorm: corrects bug#14757.
* English.lproj/GormInspectorPanel.gorm: corrects bug#13767.
* English.lproj/GormDummyInspector.gorm: corrects bug#13767.
2005-09-04 10:17 Gregory John Casamento <greg_casamento@yahoo.com>

View file

@ -0,0 +1,11 @@
{
"## Comment" = "Do NOT change this file, Gorm maintains it";
GormDummyInspector = {
Actions = (
);
Outlets = (
button
);
Super = IBInspector;
};
}

Binary file not shown.

Binary file not shown.

View file

@ -128,6 +128,7 @@ Gorm_LOCALIZED_RESOURCE_FILES = \
GormConnectionInspector.gorm \
GormCustomClassInspector.gorm \
GormDocument.gorm \
GormDummyInspector.gorm \
GormFontView.gorm \
Gorm.gorm \
GormImageInspector.gorm \

View file

@ -36,6 +36,9 @@
#define NUM_DEFAULT_INSPECTORS 5
@interface GormDummyInspector : IBInspector
{
NSButton *button;
}
- (NSString *)title;
@end
@ -46,22 +49,10 @@
self = [super init];
if (self != nil)
{
NSView *contents;
NSButton *button;
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, IVH)
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreRetained
defer: NO];
contents = [window contentView];
button = [[NSButton alloc] initWithFrame: [contents bounds]];
[button setAutoresizingMask:
NSViewHeightSizable | NSViewWidthSizable];
[button setStringValue: [self title]];
[button setBordered: NO];
[button setEnabled: NO];
[contents addSubview: button];
RELEASE(button);
if([NSBundle loadNibNamed: @"GormDummyInspector" owner: self])
{
[button setStringValue: [self title]];
}
}
return self;
}