diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2015-04-17 18:48:43 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:52:38 +0300 |
commit | 9d2141ae12860ba6f587c97ca31d3986be2a4b51 (patch) | |
tree | 6bf88c44032eb0cdb9adea1698d355b43f30e44e /iphone/Maps/Classes/MWMBasePlacePageView.h | |
parent | 628476581b9783b865eeda3ba8a274bfc8086f98 (diff) |
[ios] iPhone landscape placepage
Diffstat (limited to 'iphone/Maps/Classes/MWMBasePlacePageView.h')
-rw-r--r-- | iphone/Maps/Classes/MWMBasePlacePageView.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/MWMBasePlacePageView.h b/iphone/Maps/Classes/MWMBasePlacePageView.h new file mode 100644 index 0000000000..a7323a307c --- /dev/null +++ b/iphone/Maps/Classes/MWMBasePlacePageView.h @@ -0,0 +1,49 @@ +// +// MWMBasePlagePageView.h +// Maps +// +// Created by v.mikhaylenko on 23.04.15. +// Copyright (c) 2015 MapsWithMe. All rights reserved. +// + +#import <UIKit/UIKit.h> + +#include "map/user_mark.hpp" + +@class MWMPlacePageViewManager, MWMPlacePageActionBar, MWMPlacePageEntity; + +typedef NS_ENUM(NSUInteger, MWMPlacePageState) { + MWMPlacePageStateClosed, + MWMPlacePageStatePreview, + MWMPlacePageStateOpen +}; + +@interface MWMBasePlacePageView : UIView + +@property (weak, nonatomic) IBOutlet UILabel *titleLabel; +@property (weak, nonatomic) IBOutlet UILabel *typeLabel; +@property (weak, nonatomic) IBOutlet UILabel *distanceLabel; +@property (weak, nonatomic) IBOutlet UIImageView *directionArrow; +@property (weak, nonatomic) IBOutlet UITableView *featureTable; +@property (weak, nonatomic) MWMPlacePageActionBar *actionBar; +@property (weak, nonatomic) MWMPlacePageViewManager *placePageManager; +@property (nonatomic) MWMPlacePageState state; + +- (instancetype)init; +- (void)configureWithEntity:(MWMPlacePageEntity *)entity; + +- (CGPoint)targetPoint; +- (IBAction)didTap:(UITapGestureRecognizer *)sender; + +- (void)show; +- (void)dismiss; +- (void)addBookmark; + +@end + +@interface MWMBasePlacePageView (Animations) + +- (void)cancelSpringAnimation; +- (void)startAnimatingView:(MWMBasePlacePageView *)view initialVelocity:(CGPoint)initialVelocity; + +@end |