project_files/HedgewarsMobile/Classes/OverlayViewController.h
changeset 3514 59dbd31e9953
parent 3513 f589230fa21b
child 3525 1d7b056ff866
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.h	Thu Jun 17 20:30:39 2010 +0200
@@ -0,0 +1,48 @@
+//
+//  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;
+#if __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