/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Apache Public License
 * Please see the LICENSE included with this distribution for details.
 * 
 * WARNING: This is generated code. Modify at your own risk and without support.
 */
#import "TiBase.h"

#ifdef USE_TI_UIIPADSPLITWINDOW
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
#import <Foundation/Foundation.h>
#import "TiRootController.h"
#import "TiRootViewController.h"
#import "TiViewController.h"

@class TiUIiPadSplitWindowProxy;

@interface TiSplitViewController : UISplitViewController<TiRootController> {
	TiRootViewController* _logintutorialpart1Root; // Need to hold onto this so we can handle orientations properly
	TiViewController* master;
	TiViewController* detail;
	
	TiUIiPadSplitWindowProxy* proxy;
	
	BOOL	allowedOrientations[MAX_ORIENTATIONS];
	NSTimeInterval	orientationRequestTimes[MAX_ORIENTATIONS];
	UIInterfaceOrientation lastOrientation;
}
@property(nonatomic,assign) TiUIiPadSplitWindowProxy* proxy;
@property(nonatomic,readonly) TiViewController* master;
@property(nonatomic,readonly) TiViewController* detail;

-(id)initWithRootController:(TiRootViewController*)rootController 
				masterProxy:(TiViewProxy*)master_ 
				detailProxy:(TiViewProxy*)detail_ 
				 splitProxy:(TiUIiPadSplitWindowProxy*)split_;
-(void)setOrientationModes:(NSArray*)modes;

// Internal

-(void)enforceOrientationModesFromWindow:(TiWindowProxy *)newCurrentWindow rotate:(BOOL)yn;

@end

#endif
#endif