mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
1. add an new screen (layout) 2. add TR icon for the bottom tabbar 3. share current location from the TR PP 4. refactor TR manager to properly handle state updates and pass them to the LiveActivityManager and PlacePage 5. add init/update with TrackInfo/EleInfo methods to the PlacePageData and PlacePagePreviewData to update the PP state Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
65 lines
1.8 KiB
Objective-C
65 lines
1.8 KiB
Objective-C
#import "MWMBottomMenuState.h"
|
|
#import "MWMMapDownloaderMode.h"
|
|
#import "MWMNavigationDashboardManager.h"
|
|
|
|
@class MapViewController;
|
|
@class BottomTabBarViewController;
|
|
@class TrackRecordingButtonViewController;
|
|
@class SearchQuery;
|
|
|
|
typedef NS_ENUM(NSUInteger, TrackRecordingButtonState) {
|
|
TrackRecordingButtonStateHidden,
|
|
TrackRecordingButtonStateVisible,
|
|
TrackRecordingButtonStateClosed,
|
|
};
|
|
|
|
@protocol MWMFeatureHolder;
|
|
|
|
@interface MWMMapViewControlsManager : NSObject
|
|
|
|
+ (MWMMapViewControlsManager *)manager NS_SWIFT_NAME(manager());
|
|
|
|
@property(nonatomic) BOOL hidden;
|
|
@property(nonatomic) BOOL zoomHidden;
|
|
@property(nonatomic) BOOL sideButtonsHidden;
|
|
@property(nonatomic) BOOL trafficButtonHidden;
|
|
@property(nonatomic) MWMBottomMenuState menuState;
|
|
@property(nonatomic) MWMBottomMenuState menuRestoreState;
|
|
@property(nonatomic) BOOL isDirectionViewHidden;
|
|
@property(nonatomic) BottomTabBarViewController * tabBarController;
|
|
@property(nonatomic) TrackRecordingButtonViewController * trackRecordingButton;
|
|
|
|
- (instancetype)init __attribute__((unavailable("init is not available")));
|
|
- (instancetype)initWithParentController:(MapViewController *)controller;
|
|
|
|
- (UIStatusBarStyle)preferredStatusBarStyle;
|
|
|
|
#pragma mark - Layout
|
|
|
|
- (UIView *)anchorView;
|
|
|
|
- (void)viewWillTransitionToSize:(CGSize)size
|
|
withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;
|
|
|
|
- (void)setTrackRecordingButtonState:(TrackRecordingButtonState)state;
|
|
|
|
#pragma mark - MWMNavigationDashboardManager
|
|
|
|
- (void)onRoutePrepare;
|
|
- (void)onRouteRebuild;
|
|
- (void)onRouteReady:(BOOL)hasWarnings;
|
|
- (void)onRouteStart;
|
|
- (void)onRouteStop;
|
|
|
|
#pragma mark - MWMSearchManager
|
|
|
|
- (void)actionDownloadMaps:(MWMMapDownloaderMode)mode;
|
|
- (BOOL)search:(SearchQuery *)query;
|
|
- (void)searchOnMap:(SearchQuery *)query;
|
|
|
|
#pragma mark - MWMFeatureHolder
|
|
|
|
- (id<MWMFeatureHolder>)featureHolder;
|
|
|
|
@end
|