3547
|
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 |
UIActivityIndicatorView *spinningWheel;
|
|
26 |
}
|
|
27 |
|
|
28 |
@property (nonatomic,retain) id popoverController;
|
|
29 |
@property (nonatomic,retain) PopoverMenuViewController *popupMenu;
|
|
30 |
@property (nonatomic,retain) UITextField *writeChatTextField;
|
|
31 |
@property (nonatomic,retain) IBOutlet UIActivityIndicatorView *spinningWheel;
|
|
32 |
|
|
33 |
UIActivityIndicatorView *singleton;
|
|
34 |
BOOL canDim;
|
|
35 |
|
|
36 |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
|
|
37 |
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
|
|
38 |
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
|
|
39 |
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
|
|
40 |
|
|
41 |
-(IBAction) buttonReleased:(id) sender;
|
|
42 |
-(IBAction) buttonPressed:(id) sender;
|
|
43 |
|
|
44 |
-(void) showPopover;
|
|
45 |
-(void) dismissPopover;
|
|
46 |
-(void) dimOverlay;
|
|
47 |
-(void) activateOverlay;
|
|
48 |
-(void) chatAppear;
|
|
49 |
-(void) chatDisappear;
|
|
50 |
|
|
51 |
@end
|