diff --git a/ios/iosremote/fr.lproj/iPad_autosize.storyboard b/ios/iosremote/fr.lproj/iPad_autosize.storyboard index ce95d0f4a842..e804dee360b3 100644 --- a/ios/iosremote/fr.lproj/iPad_autosize.storyboard +++ b/ios/iosremote/fr.lproj/iPad_autosize.storyboard @@ -1,8 +1,8 @@ - + - + @@ -54,7 +54,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -150,7 +150,7 @@ - + @@ -223,7 +223,7 @@ - + @@ -504,7 +504,7 @@ Contrôle Distant - + diff --git a/ios/iosremote/fr.lproj/iPad_autosize_old.storyboard b/ios/iosremote/fr.lproj/iPad_autosize_old.storyboard index ce95d0f4a842..e804dee360b3 100644 --- a/ios/iosremote/fr.lproj/iPad_autosize_old.storyboard +++ b/ios/iosremote/fr.lproj/iPad_autosize_old.storyboard @@ -1,8 +1,8 @@ - + - + @@ -54,7 +54,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -150,7 +150,7 @@ - + @@ -223,7 +223,7 @@ - + @@ -504,7 +504,7 @@ Contrôle Distant - + diff --git a/ios/iosremote/iosremote/BasePresentationViewController.m b/ios/iosremote/iosremote/BasePresentationViewController.m index 322708066e55..72567bef039b 100644 --- a/ios/iosremote/iosremote/BasePresentationViewController.m +++ b/ios/iosremote/iosremote/BasePresentationViewController.m @@ -159,6 +159,13 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { + static int count = 0; + if (count < 2){ + ++count; + return; + } + count = 0; + UITouch *touch = [[event allTouches] anyObject]; CGPoint loc = [touch locationInView:self.currentSlideImageView]; if (loc.x >= 0 && loc.x <= self.currentSlideImageView.frame.size.width diff --git a/ios/iosremote/iosremote/en.lproj/Localizable.strings b/ios/iosremote/iosremote/en.lproj/Localizable.strings index ef26a373c8aa..ed14a5238430 100644 Binary files a/ios/iosremote/iosremote/en.lproj/Localizable.strings and b/ios/iosremote/iosremote/en.lproj/Localizable.strings differ diff --git a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard index 34ebfba567f7..cd0c1da20c58 100644 --- a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard @@ -1,9 +1,9 @@ - + - + diff --git a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard index 34ebfba567f7..cd0c1da20c58 100644 --- a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard @@ -1,9 +1,9 @@ - + - + diff --git a/ios/iosremote/iosremote/serverList_vc.m b/ios/iosremote/iosremote/serverList_vc.m index 5095bf29b0d5..18674c72e28e 100644 --- a/ios/iosremote/iosremote/serverList_vc.m +++ b/ios/iosremote/iosremote/serverList_vc.m @@ -48,6 +48,7 @@ #pragma mark - helper - (void) startSearching { + [self.serviceBrowser stop]; [self.comManager.autoDiscoveryServers removeAllObjects]; [self.serviceBrowser searchForServicesOfType:@"_impressremote._tcp" inDomain:@"local"]; [self.serviceBrowser scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; @@ -56,7 +57,9 @@ - (void) setSearchStateText:(NSString *)searchStateText { _searchStateText = searchStateText; + // This doesn't work well on iOS7, might be a bug. The text will get duplicated, it seems that the older section header view was not removed [self.serverTable reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone]; +// [self.serverTable reloadData]; } - (void) setStyle:(UITableViewCellSelectionStyle)style @@ -122,16 +125,16 @@ [self.searchLabelTimer invalidate]; [self.searchTimeoutTimer invalidate]; self.searchLabelTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 - target:self - selector:@selector(updateSearchLabel) - userInfo:nil - repeats:YES]; + target:self + selector:@selector(updateSearchLabel) + userInfo:nil + repeats:YES]; self.searchTimeoutTimer = [NSTimer scheduledTimerWithTimeInterval:5.0 - target:self - selector:@selector(handleSearchTimeout) - userInfo:nil - repeats:NO]; + target:self + selector:@selector(handleSearchTimeout) + userInfo:nil + repeats:NO]; [[NSRunLoop currentRunLoop] addTimer:self.searchLabelTimer forMode:NSRunLoopCommonModes]; self.style = UITableViewCellSelectionStyleNone; @@ -156,7 +159,7 @@ didFindService:(NSNetService *)aNetService moreComing:(BOOL)moreComing { - [self.comManager.autoDiscoveryServers removeObject:aNetService]; +// [self.comManager.autoDiscoveryServers removeObject:aNetService]; [self.comManager.autoDiscoveryServers addObject:aNetService]; NSLog(@"Got service %p with hostname %@\n", aNetService, @@ -166,8 +169,8 @@ if(!moreComing) { - [self.tableView reloadData]; - [self.serviceBrowser stop]; +// [self.tableView reloadData]; + [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic]; [self.searchTimeoutTimer invalidate]; [self.searchLabelTimer invalidate]; } @@ -182,11 +185,9 @@ if(!moreComing) { - [self.tableView reloadData]; - if ([self.comManager.autoDiscoveryServers count] == 0) { - UITableViewCell * cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; - [(UIActivityIndicatorView *)[cell viewWithTag:5] startAnimating]; - } +// [self.tableView reloadData]; + [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic]; + [self startSearching]; } } @@ -216,7 +217,7 @@ [super viewDidLoad]; // Uncomment the following line to preserve selection between presentations. // self.clearsSelectionOnViewWillAppear = NO; - + // Uncomment the following line to display an Edit button in the navigation bar for this view controller. // self.navigationItem.rightBarButtonItem = self.editButtonItem; @@ -254,7 +255,8 @@ }]; NSLog(@"Clear auto discovered servers"); [self.comManager.autoDiscoveryServers removeAllObjects]; - [self.serverTable reloadData]; +// [self.serverTable reloadData]; + [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic]; self.serviceBrowser = [[NSNetServiceBrowser alloc] init]; [self.serviceBrowser setDelegate:self]; [self startSearching]; @@ -327,7 +329,7 @@ UIActivityIndicatorView *activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; [activityView startAnimating]; [cell setAccessoryView:activityView]; - + if (indexPath.section == 1){ NSLog(@"Connecting to %@:%@", [[self.comManager.servers objectAtIndex:indexPath.row] serverName], [[self.comManager.servers objectAtIndex:indexPath.row] serverAddress]); [self.comManager connectToServer:[self.comManager.servers objectAtIndex:indexPath.row]]; @@ -380,10 +382,24 @@ sectionFooter.textColor = kTintColor; sectionFooter.text = NSLocalizedString(@"Customize server config instruction", @"Displayed when no customized server is available"); - UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, [self tableView:tableView heightForHeaderInSection:section])]; + UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, [self tableView:tableView heightForFooterInSection:section])]; [view addSubview:sectionFooter]; return view; } +// +// if ([self.comManager.autoDiscoveryServers count] == 0 && section == 0) { +// UILabel *sectionFooter = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, tableView.frame.size.width - 50, 60)]; +// [sectionFooter setLineBreakMode:NSLineBreakByWordWrapping]; +// [sectionFooter setNumberOfLines:5]; +// sectionFooter.backgroundColor = [UIColor clearColor]; +// sectionFooter.font = kAppSmallTextFont; +// sectionFooter.textColor = kTintColor; +// sectionFooter.text = NSLocalizedString(@"Don't have a working WiFi around you? Consider create your own hotspot with your phone or your computer", @"Displayed when no customized server is available"); +// +// UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, [self tableView:tableView heightForFooterInSection:section])]; +// [view addSubview:sectionFooter]; +// return view; +// } return nil; } @@ -392,6 +408,11 @@ return 50.0; } +//- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section +//{ +//// return 50.0; +//} + -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 2; diff --git a/ios/iosremote/iosremote/slideShow_vc_iphone.m b/ios/iosremote/iosremote/slideShow_vc_iphone.m index 87cedecbe986..3131dc6ea525 100644 --- a/ios/iosremote/iosremote/slideShow_vc_iphone.m +++ b/ios/iosremote/iosremote/slideShow_vc_iphone.m @@ -216,6 +216,12 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { + static int count = 0; + if (count < 2){ + ++count; + return; + } + count = 0; if (!self.touchPointerImage.isHidden){ UITouch *touch = [[event allTouches] anyObject]; CGPoint loc = [touch locationInView:self.touchPointerImage]; diff --git a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard index fc27b4ceb208..674d8b92f065 100644 --- a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard @@ -1,9 +1,9 @@ - + - + diff --git a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard index fc27b4ceb208..674d8b92f065 100644 --- a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard @@ -1,9 +1,9 @@ - + - + diff --git a/ios/iosremote/zh-Hans.lproj/iPad_autosize.storyboard b/ios/iosremote/zh-Hans.lproj/iPad_autosize.storyboard index 2b47e6dc693b..4f57290154bf 100644 --- a/ios/iosremote/zh-Hans.lproj/iPad_autosize.storyboard +++ b/ios/iosremote/zh-Hans.lproj/iPad_autosize.storyboard @@ -1,8 +1,8 @@ - + - + @@ -54,7 +54,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -150,7 +150,7 @@ - + @@ -223,7 +223,7 @@ - + @@ -502,7 +502,7 @@ - + diff --git a/ios/iosremote/zh-Hans.lproj/iPad_autosize_old.storyboard b/ios/iosremote/zh-Hans.lproj/iPad_autosize_old.storyboard index dfd96f8b5959..4f57290154bf 100644 --- a/ios/iosremote/zh-Hans.lproj/iPad_autosize_old.storyboard +++ b/ios/iosremote/zh-Hans.lproj/iPad_autosize_old.storyboard @@ -1,8 +1,8 @@ - + - + @@ -54,7 +54,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -150,7 +150,7 @@ - + @@ -223,7 +223,7 @@ - + @@ -502,7 +502,7 @@ - + @@ -541,87 +541,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sd/source/ui/app/res_bmp.src b/sd/source/ui/app/res_bmp.src index ba42bb5683a8..00f7a275ed42 100644 --- a/sd/source/ui/app/res_bmp.src +++ b/sd/source/ui/app/res_bmp.src @@ -326,6 +326,11 @@ Bitmap BMP_PRESOBJ_TABLE File = "table.bmp" ; }; +Bitmap BMP_POINTER_ICON +{ + File = "pointericon.bmp"; +}; + Bitmap BMP_WAIT_ICON { File = "waiticon.bmp"; diff --git a/sd/source/ui/inc/res_bmp.hrc b/sd/source/ui/inc/res_bmp.hrc index 22dbaa037401..46cb52a52e08 100644 --- a/sd/source/ui/inc/res_bmp.hrc +++ b/sd/source/ui/inc/res_bmp.hrc @@ -40,6 +40,7 @@ #define BMP_FOIL_NONE RID_APP_START+120 #define BMP_GROUP RID_APP_START+121 #define BMP_WAIT_ICON RID_APP_START+124 +#define BMP_POINTER_ICON RID_APP_START+126 // additional effects diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 21687ef25bf2..bf4e57ef069a 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1148,7 +1148,7 @@ bool SlideshowImpl::startShowImpl( const Sequence< beans::PropertyValue >& aProp beans::PropertyState_DIRECT_VALUE ) ); } - BitmapEx pointerSymbolBitmap( SdResId(BMP_WAIT_ICON) ); + BitmapEx pointerSymbolBitmap( SdResId(BMP_POINTER_ICON) ); const Reference xPointerBitmap( vcl::unotools::xBitmapFromBitmapEx( xSpriteCanvas->getDevice(), pointerSymbolBitmap ) );