project_files/HedgewarsMobile/Classes/OverlayViewController.h
author koda
Sat, 26 Jun 2010 04:36:04 +0200
changeset 3551 d4de36b3801a
parent 3547 02875b1145b7
child 3629 86212d2b116a
permissions -rw-r--r--
moar zoom, fixed fort mode, other glitches but best of all, touch works fo' real

//
//  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;

    // used only on the ipad
    UIPopoverController *popoverController;

    PopoverMenuViewController *popupMenu;
    BOOL isPopoverVisible;
    
    UITextField *writeChatTextField;
    
    CGFloat initialDistanceForPinching;
    UIActivityIndicatorView *spinningWheel;
}

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

UIActivityIndicatorView *singleton;
BOOL canDim;

-(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