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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePageLayout.h')
-rw-r--r--iphone/Maps/Classes/MWMPlacePageLayout.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePageLayout.h b/iphone/Maps/Classes/MWMPlacePageLayout.h
new file mode 100644
index 0000000000..e0e8d41aaa
--- /dev/null
+++ b/iphone/Maps/Classes/MWMPlacePageLayout.h
@@ -0,0 +1,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