StampTextCell.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // StampTextCell.h
  3. // PDFReader
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // The PDF Reader Sample applications are licensed with a modified BSD license.
  8. // Please see License for details. This notice may not be removed from this file.
  9. //
  10. #import <UIKit/UIKit.h>
  11. #import "StampPreview.h"
  12. typedef enum {
  13. CustomTextCellType_Text,
  14. CustomTextCellType_Color,
  15. CustomTextCellType_Date,
  16. CustomTextCellType_Time,
  17. CustomTextCellType_Preview
  18. }CustomTextCellType;
  19. @protocol StampTextCellDelegate <NSObject>
  20. @required
  21. - (void)switchValueChanged_Date:(id)sender;
  22. - (void)switchValueChanged_Time:(id)sender;
  23. - (void)textFieldWithText_Text:(id)sender;
  24. - (void)buttonItemClicked_Color:(id)sender;
  25. @end
  26. @interface StampTextCell : UITableViewCell <UITextFieldDelegate> {
  27. id <StampTextCellDelegate> _delegate;
  28. CustomTextCellType _cellType;
  29. UIButton *btnBlack;
  30. UIButton *btnGreen;
  31. UIButton *btnRed;
  32. UIButton *btnBlue;
  33. UIButton *leftGreen;
  34. UIButton *leftRed;
  35. UIButton *leftBlue;
  36. UIButton *rightGreen;
  37. UIButton *rightRed;
  38. UIButton *rightBlue;
  39. StampPreview *_preView;
  40. }
  41. @property (nonatomic,assign) id delegate;
  42. @property (nonatomic,assign) CustomTextCellType cellType;
  43. @property (nonatomic,retain) StampPreview *preView;
  44. @property (nonatomic,retain) UITextField *stampTextField;
  45. @property (nonatomic,retain) UISwitch *haveDateSwitch;
  46. @property (nonatomic,retain) UISwitch *haveTimeSwitch;
  47. - (void)setCellStyle:(CustomTextCellType)cellType label:(NSString *)label;
  48. - (void)preViewReDisplay;
  49. - (void)selectColor:(NSInteger)buttonColor;
  50. @end