cocoaTouch/OverlayViewController.h
author koda
Sun, 16 May 2010 17:23:30 +0000
changeset 3463 23c50be687a9
parent 3364 e5403e2bf02c
child 3490 016b3172b645
permissions -rw-r--r--
update sdl functions to latest revision add a grayscale utility to uiimage implement a preliminary support for chatting revert rotation changes for engine lots of code cleanup restored main event loop in hwengine fix some sdl bindings

//
//  overlayViewController.h
//  HedgewarsMobile
//
//  Created by Vittorio on 16/03/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PopoverMenuViewController;

@interface OverlayViewController : UIViewController {
    NSTimer *dimTimer;
#ifdef __IPHONE_3_2
    UIPopoverController *popoverController;
#else
    id popoverController;
#endif
    PopoverMenuViewController *popupMenu;
    BOOL isPopoverVisible;
    
    UITextField *writeChatTextField;
    
    CGFloat initialDistanceForPinching;
    CGPoint gestureStartPoint;
}

@property (nonatomic,retain) id popoverController;
@property (nonatomic,retain) PopoverMenuViewController *popupMenu;
@property (nonatomic,retain) UITextField *writeChatTextField;

-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;

-(IBAction) buttonReleased:(id) sender;
-(IBAction) buttonPressed:(id) sender;

-(void) showPopover;
-(void) dismissPopover;
-(void) dimOverlay;
-(void) activateOverlay;
-(void) chatAppear;
-(void) chatDisappear;

@end