Added vertical boxes.
This commit is contained in:
parent
64ed23e933
commit
fbbe1fdd3b
|
@ -52,6 +52,8 @@
|
||||||
NSUInteger i;
|
NSUInteger i;
|
||||||
NSMutableString *out;
|
NSMutableString *out;
|
||||||
tAutoLayoutParams pp;
|
tAutoLayoutParams pp;
|
||||||
|
NSMutableArray *primaryin, *primaryout;
|
||||||
|
NSMutableArray *secondaryin, *secondaryout;
|
||||||
|
|
||||||
first = (uintmax_t *) malloc([self->children count] * sizeof (uintmax_t));
|
first = (uintmax_t *) malloc([self->children count] * sizeof (uintmax_t));
|
||||||
if (first == NULL)
|
if (first == NULL)
|
||||||
|
@ -74,15 +76,24 @@
|
||||||
}
|
}
|
||||||
p->n = pp.n;
|
p->n = pp.n;
|
||||||
|
|
||||||
// TODO vertical
|
|
||||||
out = [NSMutableString new];
|
out = [NSMutableString new];
|
||||||
[subhorz enumerateObjectsUsingBlock:^(id obj, NSUInteger index, BOOL *stop) {
|
primaryin = subhorz;
|
||||||
|
primaryout = p->horz;
|
||||||
|
secondaryin = subvert;
|
||||||
|
secondaryout = p->vert;
|
||||||
|
if (self->vertical) {
|
||||||
|
primaryin = subvert;
|
||||||
|
primaryout = p->vert;
|
||||||
|
secondaryin = subhorz;
|
||||||
|
secondaryout = p->horz;
|
||||||
|
}
|
||||||
|
[primaryin enumerateObjectsUsingBlock:^(id obj, NSUInteger index, BOOL *stop) {
|
||||||
//TODO if (index != 0)
|
//TODO if (index != 0)
|
||||||
//TODO [out appendString:@"-"];
|
//TODO [out appendString:@"-"];
|
||||||
[out appendString:((NSString *) obj)];
|
[out appendString:((NSString *) obj)];
|
||||||
}];
|
}];
|
||||||
[p->horz addObject:out];
|
[primaryout addObject:out];
|
||||||
[p->vert addObjectsFromArray:subvert];
|
[secondaryout addObjectsFromArray:secondaryin];
|
||||||
|
|
||||||
[subhorz release];
|
[subhorz release];
|
||||||
[subvert release];
|
[subvert release];
|
||||||
|
|
Loading…
Reference in New Issue