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

MWMPlacePageLayout.h « PlacePageLayout « PlacePage « UI « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c922aaf5d331ee7a9b2ee4682673a3165626f3e0 (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
43
44
45
46
47
48
49
50
51
52
#include "storage/storage_defines.hpp"

@protocol MWMPlacePageLayoutDelegate<NSObject>

- (void)onPlacePageTopBoundChanged:(CGFloat)bound;
- (void)shouldDestroyLayout;
- (void)shouldClose;

- (BOOL)isExpandedOnShow;
- (void)onExpanded;

@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)showWithData:(MWMPlacePageData *)data;
- (void)close;

- (void)mwm_refreshUI;

- (UIView *)shareAnchor;

- (void)reloadBookmarkSection:(BOOL)isBookmark;

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

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

- (void)checkCellsVisible;

- (void)updateAvailableArea:(CGRect)frame;

@end