mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Get the inspectors showing.
Still can't change them via the pop-up menu, though.
This commit is contained in:
parent
3193374257
commit
0de8e3806d
3 changed files with 5 additions and 4 deletions
|
@ -64,7 +64,6 @@ extern id inspcontrol_i;
|
|||
id itemHelp_i; // docs
|
||||
}
|
||||
|
||||
-awakeFromNib;
|
||||
-changeInspector:sender;
|
||||
-changeInspectorTo:(insp_e) which;
|
||||
-(insp_e) getCurrentInspector;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "QF/sys.h"
|
||||
|
||||
#include "InspectorControl.h"
|
||||
|
||||
|
@ -15,7 +16,8 @@ id inspcontrol_i;
|
|||
|
||||
@implementation InspectorControl
|
||||
|
||||
-awakeFromNib {
|
||||
-(void)awakeFromNib
|
||||
{
|
||||
inspcontrol_i = self;
|
||||
|
||||
currentInspectorType = -1;
|
||||
|
@ -66,12 +68,11 @@ id inspcontrol_i;
|
|||
[inspectorView_i setAutoresizesSubviews:YES];
|
||||
|
||||
inspectorSubview_i =[contentList objectAtIndex:i_project];
|
||||
|
||||
[inspectorView_i addSubview:inspectorSubview_i];
|
||||
|
||||
currentInspectorType = -1;
|
||||
[self changeInspectorTo:i_project];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
|
@ -84,6 +85,7 @@ id inspcontrol_i;
|
|||
id cell;
|
||||
|
||||
cell =[sender selectedCell];
|
||||
Sys_Printf ("%p %d", cell, (int)[cell tag]);
|
||||
[self changeInspectorTo:[cell tag]];
|
||||
return self;
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue