1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/Telegraph/TGMediaPickerGalleryModel.h

33 lines
1.5 KiB
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGModernGalleryModel.h"
#import "TGMediaPickerGalleryInterfaceView.h"
#import "TGModernGalleryController.h"
#import "TGPhotoEditorController.h"
@class TGModernGalleryController;
@class TGMediaPickerGallerySelectedItemsModel;
@protocol TGMediaEditAdjustments;
@protocol TGModernMediaListItem;
@interface TGMediaPickerGalleryModel : TGModernGalleryModel
@property (nonatomic, copy) void(^saveEditedItem)(id<TGEditablePhotoItem> item, id<TGMediaEditAdjustments> editorValues, UIImage *resultImage, UIImage *thumbnailImage);
@property (nonatomic, copy) void(^saveItemCaption)(id<TGEditablePhotoItem> item, NSString *caption);
@property (nonatomic, copy) void(^storeOriginalImageForItem)(id<TGEditablePhotoItem> item, UIImage *originalImage);
@property (nonatomic, assign) bool useGalleryImageAsEditableItemImage;
@property (nonatomic, weak) TGModernGalleryController *controller;
@property (nonatomic, strong) TGMediaPickerGallerySelectedItemsModel *selectedItemsModel;
@property (nonatomic, strong, readonly) TGMediaPickerGalleryInterfaceView *interfaceView;
@property (nonatomic, copy) SSignal *(^userListSignal)(NSString *mention);
@property (nonatomic, copy) SSignal *(^hashtagListSignal)(NSString *hashtag);
- (instancetype)initWithItems:(NSArray *)items focusItem:(id<TGModernGalleryItem>)focusItem allowsSelection:(bool)allowsSelection allowsEditing:(bool)allowsEditing hasCaptions:(bool)hasCaptions forVideo:(bool)forVideo;
- (void)setCurrentItemWithListItem:(id<TGModernMediaListItem>)listItem direction:(TGModernGalleryScrollAnimationDirection)direction;
@end