project_files/HedgewarsMobile/Classes/TeamSettingsViewController.m
author unc0rr
Fri, 03 Feb 2012 14:21:07 +0400
changeset 6618 2d3232069c4b
parent 6103 55ecfbf834e3
child 6700 e04da46ee43c
permissions -rw-r--r--
Propagate types on identifiers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3829
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     1
/*
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     2
 * Hedgewars-iOS, a Hedgewars port for iOS devices
4976
088d40d8aba2 Happy 2011 :)
koda
parents: 4287
diff changeset
     3
 * Copyright (c) 2009-2011 Vittorio Giovara <vittorio.giovara@gmail.com>
3829
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     4
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     8
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    12
 * GNU General Public License for more details.
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    13
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    14
 * You should have received a copy of the GNU General Public License
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    15
 * along with this program; if not, write to the Free Software
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    17
 *
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    18
 * File created on 02/04/2010.
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    19
 */
81db3c85784b headers ftw, also right project file
koda
parents: 3697
diff changeset
    20
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    21
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    22
#import "TeamSettingsViewController.h"
4281
e033cf015b2c redo once again file updating, moving stuff around
koda
parents: 3916
diff changeset
    23
#import "CreationChamber.h"
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    24
#import "SingleTeamViewController.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    25
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    26
@implementation TeamSettingsViewController
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
@synthesize listOfTeams;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    29
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    31
    return rotationManager(interfaceOrientation);
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    32
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    33
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    34
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    35
#pragma mark View lifecycle
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    36
// add an edit button
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    37
-(void) viewDidLoad {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    38
    [super viewDidLoad];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    39
3916
e7d665a4ef42 implemented endless turns support and added Timeless scheme (also fixed a crasher)
koda
parents: 3829
diff changeset
    40
    UIBarButtonItem *editButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Edit",@"")
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    41
                                                                   style:UIBarButtonItemStyleBordered
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    42
                                                                  target:self
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    43
                                                                  action:@selector(toggleEdit:)];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    44
    self.navigationItem.rightBarButtonItem = editButton;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    45
    [editButton release];
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 5208
diff changeset
    46
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 5208
diff changeset
    47
    self.navigationItem.title = @"List of teams";
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    48
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    49
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    50
// load the list of teams in the teams directory
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    51
-(void) viewWillAppear:(BOOL)animated {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    52
    [super viewWillAppear:animated];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    53
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    54
    NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:TEAMS_DIRECTORY() error:NULL];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    55
    NSMutableArray *array = [[NSMutableArray alloc] initWithArray:contentsOfDir copyItems:YES];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    56
    self.listOfTeams = array;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    57
    [array release];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    58
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    59
    [self.tableView reloadData];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    60
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    61
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    62
// modifies the navigation bar to add the "Add" and "Done" buttons
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    63
-(void) toggleEdit:(id) sender {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    64
    BOOL isEditing = self.tableView.editing;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    65
    [self.tableView setEditing:!isEditing animated:YES];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    66
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    67
    if (isEditing) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    68
        [self.navigationItem.rightBarButtonItem setTitle:NSLocalizedString(@"Edit",@"from the team panel")];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    69
        [self.navigationItem.rightBarButtonItem setStyle: UIBarButtonItemStyleBordered];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    70
        self.navigationItem.leftBarButtonItem = self.navigationItem.backBarButtonItem;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    71
    } else {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    72
        [self.navigationItem.rightBarButtonItem setTitle:NSLocalizedString(@"Done",@"from the team panel")];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    73
        [self.navigationItem.rightBarButtonItem setStyle:UIBarButtonItemStyleDone];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    74
        UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Add",@"from the team panel")
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    75
                                                                      style:UIBarButtonItemStyleBordered
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    76
                                                                     target:self
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    77
                                                                     action:@selector(addTeam:)];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    78
        self.navigationItem.leftBarButtonItem = addButton;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    79
        [addButton release];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    80
    }
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    81
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    82
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    83
// add a team file with default values and updates the table
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    84
-(void) addTeam:(id) sender {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    85
    NSString *fileName = [[NSString alloc] initWithFormat:@"Default Team %u.plist", [self.listOfTeams count]];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    86
6103
55ecfbf834e3 convert creation chamber functions to class methods
koda
parents: 6074
diff changeset
    87
    [CreationChamber createTeamNamed:[fileName stringByDeletingPathExtension]];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    88
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    89
    [self.listOfTeams addObject:fileName];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    90
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    91
    // order the array alphabetically, so teams will keep their position
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    92
    [self.listOfTeams sortUsingSelector:@selector(compare:)];
4287
7dbdc862097c some interface tricks for iphone as well
koda
parents: 4281
diff changeset
    93
    [self.tableView reloadData];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
    94
4287
7dbdc862097c some interface tricks for iphone as well
koda
parents: 4281
diff changeset
    95
    NSInteger index = [self.listOfTeams indexOfObject:fileName];
7dbdc862097c some interface tricks for iphone as well
koda
parents: 4281
diff changeset
    96
    [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0] atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
7dbdc862097c some interface tricks for iphone as well
koda
parents: 4281
diff changeset
    97
    [fileName release];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    98
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    99
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   100
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   101
#pragma mark Table view data source
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   102
-(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   103
    return 1;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   104
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   105
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   106
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   107
    return [self.listOfTeams count];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   108
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   109
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   110
// Customize the appearance of table view cells.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   111
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   112
    static NSString *CellIdentifier = @"Cell";
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   113
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   114
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   115
    if (cell == nil) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   116
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   117
    }
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   118
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   119
    NSUInteger row = [indexPath row];
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   120
    NSString *rowString = [[self.listOfTeams objectAtIndex:row] stringByDeletingPathExtension];
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   121
    cell.textLabel.text = rowString;
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   122
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   123
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   124
    return cell;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   125
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   126
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   127
// delete the row and the file
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   128
-(void) tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   129
    NSUInteger row = [indexPath row];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   130
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   131
    NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/%@",TEAMS_DIRECTORY(),[self.listOfTeams objectAtIndex:row]];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   132
    [[NSFileManager defaultManager] removeItemAtPath:teamFile error:NULL];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   133
    [teamFile release];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   134
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   135
    [self.listOfTeams removeObjectAtIndex:row];
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 5208
diff changeset
   136
    [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   137
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   138
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   139
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   140
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   141
#pragma mark Table view delegate
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   142
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   143
    if (childController == nil) {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   144
        childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   145
    }
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   146
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   147
    NSInteger row = [indexPath row];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   148
    NSString *selectedTeamFile = [listOfTeams objectAtIndex:row];
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3662
diff changeset
   149
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   150
    // this must be set so childController can load the correct plist
3660
bc125bea5849 complete settings page rework
koda
parents: 3547
diff changeset
   151
    childController.teamName = [selectedTeamFile stringByDeletingPathExtension];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   152
    [childController.tableView setContentOffset:CGPointMake(0,0) animated:NO];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   153
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   154
    [self.navigationController pushViewController:childController animated:YES];
6074
047eaed35cbb ios major refactoring for ios settings, now they are presented differently on iphone/ipad, code is simplified and optimized, and ui is a little refreshed (eg. no more stuck selected fields)
koda
parents: 5208
diff changeset
   155
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   156
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   157
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   158
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   159
#pragma mark -
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   160
#pragma mark Memory management
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   161
-(void) didReceiveMemoryWarning {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   162
    // Releases the view if it doesn't have a superview.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   163
    [super didReceiveMemoryWarning];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   164
    // Relinquish ownership any cached data, images, etc that aren't in use.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   165
    if (childController.view.superview == nil )
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   166
        childController = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   167
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   168
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   169
-(void) viewDidUnload {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   170
    self.listOfTeams = nil;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   171
    childController = nil;
3662
a44406f4369b polish polish polish polish (also: panning horizontal fix, panning momentum, settings page reworked yet again, memory leaks, crashes, segfaults)
koda
parents: 3660
diff changeset
   172
    MSG_DIDUNLOAD();
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   173
    [super viewDidUnload];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   174
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   175
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   176
-(void) dealloc {
5208
878e551f0b4a all together now! releaseAndNil ftw
koda
parents: 4976
diff changeset
   177
    releaseAndNil(listOfTeams);
878e551f0b4a all together now! releaseAndNil ftw
koda
parents: 4976
diff changeset
   178
    releaseAndNil(childController);
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   179
    [super dealloc];
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   180
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   181
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   182
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   183
@end
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
   184