/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2010 by LoginTutorialPart1, 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.
 */
#if defined(USE_TI_UIIPADPOPOVER) || defined(USE_TI_UIIPADSPLITWINDOW)

#import "TiViewProxy.h"
#import "TiViewController.h"

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2

//The iPadPopoverProxy should be seen more as like a window or such, because
//The popover controller will contain the viewController, which has the view.
//If the view had the logic, you get some nasty dependency loops.
@interface TiUIiPadPopoverProxy : TiViewProxy<UIPopoverControllerDelegate> {
@private
	UIPopoverController *popoverController;
	UINavigationController *navigationController;
	TiViewController *viewController;
	
//We need to hold onto this information for whenever the status bar rotates.
	TiViewProxy *popoverView;
	CGRect popoverRect;
	BOOL animated;
	UIPopoverArrowDirection directions;
	
	BOOL isShowing;
}

//Because the Popover isn't meant to be placed in anywhere specific, 
@property(nonatomic,readonly) UIPopoverController *popoverController;
@property(nonatomic,readwrite,retain) TiViewController *viewController;


@property(nonatomic,readwrite,retain) TiViewProxy *popoverView;


-(UINavigationController *)navigationController;

-(void)updatePopover:(NSNotification *)notification;
-(void)updatePopoverNow;


@end

#endif

#endif