//
//  tConsole2.h : tConsole2の拡張
//  X-BASIC'
//
//  Created by AIG-Soft(iMac) on 2012/09/15.
//  Copyright (c) 2012-15年 AIG-Soft. All rights reserved.
//

#import "tConsole.h"

//----------------------------------------------------------------------------------------------

@interface tConsole2 : tConsole
<
UITextFieldDelegate,
UITextInputTraits,
UIAlertViewDelegate,
UIActionSheetDelegate
>
{
	// 同時には1つしか使えない
	NSTimer			*waitTimer;
	// 入力監視用
	// キーボード表示制御
	CGRect		keyboardFrameEnd;	// 表示位置
	// タスク間データ受け渡し用
	NSInteger	keyType;
}
@property (nonatomic,strong) UITextField	*textField;
@property (nonatomic,strong) UIAlertView	*alertView;
@property (nonatomic,strong) UIActionSheet	*actionSheet;
@property (nonatomic) NSInteger	selectNo;		// selectMenu/2/picker共用
@property (nonatomic) BOOL	  finputDone;		// 入力が完了したかどうか
@property (nonatomic) BOOL	  ftimeWaitDone;	// wait()が終了したかどうか	v2.4
#define OBSERVE_FINPUTDONE	@"finputDone"
//
@property (nonatomic,strong) NSString	*defInput;	// titleにも使う
@property (nonatomic,strong) NSString	*message;
@property (nonatomic,strong) NSArray 	*menues;


-(void)init2;

-(void)input:(NSString *)defInput keyType:(UIKeyboardType)keyType;
-(void)input:(NSString *)defInput keyType:(UIKeyboardType)keyType placefolder:(NSString *)placefolder_;

-(void)selectMenu:( NSString *)title menu:(NSArray *)menues;
-(void)selectMenu:( NSString *)title menu:(NSArray *)menues message:(NSString *)message;
-(void)selectMenu2:(NSString *)title menu:(NSArray *)menues;

-(NSString *)waitUntilInputEnd;
-(void)waitUntilSelectEnd;

-(BOOL)waitTime:(NSTimeInterval)tm fwait:(BOOL)fwait;

@end

//----------------------------------------------------------------------------------------------
