mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-02 11:03:44 +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>
62 lines
1.7 KiB
Objective-C
62 lines
1.7 KiB
Objective-C
typedef NS_ENUM(NSInteger, MWMActionBarButtonType) {
|
|
MWMActionBarButtonTypeBooking,
|
|
MWMActionBarButtonTypeBookingSearch,
|
|
MWMActionBarButtonTypeBookmark,
|
|
MWMActionBarButtonTypeTrack,
|
|
MWMActionBarButtonTypeSaveTrackRecording,
|
|
MWMActionBarButtonTypeCall,
|
|
MWMActionBarButtonTypeDownload,
|
|
MWMActionBarButtonTypeMore,
|
|
MWMActionBarButtonTypeOpentable,
|
|
MWMActionBarButtonTypeRouteAddStop,
|
|
MWMActionBarButtonTypeRouteFrom,
|
|
MWMActionBarButtonTypeRouteRemoveStop,
|
|
MWMActionBarButtonTypeRouteTo,
|
|
MWMActionBarButtonTypeAvoidToll,
|
|
MWMActionBarButtonTypeAvoidDirty,
|
|
MWMActionBarButtonTypeAvoidFerry
|
|
} NS_SWIFT_NAME(ActionBarButtonType);
|
|
|
|
typedef NS_ENUM(NSInteger, MWMBookmarksButtonState) {
|
|
MWMBookmarksButtonStateSave,
|
|
MWMBookmarksButtonStateDelete,
|
|
MWMBookmarksButtonStateRecover,
|
|
};
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
NSString * titleForButton(MWMActionBarButtonType type, BOOL isSelected);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
@class MWMActionBarButton;
|
|
@class MWMCircularProgress;
|
|
|
|
NS_SWIFT_NAME(ActionBarButtonDelegate)
|
|
@protocol MWMActionBarButtonDelegate <NSObject>
|
|
|
|
- (void)tapOnButtonWithType:(MWMActionBarButtonType)type;
|
|
|
|
@end
|
|
|
|
NS_SWIFT_NAME(ActionBarButton)
|
|
@interface MWMActionBarButton : UIView
|
|
|
|
@property(nonatomic, readonly) MWMActionBarButtonType type;
|
|
@property(nonatomic, readonly, nullable) MWMCircularProgress *mapDownloadProgress;
|
|
|
|
+ (MWMActionBarButton *)buttonWithDelegate:(id<MWMActionBarButtonDelegate>)delegate
|
|
buttonType:(MWMActionBarButtonType)type
|
|
isSelected:(BOOL)isSelected
|
|
isEnabled:(BOOL)isEnabled;
|
|
|
|
- (void)setBookmarkButtonState:(MWMBookmarksButtonState)state;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|