mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-24 13:21:11 +00:00
Get the inspector button mostly working thanks to Deek's help.
This commit is contained in:
parent
36342da9bd
commit
35c7916c28
2 changed files with 6 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue