KMBlankView.h 1014 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // KMBlankView.h
  3. // PDF Reader Pro Edition
  4. //
  5. // Created by zhipeng jiang on 2020/12/23.
  6. //
  7. #import <Cocoa/Cocoa.h>
  8. #import "KMPDFEditAppendCustomView.h"
  9. typedef NS_ENUM(NSUInteger, KMBlankViewMouseEventType) {
  10. KMBlankViewMouseEventType_MouseEnter,
  11. KMBlankViewMouseEventType_MouseExit,
  12. KMBlankViewMouseEventType_MouseDown,
  13. KMBlankViewMouseEventType_MouseUp
  14. };
  15. NS_ASSUME_NONNULL_BEGIN
  16. typedef void(^DragSuccessCallBack)(NSMutableArray *fileNames);
  17. @interface KMBlankView : NSView
  18. @property (nonatomic,assign) IBOutlet NSTextField *titleLabel;
  19. @property (nonatomic,assign) IBOutlet NSTextField *secondTitleLabel;
  20. @property (nonatomic,assign) IBOutlet NSImageView *imageView;
  21. @property (assign) IBOutlet KMPDFEditAppendCustomView *customView;
  22. @property (nonatomic, strong) NSArray *allowedFileTypes;
  23. @property (nonatomic, copy) void(^mouseActionCallBack)(KMBlankViewMouseEventType mouseType);
  24. @property(nonatomic , copy) DragSuccessCallBack dragSuccessBlock;
  25. @end
  26. NS_ASSUME_NONNULL_END