Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
59
iphone/Maps/UI/Editor/OpeningHours/MWMOpeningHoursSection.h
Normal file
59
iphone/Maps/UI/Editor/OpeningHours/MWMOpeningHoursSection.h
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
#import "MWMOpeningHoursEditorCells.h"
|
||||
|
||||
#include "editor/opening_hours_ui.hpp"
|
||||
|
||||
@class MWMOpeningHoursTableViewCell;
|
||||
|
||||
@protocol MWMOpeningHoursSectionProtocol <NSObject>
|
||||
|
||||
@property(nullable, weak, nonatomic, readonly) UITableView * tableView;
|
||||
|
||||
- (void)updateActiveSection:(NSUInteger)index;
|
||||
|
||||
- (editor::ui::TimeTableSet::Proxy)timeTableProxy:(NSUInteger)index;
|
||||
- (void)deleteSchedule:(NSUInteger)index;
|
||||
|
||||
@end
|
||||
|
||||
@interface MWMOpeningHoursSection : NSObject
|
||||
|
||||
@property(nonatomic) BOOL allDay;
|
||||
|
||||
@property(nonatomic, readonly) NSUInteger index;
|
||||
@property(nullable, nonatomic) NSNumber * selectedRow;
|
||||
@property(nonatomic, readonly) NSUInteger numberOfRows;
|
||||
|
||||
@property(nullable, nonatomic) NSDateComponents * cachedStartTime;
|
||||
@property(nullable, nonatomic) NSDateComponents * cachedEndTime;
|
||||
|
||||
@property(nonatomic, readonly) BOOL canAddClosedTime;
|
||||
|
||||
@property(nullable, weak, nonatomic, readonly) id<MWMOpeningHoursSectionProtocol> delegate;
|
||||
|
||||
- (instancetype _Nonnull)initWithDelegate:(id<MWMOpeningHoursSectionProtocol> _Nonnull)delegate;
|
||||
|
||||
- (void)refreshIndex:(NSUInteger)index;
|
||||
|
||||
- (MWMOpeningHoursEditorCells)cellKeyForRow:(NSUInteger)row;
|
||||
|
||||
- (CGFloat)heightForRow:(NSUInteger)row withWidth:(CGFloat)width;
|
||||
|
||||
- (NSDateComponents * _Nonnull)timeForRow:(NSUInteger)row isStart:(BOOL)isStart;
|
||||
|
||||
- (void)addSelectedDay:(osmoh::Weekday)day;
|
||||
- (void)removeSelectedDay:(osmoh::Weekday)day;
|
||||
- (BOOL)containsSelectedDay:(osmoh::Weekday)day;
|
||||
|
||||
- (void)addClosedTime;
|
||||
- (void)removeClosedTime:(NSUInteger)row;
|
||||
|
||||
- (void)deleteSchedule;
|
||||
|
||||
- (void)refresh:(BOOL)force;
|
||||
|
||||
- (void)scrollIntoView;
|
||||
- (void)storeCachedData;
|
||||
|
||||
- (BOOL)isRowSelected:(NSUInteger)row;
|
||||
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue