HomerModelDetailHeaderCell.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. @interface HomerModelDetailHeaderCell : UITableViewCell<PhotoStackViewDataSource, PhotoStackViewDelegate,UIAlertViewDelegate,UITextFieldDelegate>
  15. {
  16. @private
  17. id <DetailHeaderCellDelegate> __weak celldelegate;
  18. }
  19. @property (weak, nonatomic) id <DetailHeaderCellDelegate> celldelegate;
  20. @property int cqty;
  21. @property int step;
  22. @property int quantity;
  23. @property (nonatomic, strong) NSArray *photos;
  24. @property (nonatomic, strong) NSDictionary *stack_contents;
  25. @property (nonatomic, strong) NSArray *urls;
  26. @property (nonatomic, strong) NSString *product_id;
  27. // Outlet View
  28. @property (strong, nonatomic) IBOutlet PhotoStackView *photoStack;
  29. @property (weak, nonatomic) IBOutlet UIPageControl *pageControl;
  30. @property (strong, nonatomic) IBOutlet RTLabel *descriptionRTLabel;
  31. @property (strong, nonatomic) IBOutlet UILabel *priceLabel;
  32. @property (strong, nonatomic) IBOutlet UILabel *count_Label;
  33. @property (strong, nonatomic) IBOutlet UILabel *incomingcount_Label;
  34. @property (strong, nonatomic) IBOutlet UIStepper *stepper;
  35. @property (strong, nonatomic) IBOutlet UITextField *quantity_text;
  36. @property (strong, nonatomic) IBOutlet UIButton *btnaddCart;
  37. @property (strong, nonatomic) IBOutlet UIButton *btnaddWish;
  38. @property (strong, nonatomic) IBOutlet UIButton *btnaddPortfolio;
  39. @property (strong, nonatomic) IBOutlet UIButton *btnNotifyMe;
  40. @property (strong, nonatomic) IBOutlet UILabel *eta_label;
  41. @property (strong, nonatomic) IBOutlet UILabel *incoming_stock_label;
  42. @property (strong, nonatomic) IBOutlet UILabel *etaval_label;
  43. @property (strong, nonatomic) IBOutlet UILabel *model_label;
  44. @property (strong, nonatomic) IBOutlet UILabel *cqyt_label;
  45. @property (strong, nonatomic) IBOutlet UIButton *introduceBtn;
  46. @property (strong, nonatomic) IBOutlet UIButton *descriptionBtn;
  47. @property (weak, nonatomic) IBOutlet YTPlayerView *playerView;
  48. @property (weak, nonatomic) IBOutlet UILabel *hmlg_stock_lb;
  49. @property (weak, nonatomic) IBOutlet UILabel *hmlg_stock_count_lb;
  50. @property (weak, nonatomic) IBOutlet UILabel *on_sale_lb;
  51. // nil view
  52. @property (nonatomic,strong) UIImageView *selector_imageView;
  53. @property (nonatomic,strong) UILabel *selector_nameLabel;
  54. @property (nonatomic,strong) UILabel *selector_valLabel;
  55. @property (nonatomic,strong) UILabel *selector_label;
  56. @property (nonatomic,strong) UILabel *property_nameLabel;
  57. @property (nonatomic,strong) UILabel *property_valLabel;
  58. @property (nonatomic,strong) UIButton *selector_Button;
  59. // block
  60. @property (nonatomic,copy) void(^notifyMeBlock)(void);
  61. @property (nonatomic,copy) void(^shopCartBlock)(UIImageView *imageView);
  62. @property (nonatomic,copy) void(^set_cqty)(int cqty);
  63. @property (nonatomic,copy) void(^set_update_data)(bool bupdate);
  64. @property (nonatomic,copy) void(^WatchlistBlock)(UIImageView *imageView);
  65. @property (nonatomic,copy) void(^PortfolioBlock)(UIImageView *imageView);
  66. @property (nonatomic,copy) void(^introduceBlock)(UIButton *sender);
  67. @property (nonatomic,copy) void(^descriptionBlock)(UIButton *sender);
  68. - (void)setup;
  69. - (void)AddPhoto :(UIImage*)photo ;
  70. - (void)Hide_selector:(bool) bhide;
  71. - (void)ClearPhotos;
  72. @end