diff options
-rw-r--r-- | ios/iosremote/iosremote.xcodeproj/project.pbxproj | 6 | ||||
-rw-r--r-- | ios/iosremote/iosremote/TimerCountdownTimePicker.h | 19 | ||||
-rw-r--r-- | ios/iosremote/iosremote/TimerCountdownTimePicker.m | 90 |
3 files changed, 0 insertions, 115 deletions
diff --git a/ios/iosremote/iosremote.xcodeproj/project.pbxproj b/ios/iosremote/iosremote.xcodeproj/project.pbxproj index aa42d9c073b7..df2254cd6675 100644 --- a/ios/iosremote/iosremote.xcodeproj/project.pbxproj +++ b/ios/iosremote/iosremote.xcodeproj/project.pbxproj @@ -87,7 +87,6 @@ 8C23B46C17DB3B8600FB4DE6 /* timer_settime_btn.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C23B46A17DB3B8600FB4DE6 /* timer_settime_btn.png */; }; 8C23B46D17DB3B8600FB4DE6 /* timer_settime_btn@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C23B46B17DB3B8600FB4DE6 /* timer_settime_btn@2x.png */; }; 8C23B47017DB419300FB4DE6 /* Timer.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C23B46F17DB419300FB4DE6 /* Timer.m */; }; - 8C23B47317DBAFD200FB4DE6 /* TimerCountdownTimePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C23B47217DBAFD200FB4DE6 /* TimerCountdownTimePicker.m */; }; 8C26E5C617A5539D007DA4B7 /* UserDefaults.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8C26E5C517A5539D007DA4B7 /* UserDefaults.plist */; }; 8C26E5C917A5731D007DA4B7 /* autoDismissKeyboardNavigationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C26E5C817A5731D007DA4B7 /* autoDismissKeyboardNavigationViewController.m */; }; 8C26E5D017A58703007DA4B7 /* HorizontalSlideCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C26E5CF17A58703007DA4B7 /* HorizontalSlideCell.m */; }; @@ -243,8 +242,6 @@ 8C23B46B17DB3B8600FB4DE6 /* timer_settime_btn@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "timer_settime_btn@2x.png"; path = "iosremote/timer_settime_btn@2x.png"; sourceTree = "<group>"; }; 8C23B46E17DB419300FB4DE6 /* Timer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Timer.h; path = iosremote/Timer.h; sourceTree = "<group>"; }; 8C23B46F17DB419300FB4DE6 /* Timer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Timer.m; path = iosremote/Timer.m; sourceTree = "<group>"; }; - 8C23B47117DBAFD200FB4DE6 /* TimerCountdownTimePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TimerCountdownTimePicker.h; path = iosremote/TimerCountdownTimePicker.h; sourceTree = "<group>"; }; - 8C23B47217DBAFD200FB4DE6 /* TimerCountdownTimePicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TimerCountdownTimePicker.m; path = iosremote/TimerCountdownTimePicker.m; sourceTree = "<group>"; }; 8C26E5BE17A525FC007DA4B7 /* MGSplitCornersView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGSplitCornersView.h; sourceTree = "<group>"; }; 8C26E5BF17A525FC007DA4B7 /* MGSplitCornersView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MGSplitCornersView.m; sourceTree = "<group>"; }; 8C26E5C017A525FC007DA4B7 /* MGSplitDividerView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGSplitDividerView.h; sourceTree = "<group>"; }; @@ -577,8 +574,6 @@ 8C19F42E17B05089005BDB61 /* LibONavigationController.m */, 8C19F43417B10D48005BDB61 /* UIViewController+LibOStyling.h */, 8C19F43517B10D49005BDB61 /* UIViewController+LibOStyling.m */, - 8C23B47117DBAFD200FB4DE6 /* TimerCountdownTimePicker.h */, - 8C23B47217DBAFD200FB4DE6 /* TimerCountdownTimePicker.m */, ); name = Support; sourceTree = "<group>"; @@ -871,7 +866,6 @@ 8CD6EC7017CC3FA00071827A /* WalkThroughContainerViewController.m in Sources */, 8C23B46917DA158C00FB4DE6 /* UIView+Shadowing.m in Sources */, 8C23B47017DB419300FB4DE6 /* Timer.m in Sources */, - 8C23B47317DBAFD200FB4DE6 /* TimerCountdownTimePicker.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/ios/iosremote/iosremote/TimerCountdownTimePicker.h b/ios/iosremote/iosremote/TimerCountdownTimePicker.h deleted file mode 100644 index a0b94083742d..000000000000 --- a/ios/iosremote/iosremote/TimerCountdownTimePicker.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// TimerCountdownTimePicker.h -// iosremote -// -// Created by Siqi Liu on 9/7/13. -// Copyright (c) 2013 libreoffice. All rights reserved. -// - -#import <UIKit/UIKit.h> - -@interface TimerCountdownTimePicker : UIView - -@property (nonatomic, assign, readonly) UIDatePicker *picker; - -- (void) setMode: (UIDatePickerMode) mode; -- (void) setHidden: (BOOL) hidden animated: (BOOL) animated; -- (void) addTargetForDoneButton: (id) target action: (SEL) action; - -@end diff --git a/ios/iosremote/iosremote/TimerCountdownTimePicker.m b/ios/iosremote/iosremote/TimerCountdownTimePicker.m deleted file mode 100644 index dbae01859018..000000000000 --- a/ios/iosremote/iosremote/TimerCountdownTimePicker.m +++ /dev/null @@ -1,90 +0,0 @@ -// -// TimerCountdownTimePicker.m -// iosremote -// -// Created by Siqi Liu on 9/7/13. -// Copyright (c) 2013 libreoffice. All rights reserved. -// - -#import "TimerCountdownTimePicker.h" -#import <UIKit/UIKit.h> - -#define MyDateTimePickerHeight 260 -#define TimerCountdownTimePickerPickerHeight 216 -#define TimerCountdownTimePickerToolbarHeight 44 - -@interface TimerCountdownTimePicker() - -@property (nonatomic, assign, readwrite) UIDatePicker *picker; -@property (nonatomic, assign) CGRect originalFrame; - -@property (nonatomic, assign) id doneTarget; -@property (nonatomic, assign) SEL doneSelector; - -- (void) donePressed; - -@end - - -@implementation TimerCountdownTimePicker - -@synthesize picker = _picker; -@synthesize originalFrame = _originalFrame; - -@synthesize doneTarget = _doneTarget; -@synthesize doneSelector = _doneSelector; - -- (id) initWithFrame: (CGRect) frame { - if ((self = [super initWithFrame: frame])) { - self.originalFrame = frame; - self.backgroundColor = [UIColor clearColor]; - - CGFloat width = self.bounds.size.width; - UIDatePicker *picker = [[UIDatePicker alloc] initWithFrame: CGRectMake(0, 0, width, TimerCountdownTimePickerPickerHeight)]; - [self addSubview: picker]; - - UIToolbar *toolbar = [[UIToolbar alloc] initWithFrame: CGRectMake(0, TimerCountdownTimePickerPickerHeight, width, TimerCountdownTimePickerToolbarHeight)]; - toolbar.barStyle = UIBarStyleBlackOpaque; - - UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle: NSLocalizedString(@"Done", @"Done button in the time picker for count down time picker") style: UIBarButtonItemStyleBordered target: self action: @selector(donePressed)]; - doneButton.width = width - 20; - toolbar.items = [NSArray arrayWithObject: doneButton]; - [self addSubview: toolbar]; - - self.picker = picker; - } - return self; -} - -- (void) setMode: (UIDatePickerMode) mode { - self.picker.datePickerMode = mode; -} - -- (void) donePressed { - if (self.doneTarget) { - [self.doneTarget performSelector: self.doneSelector]; - } -} - -- (void) addTargetForDoneButton: (id) target action: (SEL) action { - self.doneTarget = target; - self.doneSelector = action; -} - -- (void) setHidden: (BOOL) hidden animated: (BOOL) animated { - CGRect newFrame = self.originalFrame; - newFrame.origin.y += hidden ? MyDateTimePickerHeight : 0; - if (animated) { - [UIView beginAnimations: @"animateDateTimePicker" context: nil]; - [UIView setAnimationDuration: 0.3]; - [UIView setAnimationCurve: UIViewAnimationCurveEaseOut]; - - self.frame = newFrame; - - [UIView commitAnimations]; - } else { - self.frame = newFrame; - } -} - -@end |