mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
55 lines
1.2 KiB
Objective-C
55 lines
1.2 KiB
Objective-C
//
|
|
// Kdb3Tree+NewTree.m
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 21.06.13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "Kdb3Tree+NewTree.h"
|
|
|
|
@implementation Kdb3Tree (NewTree)
|
|
|
|
+ (Kdb3Tree *)templateTree {
|
|
Kdb3Tree *tree = [[Kdb3Tree alloc] init];
|
|
|
|
Kdb3Group *rootGroup = [[Kdb3Group alloc] init];
|
|
rootGroup.name = @"%ROOT%";
|
|
tree.root = rootGroup;
|
|
|
|
KdbGroup *parentGroup = [tree createGroup:rootGroup];
|
|
parentGroup.name = @"General";
|
|
parentGroup.image = 48;
|
|
[rootGroup addGroup:parentGroup];
|
|
|
|
KdbGroup *group = [tree createGroup:parentGroup];
|
|
group.name = @"Windows";
|
|
group.image = 38;
|
|
[parentGroup addGroup:group];
|
|
|
|
group = [tree createGroup:parentGroup];
|
|
group.name = @"Network";
|
|
group.image = 3;
|
|
[parentGroup addGroup:group];
|
|
|
|
group = [tree createGroup:parentGroup];
|
|
group.name = @"Internet";
|
|
group.image = 1;
|
|
[parentGroup addGroup:group];
|
|
|
|
group = [tree createGroup:parentGroup];
|
|
group.name = @"eMail";
|
|
group.image = 19;
|
|
[parentGroup addGroup:group];
|
|
|
|
group = [tree createGroup:parentGroup];
|
|
group.name = @"Homebanking";
|
|
group.image = 37;
|
|
[parentGroup addGroup:group];
|
|
|
|
|
|
return tree;
|
|
}
|
|
|
|
@end
|