mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-06 09:21:50 +00:00
Things were getting rather cluttered with everything being qwaq-* and all in one directory. Now most have lost the qwaq- prefix and have been moved into subdirectories (non-recursive make).
48 lines
719 B
R
48 lines
719 B
R
#include "ui/group.h"
|
|
#include "ui/proxyview.h"
|
|
|
|
@implementation ProxyView
|
|
- (void) forward: (SEL) sel : (@va_list) args
|
|
{
|
|
if (!view) {
|
|
return;
|
|
}
|
|
obj_msg_sendv (view, sel, args);
|
|
}
|
|
|
|
-initWithView:(View *) view
|
|
{
|
|
if (!(self = [super init])) {
|
|
return nil;
|
|
}
|
|
self.view = view;
|
|
return self;
|
|
}
|
|
|
|
-setOwner:(Group *)owner
|
|
{
|
|
self.owner = owner;
|
|
return [view setOwner:owner];
|
|
}
|
|
|
|
-setView:(View *) view
|
|
{
|
|
int state = [self.view state];
|
|
|
|
if (state & sfInFocus) {
|
|
[self.view loseFocus];
|
|
}
|
|
[self.view hide];
|
|
[self.view setContext:nil];
|
|
|
|
self.view = view;
|
|
[view setContext:[owner context]];
|
|
if (state & sfDrawn) {
|
|
[view draw];
|
|
}
|
|
if (state & sfInFocus) {
|
|
[view takeFocus];
|
|
}
|
|
return self;
|
|
}
|
|
@end
|