mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +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
|
id itemHelp_i; // docs
|
||||||
}
|
}
|
||||||
|
|
||||||
-changeInspector:sender;
|
- (void) changeInspector:sender;
|
||||||
-changeInspectorTo:(insp_e) which;
|
- (void) changeInspectorTo:(insp_e) which;
|
||||||
-(insp_e) getCurrentInspector;
|
-(insp_e) getCurrentInspector;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -87,20 +87,15 @@ id inspcontrol_i;
|
||||||
// Sent by the PopUpList in the Inspector
|
// Sent by the PopUpList in the Inspector
|
||||||
// Each cell in the PopUpList must have the correct tag
|
// Each cell in the PopUpList must have the correct tag
|
||||||
//
|
//
|
||||||
-changeInspector:sender
|
- (void) changeInspector:sender
|
||||||
{
|
{
|
||||||
id cell;
|
[self changeInspectorTo:[sender selectedTag]];
|
||||||
|
|
||||||
cell =[sender selectedCell];
|
|
||||||
Sys_Printf ("%p %d\n", cell, (int)[cell tag]);
|
|
||||||
[self changeInspectorTo:[cell tag]];
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Change to specific Inspector
|
// Change to specific Inspector
|
||||||
//
|
//
|
||||||
-changeInspectorTo:(insp_e) which
|
- (void) changeInspectorTo:(insp_e) which
|
||||||
{
|
{
|
||||||
id newView;
|
id newView;
|
||||||
NSRect r;
|
NSRect r;
|
||||||
|
@ -108,7 +103,7 @@ id inspcontrol_i;
|
||||||
NSRect f;
|
NSRect f;
|
||||||
|
|
||||||
if (which == currentInspectorType)
|
if (which == currentInspectorType)
|
||||||
return self;
|
return;
|
||||||
|
|
||||||
currentInspectorType = which;
|
currentInspectorType = which;
|
||||||
newView =[contentList objectAtIndex:which];
|
newView =[contentList objectAtIndex:which];
|
||||||
|
@ -131,8 +126,6 @@ id inspcontrol_i;
|
||||||
NSRectFill (f);
|
NSRectFill (f);
|
||||||
[inspectorSubview_i unlockFocus];
|
[inspectorSubview_i unlockFocus];
|
||||||
[inspectorView_i display];
|
[inspectorView_i display];
|
||||||
|
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-(insp_e) getCurrentInspector
|
-(insp_e) getCurrentInspector
|
||||||
|
|
Loading…
Reference in a new issue