//
//  ColorSelect.h
//  ZeroRec
//
//  Created by AIG-Soft on 11/03/25.
//  Copyright 2011 AIG-Soft. All rights reserved.
//

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

@class ColorSelect;

@protocol ColorSelectDelegate <NSObject>
@optional
-(void)AtColorSelectClose:(ColorSelect *)colorSelect;

@end

enum { // 選択桁位置
	COLUMN_POSITION=0,
	COLUMN_COLOR,
	//
	MAX_COLUMN	// 桁数
};

@interface ColorSelect : UIViewController
<UIPickerViewDelegate,UIPickerViewDataSource>
{
	// 色要素
	NSArray *positionArray;
}
@property (nonatomic,weak) id <ColorSelectDelegate> delegate;
// 選択値保存用
@property (nonatomic) NSUInteger position;
@property (nonatomic) NSUInteger color;
@property (nonatomic,weak) IBOutlet	UIPickerView	*pickerView;	// pickerのための画面は1つにまとめ、sourceとその結果を入れる変数を分ける

- (void)initColorSelect:(NSUInteger)position color:(NSUInteger)col;

@end
