diff --git a/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad.png b/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad.png index a3d380259339378786654f875763943625e14c54..f4b88ffd300d1499bb82feee3fc569973341db81 100644 Binary files a/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad.png and b/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad.png differ diff --git a/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png b/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png index 9d32334991017d7ef43cb57141a76ee95d529fb4..0b7a39b62224dbf9643d303dabfc4437ab07de44 100644 Binary files a/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png and b/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png differ diff --git a/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png b/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png index f924b3cec5c647292b37c546989a775979978143..c6bd42dd03c29aa04685dab59b94e90458c77df1 100644 Binary files a/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png and b/contrib/mobile/iOS/Onelab/Images.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png differ diff --git a/contrib/mobile/iOS/Onelab/ModelListController.mm b/contrib/mobile/iOS/Onelab/ModelListController.mm index aa274aa3646a681749d0a394f3cadf581beb8b8f..8804b3117d562f19ad91f16d792b55136a6dd9a8 100644 --- a/contrib/mobile/iOS/Onelab/ModelListController.mm +++ b/contrib/mobile/iOS/Onelab/ModelListController.mm @@ -126,9 +126,9 @@ if(indexPath == nil) return; UIActionSheet *actionSheet; if([[models objectAtIndex:indexPath.row] getUrl]) - actionSheet = [[UIActionSheet alloc] initWithTitle:[[models objectAtIndex:indexPath.row] getName] delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles: @"Open this model", @"More information", nil]; + actionSheet = [[UIActionSheet alloc] initWithTitle:[[models objectAtIndex:indexPath.row] getName] delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles: @"Open model", @"Remove model", @"More information", nil]; else - actionSheet = [[UIActionSheet alloc] initWithTitle:[[models objectAtIndex:indexPath.row] getName] delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles: @"Open this model", nil]; + actionSheet = [[UIActionSheet alloc] initWithTitle:[[models objectAtIndex:indexPath.row] getName] delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles: @"Open model", @"Remove model", nil]; actionSheet.tag = indexPath.row; [actionSheet showInView:self.view]; } @@ -136,9 +136,17 @@ -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { switch (buttonIndex) { - case 1: + case 2: [[UIApplication sharedApplication] openURL:[[models objectAtIndex:actionSheet.tag] getUrl]]; break; + case 1: + { + NSString *file = [[models objectAtIndex:actionSheet.tag] getFile]; + // just remove xml file; should probably remove the whole directory to save space? + [[NSFileManager defaultManager] removeItemAtPath:file error:nil]; + [self refreshList]; + } + break; case 0: [self tableView:self.tableView didSelectRowAtIndexPath:[NSIndexPath indexPathForRow:actionSheet.tag inSection:0]]; break; diff --git a/utils/icons/gmsh.xcf b/utils/icons/gmsh.xcf index 532271281a0daa46813ede1ccebced73dda611a7..79b2ff531bf08565dcc0cc4c30fb49622f795dc8 100644 Binary files a/utils/icons/gmsh.xcf and b/utils/icons/gmsh.xcf differ diff --git a/utils/icons/gmsh_mobile_1024x1024.png b/utils/icons/gmsh_mobile_1024x1024.png index 73ecd184873c9406528367771c9743650e03a09c..e4fdbf74e98928559ec0038c8252835f2a419597 100644 Binary files a/utils/icons/gmsh_mobile_1024x1024.png and b/utils/icons/gmsh_mobile_1024x1024.png differ