KMAnnotationPropertiesViewController.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // KMAnnotationPropertiesViewController.h
  3. // SignFlow
  4. //
  5. // Created by wanjun on 2021/6/15.
  6. //
  7. #import <Cocoa/Cocoa.h>
  8. #import "CPDFListView.h"
  9. typedef NS_ENUM(NSInteger, KMOpenPropertiesType) {
  10. KMOpenPropertiesType_None = 0,
  11. KMOpenPropertiesType_PageDisplay,
  12. KMOpenPropertiesType_Stamp,
  13. KMOpenPropertiesType_Link,
  14. KMOpenPropertiesType_ListBox,
  15. KMOpenPropertiesType_ComboBox,
  16. KMOpenPropertiesType_Button
  17. };
  18. @class KMMainWindowController;
  19. @interface KMAnnotationPropertiesViewController : NSViewController
  20. @property (nonatomic, retain) NSArray *annotations;
  21. @property (nonatomic, assign) CAnnotationType annotationMode;
  22. @property (nonatomic, strong) CPDFListView *pdfView;
  23. @property (nonatomic, assign) BOOL isEmptyAnnotation;
  24. @property (nonatomic, assign) BOOL isContinuousAddStamp;
  25. @property (nonatomic, assign) KMOpenPropertiesType openPropertiesType;
  26. + (CGFloat)heightWithAnnotation:(CPDFAnnotation *)annotation;
  27. + (CGFloat)heightWithAnnotationMode:(CAnnotationType)annotationMode;
  28. @end