//
//  Barcode.h
//  dffghhhjj
//
//  Created by liangchenying on 12-4-7.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "POSSDK.h"

#define ButtonEnableAndAlpha(button, i, j)	[button setEnabled:i];[button setAlpha:j];

@interface Barcode : UIViewController<UITextFieldDelegate>
 
@property (nonatomic, retain) NSMutableArray *array_ModuleWidth;
@property (nonatomic, retain) NSMutableArray *array_HriFontType;
@property (nonatomic, retain) NSMutableArray *array_HriPosition;
@property (nonatomic, retain) NSMutableArray *array_BarcodeType;
@property (nonatomic, retain) NSMutableArray *array_Code128CharacterSet;
@property (nonatomic, retain) NSMutableArray *array_CodabarBeginningCode;
@property (nonatomic, retain) NSMutableArray *array_CodabarEndingCode;

@property (nonatomic, assign) NSInteger selectedModuleWidth;
@property (nonatomic, assign) NSInteger selectedHriFontType;
@property (nonatomic, assign) NSInteger selectedHriPosition;
@property (nonatomic, assign) NSInteger selectedBarcodeType;
@property (nonatomic, assign) NSInteger selectedCode128CharacterSet;
@property (nonatomic, assign) NSInteger selectedCodabarBeginningCode;
@property (nonatomic, assign) NSInteger selectedCodabarEndingCode;

@property (retain, nonatomic) IBOutlet UIButton *Back;
@property (retain, nonatomic) IBOutlet UITextField *BarcodeData;
@property (retain, nonatomic) IBOutlet UITextField *BarcodeHeight;
@property (retain, nonatomic) IBOutlet UIButton *BarcodePrit;
@property (retain, nonatomic) IBOutlet UIButton *ModuleWidthButton;
@property (retain, nonatomic) IBOutlet UIButton *HriFontTypeButton;
@property (retain, nonatomic) IBOutlet UIButton *HriPositionButton;
@property (retain, nonatomic) IBOutlet UIButton *BarcodeTypeButton;
@property (retain, nonatomic) IBOutlet UIButton *Cut;
@property (retain, nonatomic) IBOutlet UIButton *Code128CharacterSetButton;
@property (retain, nonatomic) IBOutlet UILabel *BarcodeType;
@property (retain, nonatomic) IBOutlet UILabel *Code128CharacterSet;
@property (retain, nonatomic) IBOutlet UILabel *CodabarBeginningCode;
@property (retain, nonatomic) IBOutlet UIButton *CodaBarBeginningCodeButton;
@property (retain, nonatomic) IBOutlet UILabel *CodabarEndingCode;
@property (retain, nonatomic) IBOutlet UIButton *CodaBarEndingCodeButton;

- (id)initWithNibNamePOSSDK:(NSString *)nibNameOrNil pos_sdk:(POSSDK*)pos_sdk bundle:(NSBundle *)nibBundleOrNil;

@end
