mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
6d5ffa9f8e
There's still some cleanup to do, but everything seems to be working nicely: `make -j` works, `make distcheck` passes. There is probably plenty of bitrot in the package directories (RPM, debian), though. The vc project files have been removed since those versions are way out of date and quakeforge is pretty much dependent on gcc now anyway. Most of the old Makefile.am files are now Makemodule.am. This should allow for new Makefile.am files that allow local building (to be added on an as-needed bases). The current remaining Makefile.am files are for standalone sub-projects.a The installable bins are currently built in the top-level build directory. This may change if the clutter gets to be too much. While this does make a noticeable difference in build times, the main reason for the switch was to take care of the growing dependency issues: now it's possible to build tools for code generation (eg, using qfcc and ruamoko programs for code-gen).
46 lines
687 B
R
46 lines
687 B
R
#include <string.h>
|
|
|
|
#include "ruamoko/qwaq/ui/group.h"
|
|
#include "ruamoko/qwaq/ui/titlebar.h"
|
|
|
|
@implementation TitleBar
|
|
|
|
+(TitleBar *)withTitle:(string)title
|
|
{
|
|
return [[[self alloc] initWithTitle:title] autorelease];
|
|
}
|
|
|
|
-initWithTitle:(string) title
|
|
{
|
|
if (!(self = [super init])) {
|
|
return nil;
|
|
}
|
|
self.title = title;
|
|
length = strlen (title);
|
|
growMode = gfGrowHiX;
|
|
return self;
|
|
}
|
|
|
|
-setTitle:(string) newTitle
|
|
{
|
|
title = newTitle;
|
|
length = strlen (title);
|
|
[self redraw];
|
|
return self;
|
|
}
|
|
|
|
-setOwner: (Group *) owner
|
|
{
|
|
[super setOwner: owner];
|
|
size = [owner size];
|
|
return self;
|
|
}
|
|
|
|
-draw
|
|
{
|
|
[super draw];
|
|
[self mvaddstr: { (xlen - length) / 2, 0}, title];
|
|
return self;
|
|
}
|
|
|
|
@end
|