mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
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:
parent
c865883bf3
commit
6dc0477648
6 changed files with 21 additions and 17 deletions
|
@ -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>
|
||||
|
||||
|
|
11
English.lproj/GormDummyInspector.gorm/data.classes
Normal file
11
English.lproj/GormDummyInspector.gorm/data.classes
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
GormDummyInspector = {
|
||||
Actions = (
|
||||
);
|
||||
Outlets = (
|
||||
button
|
||||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
}
|
BIN
English.lproj/GormDummyInspector.gorm/data.info
Normal file
BIN
English.lproj/GormDummyInspector.gorm/data.info
Normal file
Binary file not shown.
BIN
English.lproj/GormDummyInspector.gorm/objects.gorm
Normal file
BIN
English.lproj/GormDummyInspector.gorm/objects.gorm
Normal file
Binary file not shown.
|
@ -128,6 +128,7 @@ Gorm_LOCALIZED_RESOURCE_FILES = \
|
|||
GormConnectionInspector.gorm \
|
||||
GormCustomClassInspector.gorm \
|
||||
GormDocument.gorm \
|
||||
GormDummyInspector.gorm \
|
||||
GormFontView.gorm \
|
||||
Gorm.gorm \
|
||||
GormImageInspector.gorm \
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue