mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
77 lines
3.1 KiB
Objective-C
77 lines
3.1 KiB
Objective-C
#import <LegacyComponents/LegacyComponents.h>
|
|
|
|
#import <LegacyComponents/TGPhotoEditorController.h>
|
|
|
|
@protocol TGMediaEditAdjustments;
|
|
|
|
@interface TGPhotoEditorTabController : TGViewController
|
|
{
|
|
bool _dismissing;
|
|
UIView *_transitionView;
|
|
}
|
|
|
|
@property (nonatomic, weak) id<TGMediaEditableItem> item;
|
|
@property (nonatomic, assign) TGPhotoEditorControllerIntent intent;
|
|
@property (nonatomic, assign) CGFloat toolbarLandscapeSize;
|
|
@property (nonatomic, assign) bool initialAppearance;
|
|
@property (nonatomic, assign) bool transitionInProgress;
|
|
@property (nonatomic, assign) bool transitionInPending;
|
|
@property (nonatomic, assign) CGFloat transitionSpeed;
|
|
@property (nonatomic, readonly) bool dismissing;
|
|
|
|
@property (nonatomic, copy) UIView *(^beginTransitionIn)(CGRect *referenceFrame, UIView **parentView, bool *noTransitionView);
|
|
@property (nonatomic, copy) void(^finishedTransitionIn)(void);
|
|
@property (nonatomic, copy) UIView *(^beginTransitionOut)(CGRect *referenceFrame, UIView **parentView);
|
|
@property (nonatomic, copy) void(^finishedTransitionOut)(void);
|
|
|
|
@property (nonatomic, copy) void (^beginItemTransitionIn)(void);
|
|
@property (nonatomic, copy) void (^beginItemTransitionOut)(void);
|
|
|
|
@property (nonatomic, copy) void (^valuesChanged)(void);
|
|
|
|
@property (nonatomic, copy) void (^tabsChanged)(void);
|
|
|
|
@property (nonatomic, assign) TGPhotoEditorTab availableTabs;
|
|
|
|
@property (nonatomic, assign) TGPhotoEditorTab switchingToTab;
|
|
|
|
- (void)transitionOutSwitching:(bool)switching completion:(void (^)(void))completion;
|
|
- (void)transitionOutSaving:(bool)saving completion:(void (^)(void))completion;
|
|
|
|
- (void)prepareTransitionInWithReferenceView:(UIView *)referenceView referenceFrame:(CGRect)referenceFrame parentView:(UIView *)parentView noTransitionView:(bool)noTransitionView;
|
|
- (void)prepareTransitionOutSaving:(bool)saving;
|
|
|
|
- (void)prepareForCustomTransitionOut;
|
|
|
|
- (void)animateTransitionIn;
|
|
- (CGRect)_targetFrameForTransitionInFromFrame:(CGRect)fromFrame;
|
|
- (void)_animatePreviewViewTransitionOutToFrame:(CGRect)toFrame saving:(bool)saving parentView:(UIView *)parentView completion:(void (^)(void))completion;
|
|
- (void)_finishedTransitionInWithView:(UIView *)transitionView;
|
|
|
|
- (CGRect)transitionOutReferenceFrame;
|
|
- (UIView *)transitionOutReferenceView;
|
|
- (CGRect)transitionOutSourceFrameForReferenceFrame:(CGRect)referenceFrame orientation:(UIInterfaceOrientation)orientation;
|
|
|
|
- (CGSize)referenceViewSize;
|
|
|
|
- (UIView *)snapshotView;
|
|
|
|
- (id)currentResultRepresentation;
|
|
|
|
- (void)handleTabAction:(TGPhotoEditorTab)tab;
|
|
|
|
- (bool)isDismissAllowed;
|
|
|
|
- (void)_updateTabs;
|
|
- (TGPhotoEditorTab)activeTab;
|
|
- (TGPhotoEditorTab)highlightedTabs;
|
|
|
|
+ (CGRect)photoContainerFrameForParentViewFrame:(CGRect)parentViewFrame toolbarLandscapeSize:(CGFloat)toolbarLandscapeSize orientation:(UIInterfaceOrientation)orientation panelSize:(CGFloat)panelSize hasOnScreenNavigation:(bool)hasOnScreenNavigation;
|
|
|
|
+ (TGPhotoEditorTab)highlightedButtonsForEditorValues:(id<TGMediaEditAdjustments>)editorValues forAvatar:(bool)forAvatar;
|
|
|
|
@end
|
|
|
|
extern const CGFloat TGPhotoEditorPanelSize;
|
|
extern const CGFloat TGPhotoEditorToolbarSize;
|