//
//  GTOQuestionBaseViewController.h
//  total
//
//  Created by freecui on 15/10/16.
//  Copyright (c) 2015年 free. All rights reserved.
//

#import "ICRBaseViewController.h"
#import "ICRQuestionHelperView.h"
#import "ICRAttachmentView.h"
#import "JTImagePreviewer.h"
#import "IBTImagePicker.h"
#import "GTOQuestion.h"

#import "GTOAnswer.h"
#import "GTOAnswerDetail.h"
#import "GTOPioneering.h"
#import "GTOLicence.h"
#import "GTOMutiPhotosView.h"
#import "ICRPostAttachment.h"
@interface GTOQuestionBaseViewController : ICRBaseViewController
@property (strong, nonatomic) NSArray *m_arrOptions;

///
@property (strong, nonatomic) GTOAnswer *d_answer;
@property (assign, nonatomic) NSUInteger d_questionIndex;
@property (strong, nonatomic) GTOQuestion *d_question;
@property (strong, nonatomic) IBTUILabel *c_titleLabel;
@property (strong, nonatomic) ICRQuestionHelperView *c_helperView;
@property (strong, nonatomic) UIScrollView *c_contentScrollView;
@property (strong, nonatomic) GTOPioneering *d_pioneering;
@property (strong, nonatomic) GTOLicence *d_licence;
@property (assign, nonatomic) BOOL d_notEdit;
@property (strong, nonatomic) GTOMutiPhotosView *c_mutiPhotosV;

@property (assign, nonatomic) NSInteger testIndex;


- (instancetype)initWithQuestion:(GTOQuestion *)question answer:(GTOAnswer *)answer;
- (instancetype)initWithQuestion:(GTOQuestion *)question;

- (void)initScrollViewWithRect:(CGRect)rect;

- (void)onNextBtnAction:(__unused id)sender;    //下一项

- (void)onBeforeBtnAction:(__unused id)sender;  //上一项
- (void)onLastBtnAction:(__unused id)sender;
- (void)sureSelectionClicked:(UIButton *)btn;
- (void)setupDefaultAnswer;

- (void)openResultView;
@end
