diff options
Diffstat (limited to 'ios/iosremote/InAppSettingsKit/Views')
14 files changed, 0 insertions, 513 deletions
diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.h b/ios/iosremote/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.h deleted file mode 100755 index 9a1f0f2318bf..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.h +++ /dev/null @@ -1,31 +0,0 @@ -// -// IASKPSSliderSpecifierViewCell.h -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import <UIKit/UIKit.h> - -@class IASKSlider; - -@interface IASKPSSliderSpecifierViewCell : UITableViewCell { - IASKSlider *__unsafe_unretained _slider; - UIImageView *__unsafe_unretained _minImage; - UIImageView *__unsafe_unretained _maxImage; -} - -@property (nonatomic, unsafe_unretained) IBOutlet IASKSlider *slider; -@property (nonatomic, unsafe_unretained) IBOutlet UIImageView *minImage; -@property (nonatomic, unsafe_unretained) IBOutlet UIImageView *maxImage; - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.m b/ios/iosremote/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.m deleted file mode 100755 index 69187e96a233..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.m +++ /dev/null @@ -1,71 +0,0 @@ -// -// IASKPSSliderSpecifierViewCell.m -// http://www.inappsettingskit.com -// -// Copyright (c) 2009-2010: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import "IASKPSSliderSpecifierViewCell.h" -#import "IASKSlider.h" -#import "IASKSettingsReader.h" - -@implementation IASKPSSliderSpecifierViewCell - -@synthesize slider=_slider, - minImage=_minImage, - maxImage=_maxImage; - -- (void)layoutSubviews { - [super layoutSubviews]; - CGRect sliderBounds = _slider.bounds; - CGPoint sliderCenter = _slider.center; - const double superViewWidth = _slider.superview.frame.size.width; - - sliderCenter.x = superViewWidth / 2; - sliderBounds.size.width = superViewWidth - kIASKSliderNoImagesPadding * 2; - _minImage.hidden = YES; - _maxImage.hidden = YES; - - // Check if there are min and max images. If so, change the layout accordingly. - if (_minImage.image && _maxImage.image) { - // Both images - _minImage.hidden = NO; - _maxImage.hidden = NO; - sliderBounds.size.width = superViewWidth - kIASKSliderImagesPadding * 2; - } - else if (_minImage.image) { - // Min image - _minImage.hidden = NO; - sliderCenter.x += (kIASKSliderImagesPadding - kIASKSliderNoImagesPadding) / 2; - sliderBounds.size.width = superViewWidth - kIASKSliderNoImagesPadding - kIASKSliderImagesPadding; - } - else if (_maxImage.image) { - // Max image - _maxImage.hidden = NO; - sliderCenter.x -= (kIASKSliderImagesPadding - kIASKSliderNoImagesPadding) / 2; - sliderBounds.size.width = superViewWidth - kIASKSliderNoImagesPadding - kIASKSliderImagesPadding; - } - - _slider.bounds = sliderBounds; - _slider.center = sliderCenter; -} - -- (void)dealloc { - _minImage.image = nil; - _maxImage.image = nil; -} - -- (void)prepareForReuse { - _minImage.image = nil; - _maxImage.image = nil; -} -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.h b/ios/iosremote/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.h deleted file mode 100755 index 2d6be581309e..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// IASKPSTextFieldSpecifierViewCell.h -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import <UIKit/UIKit.h> - -@class IASKTextField; - -@interface IASKPSTextFieldSpecifierViewCell : UITableViewCell { - UILabel *__unsafe_unretained _label; - IASKTextField *__unsafe_unretained _textField; -} - -@property (nonatomic, unsafe_unretained) IBOutlet UILabel *label; -@property (nonatomic, unsafe_unretained) IBOutlet IASKTextField *textField; - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.m b/ios/iosremote/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.m deleted file mode 100755 index 39648c2f6d48..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.m +++ /dev/null @@ -1,49 +0,0 @@ -// -// IASKPSTextFieldSpecifierViewCell.m -// http://www.inappsettingskit.com -// -// Copyright (c) 2009-2010: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import "IASKPSTextFieldSpecifierViewCell.h" -#import "IASKTextField.h" -#import "IASKSettingsReader.h" - -@implementation IASKPSTextFieldSpecifierViewCell - -@synthesize label=_label, - textField=_textField; - -- (void)layoutSubviews { - [super layoutSubviews]; - CGSize labelSize = [_label sizeThatFits:CGSizeZero]; - labelSize.width = MIN(labelSize.width, _label.bounds.size.width); - - CGRect textFieldFrame = _textField.frame; - textFieldFrame.origin.x = _label.frame.origin.x + MAX(kIASKMinLabelWidth, labelSize.width) + kIASKSpacing; - if (!_label.text.length) - textFieldFrame.origin.x = _label.frame.origin.x; - textFieldFrame.size.width = _textField.superview.frame.size.width - textFieldFrame.origin.x - _label.frame.origin.x; - _textField.frame = textFieldFrame; -} - -- (void)setSelected:(BOOL)selected animated:(BOOL)animated { - - [super setSelected:selected animated:animated]; - - // Configure the view for the selected state -} - - - - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.h b/ios/iosremote/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.h deleted file mode 100755 index 63d57f8d72a8..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// IASKPSTitleValueSpecifierViewCell.h -// http://www.inappsettingskit.com -// -// Copyright (c) 2010: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import <UIKit/UIKit.h> - - -@interface IASKPSTitleValueSpecifierViewCell : UITableViewCell - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.m b/ios/iosremote/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.m deleted file mode 100755 index b14175de701d..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.m +++ /dev/null @@ -1,57 +0,0 @@ -// -// IASKPSTitleValueSpecifierViewCell.m -// http://www.inappsettingskit.com -// -// Copyright (c) 2010: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import "IASKPSTitleValueSpecifierViewCell.h" -#import "IASKSettingsReader.h" - - -@implementation IASKPSTitleValueSpecifierViewCell - -- (void)layoutSubviews { - // left align the value if the title is empty - if (!self.textLabel.text.length) { - self.textLabel.text = self.detailTextLabel.text; - self.detailTextLabel.text = nil; - if ([self.reuseIdentifier isEqualToString:kIASKPSMultiValueSpecifier]) { - self.textLabel.font = [UIFont systemFontOfSize:[UIFont labelFontSize]]; - self.textLabel.textColor = self.detailTextLabel.textColor; - } - } - [super layoutSubviews]; - - CGSize viewSize = [self.textLabel superview].frame.size; - - //if there's an image, make room for it - CGFloat imageOffset = self.imageView.image ? self.imageView.bounds.size.width + self.imageView.frame.origin.x : 0; - - // set the left title label frame - CGFloat labelWidth = [self.textLabel sizeThatFits:CGSizeZero].width; - CGFloat minValueWidth = (self.detailTextLabel.text.length) ? kIASKMinValueWidth + kIASKSpacing : 0; - labelWidth = MIN(labelWidth, viewSize.width - minValueWidth - kIASKPaddingLeft -kIASKPaddingRight - imageOffset); - CGRect labelFrame = CGRectMake(kIASKPaddingLeft + imageOffset, 0, labelWidth, viewSize.height -2); - self.textLabel.frame = labelFrame; - - // set the right value label frame - if (self.detailTextLabel.text.length) { - CGRect valueFrame = CGRectMake(kIASKPaddingLeft + labelWidth + kIASKSpacing + imageOffset, - 0, - viewSize.width - (kIASKPaddingLeft + labelWidth + kIASKSpacing + imageOffset) - kIASKPaddingRight, - viewSize.height -2); - self.detailTextLabel.frame = valueFrame; - } -} - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.h b/ios/iosremote/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.h deleted file mode 100755 index 0617293cef75..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// IASKPSToggleSwitchSpecifierViewCell.h -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import <UIKit/UIKit.h> - -@class IASKSwitch; - -@interface IASKPSToggleSwitchSpecifierViewCell : UITableViewCell { - UILabel *__unsafe_unretained _label; - IASKSwitch *__unsafe_unretained _toggle; -} - -@property (nonatomic, unsafe_unretained) IBOutlet UILabel *label; -@property (nonatomic, unsafe_unretained) IBOutlet IASKSwitch *toggle; - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.m b/ios/iosremote/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.m deleted file mode 100755 index 6a997ccee844..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// IASKPSToggleSwitchSpecifierViewCell.m -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import "IASKPSToggleSwitchSpecifierViewCell.h" -#import "IASKSwitch.h" -#import "IASKSettingsReader.h" - -@implementation IASKPSToggleSwitchSpecifierViewCell - -@synthesize label=_label, - toggle=_toggle; - -- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { - if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { - // Initialization code - } - return self; -} - - -- (void)setSelected:(BOOL)selected animated:(BOOL)animated { - - [super setSelected:selected animated:animated]; - - // Configure the view for the selected state -} - - - -- (void)layoutSubviews { - [super layoutSubviews]; - if(self.imageView.image) { - //resize the label to make room for the image - self.label.frame = CGRectMake(CGRectGetWidth(self.imageView.bounds) + self.imageView.frame.origin.x + kIASKSpacing, - self.label.frame.origin.y, - self.toggle.frame.origin.x - CGRectGetWidth(self.imageView.bounds) - 2.f * kIASKSpacing, - self.label.frame.size.height); - } else { - self.label.frame = CGRectMake(kIASKPaddingLeft, - self.label.frame.origin.y, - self.toggle.frame.origin.x - kIASKSpacing - kIASKPaddingLeft, - self.label.frame.size.height); - } -} - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKSlider.h b/ios/iosremote/InAppSettingsKit/Views/IASKSlider.h deleted file mode 100755 index 57ecd234b8e9..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKSlider.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// IASKSlider.h -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import <UIKit/UIKit.h> - - -@interface IASKSlider : UISlider { - NSString *_key; -} - -@property (nonatomic, strong) NSString *key; - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKSlider.m b/ios/iosremote/InAppSettingsKit/Views/IASKSlider.m deleted file mode 100755 index e6addff98951..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKSlider.m +++ /dev/null @@ -1,29 +0,0 @@ -// -// IASKSlider.m -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import "IASKSlider.h" - - -@implementation IASKSlider - -@synthesize key=_key; - -- (void)dealloc { - _key = nil; - -} - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKSwitch.h b/ios/iosremote/InAppSettingsKit/Views/IASKSwitch.h deleted file mode 100755 index e183f297ed2e..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKSwitch.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// IASKSwitch.h -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import <UIKit/UIKit.h> - - -@interface IASKSwitch : UISwitch { - NSString *_key; -} - -@property (nonatomic, strong) NSString *key; - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKSwitch.m b/ios/iosremote/InAppSettingsKit/Views/IASKSwitch.m deleted file mode 100755 index 9d24ad8326c0..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKSwitch.m +++ /dev/null @@ -1,30 +0,0 @@ -// -// IASKSwitch.m -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import "IASKSwitch.h" - - -@implementation IASKSwitch - -@synthesize key=_key; - -- (void)dealloc { - _key = nil; - -} - - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKTextField.h b/ios/iosremote/InAppSettingsKit/Views/IASKTextField.h deleted file mode 100755 index 73f5c5b393f8..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKTextField.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// IASKTextField.h -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import <UIKit/UIKit.h> - - -@interface IASKTextField : UITextField { - NSString *_key; -} - -@property (nonatomic, strong) NSString *key; - -@end diff --git a/ios/iosremote/InAppSettingsKit/Views/IASKTextField.m b/ios/iosremote/InAppSettingsKit/Views/IASKTextField.m deleted file mode 100755 index 2b3cc7f6fb62..000000000000 --- a/ios/iosremote/InAppSettingsKit/Views/IASKTextField.m +++ /dev/null @@ -1,29 +0,0 @@ -// -// IASKTextField.m -// http://www.inappsettingskit.com -// -// Copyright (c) 2009: -// Luc Vandal, Edovia Inc., http://www.edovia.com -// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com -// All rights reserved. -// -// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, -// as the original authors of this code. You can give credit in a blog post, a tweet or on -// a info page of your app. Also, the original authors appreciate letting them know if you use this code. -// -// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php -// - -#import "IASKTextField.h" - - -@implementation IASKTextField - -@synthesize key=_key; - -- (void)dealloc { - _key = nil; - -} - -@end |