Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MWMPlacePageLayout.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e0e8d41aaad0ac18b3b522e0a6b96484762b6733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "storage/storage_defines.hpp"

@protocol MWMPlacePageLayoutDelegate <NSObject>

- (void)onTopBoundChanged:(CGFloat)bound;
- (void)shouldDestroyLayout;

@end

@protocol MWMPlacePageLayoutDataSource <NSObject>

- (NSString *)distanceToObject;
- (void)downloadSelectedArea;

@end

@class MWMPlacePageData, MWMPPView;
@protocol MWMPlacePageButtonsProtocol, MWMActionBarProtocol;

/// Helps with place page view layout and representation
@interface MWMPlacePageLayout : NSObject

- (instancetype)initWithOwnerView:(UIView *)view
                         delegate:(id<MWMPlacePageLayoutDelegate, MWMPlacePageButtonsProtocol, MWMActionBarProtocol>)delegate
                       dataSource:(id<MWMPlacePageLayoutDataSource>)dataSource;

- (void)layoutWithSize:(CGSize const &)size;
- (void)showWithData:(MWMPlacePageData *)data;
- (void)close;

- (void)mwm_refreshUI;

- (UIView *)shareAnchor;

- (void)reloadBookmarkSection:(BOOL)isBookmark;

- (void)rotateDirectionArrowToAngle:(CGFloat)angle;
- (void)setDistanceToObject:(NSString *)distance;

- (void)processDownloaderEventWithStatus:(storage::NodeStatus)status progress:(CGFloat)progress;

@end