cocoaTouch/OverlayViewController.h
changeset 3516 a8c673657b79
parent 3510 23145a950eae
parent 3515 3e8635f43972
child 3529 0e968ba12a84
equal deleted inserted replaced
3510:23145a950eae 3516:a8c673657b79
     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 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
       
    16     UIPopoverController *popoverController;
       
    17 #else
       
    18     id popoverController;
       
    19 #endif
       
    20     PopoverMenuViewController *popupMenu;
       
    21     BOOL isPopoverVisible;
       
    22     
       
    23     UITextField *writeChatTextField;
       
    24     
       
    25     CGFloat initialDistanceForPinching;
       
    26     CGPoint gestureStartPoint;
       
    27 }
       
    28 
       
    29 @property (nonatomic,retain) id popoverController;
       
    30 @property (nonatomic,retain) PopoverMenuViewController *popupMenu;
       
    31 @property (nonatomic,retain) UITextField *writeChatTextField;
       
    32 
       
    33 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
       
    34 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
       
    35 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
       
    36 -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
       
    37 
       
    38 -(IBAction) buttonReleased:(id) sender;
       
    39 -(IBAction) buttonPressed:(id) sender;
       
    40 
       
    41 -(void) showPopover;
       
    42 -(void) dismissPopover;
       
    43 -(void) dimOverlay;
       
    44 -(void) activateOverlay;
       
    45 -(void) chatAppear;
       
    46 -(void) chatDisappear;
       
    47 
       
    48 @end