HomerModelDetailHeaderCell.h 3.7 KB

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