Inspector now shows outlet/action counts.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20439 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-11 05:53:51 +00:00
parent e5565e59aa
commit 7d1020708d
4 changed files with 21 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2004-12-11 00:51 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassInspector.m: Added code in setObject: to show the
total outlets and actions in the class.
* Resources/GormClassInspector.gorm: Swapped the outlet/action
tabs.
2004-12-11 00:21 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: in handleNotification: changed the condition

View file

@ -523,9 +523,23 @@ objectValueForTableColumn: (NSTableColumn *)tc
- (void) setObject: (id)anObject
{
int outletsCount = 0;
int actionsCount = 0;
NSTabViewItem *item = nil;
[super setObject: anObject];
ASSIGN(classManager, [(Gorm *)NSApp classManager]);
ASSIGN(currentClass, [object className]);
outletsCount = [[classManager allOutletsForClassNamed: currentClass] count];
actionsCount = [[classManager allActionsForClassNamed: currentClass] count];
item = [tabView tabViewItemAtIndex: 1]; // actions;
[item setLabel: [NSString stringWithFormat: @"Actions (%d)",actionsCount]];
item = [tabView tabViewItemAtIndex: 0]; // outlets;
[item setLabel: [NSString stringWithFormat: @"Outlets (%d)",outletsCount]];
[tabView setNeedsDisplay: YES];
[self _refreshView];
}

View file

@ -3,13 +3,9 @@
FirstResponder = {
Actions = (
"changeFont:",
"deleteWordBackward:",
"moveDown:",
"moveWordForward:",
"orderFrontFontPanel:",
"raiseBaseline:",
"selectParagraph:",
"takeObjectValueFrom:",
"unscript:",
"removeOutlet:",
"addOutlet:",