cocoaTouch/OverlayViewController.h
author smxx
Sat, 10 Apr 2010 21:36:40 +0000
changeset 3333 560e2766c445
parent 3308 b6dcae4b6d2c
child 3347 5d0ac8197eb7
permissions -rw-r--r--
Frontend: * Hedgewars will now use a sub directory of "My Documents" like other games instead of "%userprofile%/.hedgewars" under Windows * Teams are now saved in ini format to allow easier addition of future stats/properties * Due to those changes old files/settings/teams will be ignored

//
//  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;
    CGFloat initialDistanceForPinching;
    CGPoint gestureStartPoint;
}

@property (nonatomic,retain) NSTimer *dimTimer;
@property (nonatomic,retain) id popoverController;
@property (nonatomic,retain) PopoverMenuViewController *popupMenu;

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

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

-(void) showPopover;
-(void) dismissPopover;
-(void) dimOverlay;
-(void) showMenuAfterwards;

@end