Get the inspector button mostly working thanks to Deek's help.

This commit is contained in:
Bill Currie 2010-09-26 16:26:12 +09:00
parent 7c3e6b8bdc
commit 73a82342db
2 changed files with 6 additions and 13 deletions

View file

@ -66,8 +66,8 @@ extern id inspcontrol_i;
id itemHelp_i; // docs
}
-changeInspector:sender;
-changeInspectorTo:(insp_e) which;
- (void) changeInspector:sender;
- (void) changeInspectorTo:(insp_e) which;
-(insp_e) getCurrentInspector;
@end

View file

@ -87,20 +87,15 @@ id inspcontrol_i;
// Sent by the PopUpList in the Inspector
// Each cell in the PopUpList must have the correct tag
//
-changeInspector:sender
- (void) changeInspector:sender
{
id cell;
cell =[sender selectedCell];
Sys_Printf ("%p %d\n", cell, (int)[cell tag]);
[self changeInspectorTo:[cell tag]];
return self;
[self changeInspectorTo:[sender selectedTag]];
}
//
// Change to specific Inspector
//
-changeInspectorTo:(insp_e) which
- (void) changeInspectorTo:(insp_e) which
{
id newView;
NSRect r;
@ -108,7 +103,7 @@ id inspcontrol_i;
NSRect f;
if (which == currentInspectorType)
return self;
return;
currentInspectorType = which;
newView =[contentList objectAtIndex:which];
@ -131,8 +126,6 @@ id inspcontrol_i;
NSRectFill (f);
[inspectorSubview_i unlockFocus];
[inspectorView_i display];
return self;
}
-(insp_e) getCurrentInspector