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