KMPDFMergeFileNameTabelViewCell.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // KMPDFMergeFileNameTabelViewCell.h
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2023/2/23.
  6. //
  7. #import <Cocoa/Cocoa.h>
  8. #import "KMFileAttribute.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface KMPDFMergeFileNameTabelViewCell : NSTableCellView
  11. @property (nonatomic, strong, readonly) NSTextField *numberLabel;
  12. @property (nonatomic, strong, readonly) NSImageView *iconImageView;
  13. @property (nonatomic, strong, readonly) NSTextField *fileNameLabel;
  14. @property (nonatomic, strong, readonly) NSTextField *pageNumberLabel;
  15. @end
  16. @interface KMPDFMergePageRangeTabelViewCell : NSTableCellView
  17. @property (nonatomic, assign) NSInteger pageCount;
  18. @property (nonatomic, copy) void(^callback)(NSInteger index);
  19. @property (nonatomic, copy) void(^textDidChange)(NSString *string);
  20. @property (nonatomic, copy) void(^textDidEndEdit)(NSString *string, KMPDFMergePageRangeTabelViewCell *pageRangeCell);
  21. - (void)updatePageRange:(KMPDFSelectPageStringType)pageRange pageStrings:(NSString *)pageStrings;
  22. - (void)updatePageRange:(KMPDFSelectPageStringType)pageRange pageStrings:(NSString *)pageStrings isFirstResponser:(BOOL)isFirstResponser;
  23. - (void)updateRageRangeState:(NSInteger)state;
  24. @end
  25. @interface KMPDFMergeSizeTabelViewCell : NSTableCellView
  26. @property (nonatomic, strong, readonly) NSTextField *label;
  27. @property (nonatomic, strong, readonly) NSButton *button;
  28. @property (nonatomic, copy) void(^callback)(void);
  29. @end
  30. NS_ASSUME_NONNULL_END