diff --git a/Classes/BuschJaegerCallView.m b/Classes/BuschJaegerCallView.m index c5e0585d5..f70d43ca6 100644 --- a/Classes/BuschJaegerCallView.m +++ b/Classes/BuschJaegerCallView.m @@ -23,6 +23,7 @@ #include "linphonecore.h" #import #import +#import "UIView+RoundUIView.h" @implementation BuschJaegerCallView @@ -108,6 +109,7 @@ UIColor* col1 = BUSCHJAEGER_NORMAL_COLOR; UIColor* col2 = BUSCHJAEGER_NORMAL_COLOR2; [BuschJaegerUtils createGradientForButton:microButton withTopColor:col1 bottomColor:col2]; + [microButton makeRoundWithCorner:(UIRectCornerBottomLeft|UIRectCornerTopLeft) radius:(microButton.bounds.size.height/2.0)]; } { UIColor* col1 = BUSCHJAEGER_RED_COLOR; @@ -115,12 +117,16 @@ [BuschJaegerUtils createGradientForButton:endOrRejectCallButton withTopColor:col1 bottomColor:col2]; [BuschJaegerUtils createGradientForButton:declineButton withTopColor:col1 bottomColor:col2]; + [endOrRejectCallButton makeRoundWithCorner:(UIRectCornerBottomLeft|UIRectCornerTopLeft) radius:(endOrRejectCallButton.bounds.size.height/2.0)]; + [declineButton makeRoundWithCorner:(UIRectCornerBottomLeft|UIRectCornerTopLeft) radius:(declineButton.bounds.size.height/2.0)]; + } { UIColor* col1 = BUSCHJAEGER_GREEN_COLOR; UIColor* col2 = BUSCHJAEGER_GREEN_COLOR; [BuschJaegerUtils createGradientForButton:takeCallButton withTopColor:col1 bottomColor:col2]; + [takeCallButton makeRoundWithCorner:(UIRectCornerBottomRight|UIRectCornerTopRight) radius:(takeCallButton.bounds.size.height/2.0)]; } linphone_core_set_native_video_window_id([LinphoneManager getLc], (unsigned long)videoView); diff --git a/Classes/BuschJaegerCallView.xib b/Classes/BuschJaegerCallView.xib index 090d70263..c9345dbfc 100644 --- a/Classes/BuschJaegerCallView.xib +++ b/Classes/BuschJaegerCallView.xib @@ -166,7 +166,6 @@ -2147483356 {{207, 0}, {73, 58}} - _NS:225 NO @@ -259,7 +258,6 @@ _NS:9 - NO YES 7 NO @@ -565,7 +563,147 @@ 91 - + + + + BuschJaegerCallView + UIViewController + + id + id + + + + onSnapshotClick: + id + + + takeCall: + id + + + + UISwipeGestureRecognizer + UISwipeGestureRecognizer + UILabel + UIHangUpButton + UIHangUpButton + UIView + UIDigitButton + UIToggleButton + UIDigitButton + UIButton + UIButton + UIView + + + + cameraLeftSwipeGestureRecognizer + UISwipeGestureRecognizer + + + cameraRightSwipeGestureRecognizer + UISwipeGestureRecognizer + + + contactLabel + UILabel + + + declineButton + UIHangUpButton + + + endOrRejectCallButton + UIHangUpButton + + + incomingView + UIView + + + lightsButton + UIDigitButton + + + microButton + UIToggleButton + + + openDoorButton + UIDigitButton + + + snapshotButton + UIButton + + + takeCallButton + UIButton + + + videoView + UIView + + + + IBProjectSource + ./Classes/BuschJaegerCallView.h + + + + UIDigitButton + UILongTouchButton + + addressField + UITextField + + + addressField + + addressField + UITextField + + + + IBProjectSource + ./Classes/UIDigitButton.h + + + + UIHangUpButton + UIButton + + IBProjectSource + ./Classes/UIHangUpButton.h + + + + UILongTouchButton + UIButton + + IBProjectSource + ./Classes/UILongTouchButton.h + + + + UIMicroButton + UIToggleButton + + IBProjectSource + ./Classes/UIMicroButton.h + + + + UIToggleButton + UIButton + + IBProjectSource + ./Classes/UIToggleButton.h + + + + 0 IBCocoaTouchFramework diff --git a/Classes/BuschJaegerWelcomeView.xib b/Classes/BuschJaegerWelcomeView.xib index 68e149ea1..f1961ca33 100644 --- a/Classes/BuschJaegerWelcomeView.xib +++ b/Classes/BuschJaegerWelcomeView.xib @@ -41,7 +41,7 @@ 293 - {{82, 17}, {156, 50}} + {{65, 17}, {156, 50}} _NS:9 diff --git a/Classes/LinphoneUI/UIHangUpButton.m b/Classes/LinphoneUI/UIHangUpButton.m index 6cc759087..c4af9a6d8 100644 --- a/Classes/LinphoneUI/UIHangUpButton.m +++ b/Classes/LinphoneUI/UIHangUpButton.m @@ -20,7 +20,6 @@ #import "UIHangUpButton.h" #import "LinphoneManager.h" - @implementation UIHangUpButton diff --git a/Classes/LinphoneUI/UIHistoryCell.xib b/Classes/LinphoneUI/UIHistoryCell.xib index 4eb550191..74c59cb8a 100644 --- a/Classes/LinphoneUI/UIHistoryCell.xib +++ b/Classes/LinphoneUI/UIHistoryCell.xib @@ -2,13 +2,13 @@ 1536 - 11G63 - 2840 - 1138.51 - 569.00 + 12C60 + 2844 + 1187.34 + 625.00 com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 1926 + 1930 IBProxyObject @@ -42,6 +42,7 @@ 292 {{5, 5}, {32, 32}} + _NS:9 NO @@ -52,6 +53,7 @@ 292 {{45, 10}, {120, 21}} + _NS:9 NO @@ -82,6 +84,7 @@ 289 {{173, 10}, {103, 21}} + _NS:9 NO @@ -109,6 +112,7 @@ 289 {{276, 0}, {44, 44}} + _NS:9 NO IBCocoaTouchFramework @@ -140,6 +144,7 @@ {320, 42} + _NS:9 @@ -261,7 +266,45 @@ 13 - + + + + UIHistoryCell + UITableViewCell + + UILabel + UIRemoteImageView + UILabel + + + + dateLabel + UILabel + + + iconImage + UIRemoteImageView + + + stationLabel + UILabel + + + + IBProjectSource + ./Classes/UIHistoryCell.h + + + + UIRemoteImageView + UIImageView + + IBProjectSource + ./Classes/UIRemoteImageView.h + + + + 0 IBCocoaTouchFramework @@ -274,6 +317,6 @@ trash.png {26, 26} - 1926 + 1930 diff --git a/Classes/LinphoneUI/UIStationCell.m b/Classes/LinphoneUI/UIStationCell.m index 4c40221ec..307b701e6 100644 --- a/Classes/LinphoneUI/UIStationCell.m +++ b/Classes/LinphoneUI/UIStationCell.m @@ -20,6 +20,7 @@ #import "UIStationCell.h" #import "BuschJaegerUtils.h" #import +#import "UIView+RoundUIView.h" @implementation UIStationCell @@ -30,18 +31,6 @@ #pragma mark - Lifecycle Functions -- (void)roundView:(UIView *)view onCorner:(UIRectCorner)rectCorner radius:(float)radius -{ - UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds - byRoundingCorners:rectCorner - cornerRadii:CGSizeMake(radius, radius)]; - CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; - maskLayer.frame = view.bounds; - maskLayer.path = maskPath.CGPath; - [view.layer setMask:maskLayer]; - [maskLayer release]; -} - - (id)initWithIdentifier:(NSString*)identifier { if ((self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]) != nil) { NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"UIStationCell" @@ -57,7 +46,8 @@ CAGradientLayer *overlayButtonShineLayer; - [self roundView:cellBackgroundView onCorner:(UIRectCornerBottomLeft|UIRectCornerBottomRight) radius:7.0]; +// [self roundView:cellBackgroundView onCorner:(UIRectCornerBottomLeft|UIRectCornerBottomRight) radius:7.0]; + [cellBackgroundView makeRoundWithCorner:(UIRectCornerBottomLeft|UIRectCornerBottomRight) radius:7.0]; overlayButtonShineLayer = [CAGradientLayer layer]; overlayButtonShineLayer.name = @"BuschJaegerLayer"; diff --git a/Classes/UIView+RoundUIView.h b/Classes/UIView+RoundUIView.h new file mode 100644 index 000000000..46e612080 --- /dev/null +++ b/Classes/UIView+RoundUIView.h @@ -0,0 +1,15 @@ +// +// UIView+RoundUIView.h +// linphone +// +// Created by Jörg Platte on 16.01.13. +// +// + +#import + +@interface UIView (RoundUIView) + +- (void)makeRoundWithCorner:(UIRectCorner)rectCorner radius:(float)radius; + +@end diff --git a/Classes/UIView+RoundUIView.m b/Classes/UIView+RoundUIView.m new file mode 100644 index 000000000..109a4bde0 --- /dev/null +++ b/Classes/UIView+RoundUIView.m @@ -0,0 +1,28 @@ +// +// UIView+RoundUIView.m +// linphone +// +// Created by Jörg Platte on 16.01.13. +// +// + +#import "UIView+RoundUIView.h" +#import +#import + +@implementation UIView (RoundUIView) + +- (void)makeRoundWithCorner:(UIRectCorner)rectCorner radius:(float)radius +{ + UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.bounds + byRoundingCorners:rectCorner + cornerRadii:CGSizeMake(radius, radius)]; + CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; + maskLayer.frame = self.bounds; + maskLayer.path = maskPath.CGPath; + [self.layer setMask:maskLayer]; + [maskLayer release]; +} + + +@end