#import "TGModernGalleryModel.h" #import "TGMediaPickerGalleryInterfaceView.h" #import "TGModernGalleryController.h" #import "TGPhotoEditorController.h" @class TGModernGalleryController; @class TGMediaPickerGallerySelectedItemsModel; @protocol TGMediaEditAdjustments; @class TGMediaSelectionContext; @protocol TGMediaSelectableItem; @class TGSuggestionContext; @interface TGMediaPickerGalleryModel : TGModernGalleryModel @property (nonatomic, copy) void (^willFinishEditingItem)(id item, id adjustments, id temporaryRep, bool hasChanges); @property (nonatomic, copy) void (^didFinishEditingItem)(iditem, id adjustments, UIImage *resultImage, UIImage *thumbnailImage); @property (nonatomic, copy) void (^didFinishRenderingFullSizeImage)(id item, UIImage *fullSizeImage); @property (nonatomic, copy) void (^saveItemCaption)(id item, NSString *caption); @property (nonatomic, copy) void (^storeOriginalImageForItem)(id item, UIImage *originalImage); @property (nonatomic, copy) id (^requestAdjustments)(id item); @property (nonatomic, copy) void (^editorOpened)(void); @property (nonatomic, copy) void (^editorClosed)(void); @property (nonatomic, assign) bool useGalleryImageAsEditableItemImage; @property (nonatomic, weak) TGModernGalleryController *controller; @property (nonatomic, readonly, strong) TGMediaPickerGalleryInterfaceView *interfaceView; @property (nonatomic, readonly, strong) TGMediaPickerGallerySelectedItemsModel *selectedItemsModel; @property (nonatomic, copy) NSInteger (^externalSelectionCount)(void); @property (nonatomic, strong) TGSuggestionContext *suggestionContext; - (instancetype)initWithItems:(NSArray *)items focusItem:(id)focusItem selectionContext:(TGMediaSelectionContext *)selectionContext editingContext:(TGMediaEditingContext *)editingContext hasCaptions:(bool)hasCaptions hasSelectionPanel:(bool)hasSelectionPanel; - (void)setCurrentItem:(id)item direction:(TGModernGalleryScrollAnimationDirection)direction; @end