project_files/HedgewarsMobile/Classes/OverlayViewController.h
changeset 3547 02875b1145b7
parent 3546 ccf4854df294
child 3551 d4de36b3801a
equal deleted inserted replaced
3546:ccf4854df294 3547:02875b1145b7
       
     1 //
       
     2 //  overlayViewController.h
       
     3 //  HedgewarsMobile
       
     4 //
       
     5 //  Created by Vittorio on 16/03/10.
       
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
       
     7 //
       
     8 
       
     9 #import <UIKit/UIKit.h>
       
    10 
       
    11 @class PopoverMenuViewController;
       
    12 
       
    13 @interface OverlayViewController : UIViewController {
       
    14     NSTimer *dimTimer;
       
    15 
       
    16     // used only on the ipad
       
    17     UIPopoverController *popoverController;
       
    18 
       
    19     PopoverMenuViewController *popupMenu;
       
    20     BOOL isPopoverVisible;
       
    21     
       
    22     UITextField *writeChatTextField;
       
    23     
       
    24     CGFloat initialDistanceForPinching;
       
    25     CGPoint gestureStartPoint;
       
    26     UIActivityIndicatorView *spinningWheel;
       
    27 }
       
    28 
       
    29 @property (nonatomic,retain) id popoverController;
       
    30 @property (nonatomic,retain) PopoverMenuViewController *popupMenu;
       
    31 @property (nonatomic,retain) UITextField *writeChatTextField;
       
    32 @property (nonatomic,retain) IBOutlet UIActivityIndicatorView *spinningWheel;
       
    33 
       
    34 UIActivityIndicatorView *singleton;
       
    35 BOOL canDim;
       
    36 
       
    37 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
       
    38 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
       
    39 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
       
    40 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
       
    41 
       
    42 -(IBAction) buttonReleased:(id) sender;
       
    43 -(IBAction) buttonPressed:(id) sender;
       
    44 
       
    45 -(void) showPopover;
       
    46 -(void) dismissPopover;
       
    47 -(void) dimOverlay;
       
    48 -(void) activateOverlay;
       
    49 -(void) chatAppear;
       
    50 -(void) chatDisappear;
       
    51 
       
    52 @end