HomerModelDetailHeaderCell.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // HomerModelDetailHeaderCell.h
  3. // iSales-HOMER
  4. //
  5. // Created by Jack on 2017/10/25.
  6. // Copyright © 2017年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "DetailHeaderCell.h"
  10. #import "PhotoStackView.h"
  11. #import "RTLabel.h"
  12. #import "NotificationNameCenter.h"
  13. #import "YTPlayerView.h"
  14. #import "MDHTMLLabel.h"
  15. @interface HomerModelDetailHeaderCell : UITableViewCell<PhotoStackViewDataSource, PhotoStackViewDelegate,UIAlertViewDelegate,UITextFieldDelegate>
  16. {
  17. @private
  18. id <DetailHeaderCellDelegate> __weak celldelegate;
  19. }
  20. @property (weak, nonatomic) id <DetailHeaderCellDelegate> celldelegate;
  21. @property int cqty;
  22. @property int step;
  23. @property int quantity;
  24. @property (nonatomic, strong) NSArray *photos;
  25. @property (nonatomic, strong) NSDictionary *stack_contents;
  26. @property (nonatomic, strong) NSArray *urls;
  27. @property (nonatomic, strong) NSString *product_id;
  28. // Outlet View
  29. @property (strong, nonatomic) IBOutlet PhotoStackView *photoStack;
  30. @property (weak, nonatomic) IBOutlet UIPageControl *pageControl;
  31. @property (strong, nonatomic) IBOutlet RTLabel *descriptionRTLabel;
  32. @property (strong, nonatomic) IBOutlet UILabel *priceLabel;
  33. @property (strong, nonatomic) IBOutlet UILabel *count_Label;
  34. @property (strong, nonatomic) IBOutlet UILabel *incomingcount_Label;
  35. @property (strong, nonatomic) IBOutlet UIStepper *stepper;
  36. @property (strong, nonatomic) IBOutlet UITextField *quantity_text;
  37. @property (strong, nonatomic) IBOutlet UIButton *btnaddCart;
  38. @property (strong, nonatomic) IBOutlet UIButton *btnaddWish;
  39. @property (strong, nonatomic) IBOutlet UIButton *btnaddPortfolio;
  40. @property (strong, nonatomic) IBOutlet UIButton *btnNotifyMe;
  41. @property (strong, nonatomic) IBOutlet UILabel *eta_label;
  42. @property (strong, nonatomic) IBOutlet UILabel *incoming_stock_label;
  43. @property (strong, nonatomic) IBOutlet UILabel *etaval_label;
  44. @property (strong, nonatomic) IBOutlet UILabel *model_label;
  45. @property (strong, nonatomic) IBOutlet UILabel *cqyt_label;
  46. @property (strong, nonatomic) IBOutlet UIButton *introduceBtn;
  47. @property (strong, nonatomic) IBOutlet UIButton *descriptionBtn;
  48. @property (weak, nonatomic) IBOutlet YTPlayerView *playerView;
  49. @property (weak, nonatomic) IBOutlet UILabel *hmlg_stock_lb;
  50. @property (weak, nonatomic) IBOutlet UILabel *hmlg_stock_count_lb;
  51. @property (weak, nonatomic) IBOutlet UILabel *on_sale_lb;
  52. // nil view
  53. @property (nonatomic,strong) UIImageView *selector_imageView;
  54. @property (nonatomic,strong) UILabel *selector_nameLabel;
  55. @property (nonatomic,strong) UILabel *selector_valLabel;
  56. @property (nonatomic,strong) UILabel *selector_label;
  57. @property (nonatomic,strong) UILabel *property_nameLabel;
  58. @property (nonatomic,strong) UILabel *property_valLabel;
  59. @property (nonatomic,strong) UIButton *selector_Button;
  60. // block
  61. @property (nonatomic,copy) void(^notifyMeBlock)(void);
  62. @property (nonatomic,copy) void(^shopCartBlock)(UIImageView *imageView);
  63. @property (nonatomic,copy) void(^set_cqty)(int cqty);
  64. @property (nonatomic,copy) void(^set_update_data)(bool bupdate);
  65. @property (nonatomic,copy) void(^WatchlistBlock)(UIImageView *imageView);
  66. @property (nonatomic,copy) void(^PortfolioBlock)(UIImageView *imageView);
  67. @property (nonatomic,copy) void(^introduceBlock)(UIButton *sender);
  68. @property (nonatomic,copy) void(^descriptionBlock)(UIButton *sender);
  69. - (void)setup;
  70. - (void)AddPhoto :(UIImage*)photo ;
  71. - (void)Hide_selector:(bool) bhide;
  72. - (void)ClearPhotos;
  73. -(void) generate_information;
  74. @property (weak, nonatomic) IBOutlet UILabel *informationLabel;
  75. @end