cocoaTouch/OverlayViewController.h
changeset 3308 b6dcae4b6d2c
parent 3305 91074496d5c9
child 3347 5d0ac8197eb7
equal deleted inserted replaced
3307:275af46392bd 3308:b6dcae4b6d2c
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
     7 //
     7 //
     8 
     8 
     9 #import <UIKit/UIKit.h>
     9 #import <UIKit/UIKit.h>
    10 
    10 
       
    11 @class PopoverMenuViewController;
    11 
    12 
    12 @interface OverlayViewController : UIViewController {
    13 @interface OverlayViewController : UIViewController {
    13     NSTimer *dimTimer;
    14     NSTimer *dimTimer;
    14     id menuPopover;     //UIPopoverController
    15 #ifdef __IPHONE_3_2
    15     
    16     UIPopoverController *popoverController;
       
    17 #else
       
    18     id popoverController;
       
    19 #endif
       
    20     PopoverMenuViewController *popupMenu;
       
    21 
       
    22     BOOL isPopoverVisible;
    16     CGFloat initialDistanceForPinching;
    23     CGFloat initialDistanceForPinching;
    17     CGPoint gestureStartPoint;
    24     CGPoint gestureStartPoint;
    18     BOOL popoverVisible;
       
    19 }
    25 }
    20 
    26 
    21 @property (nonatomic,retain) NSTimer *dimTimer;
    27 @property (nonatomic,retain) NSTimer *dimTimer;
    22 @property (nonatomic,retain) id menuPopover;
    28 @property (nonatomic,retain) id popoverController;
       
    29 @property (nonatomic,retain) PopoverMenuViewController *popupMenu;
    23 
    30 
    24 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    31 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    25 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    32 -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    26 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    33 -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    27 
    34 
    28 -(IBAction) buttonReleased:(id) sender;
    35 -(IBAction) buttonReleased:(id) sender;
    29 -(IBAction) buttonPressed:(id) sender;
    36 -(IBAction) buttonPressed:(id) sender;
    30 -(IBAction) showPopover;
       
    31 
    37 
       
    38 -(void) showPopover;
       
    39 -(void) dismissPopover;
    32 -(void) dimOverlay;
    40 -(void) dimOverlay;
    33 -(void) showMenuAfterwards;
    41 -(void) showMenuAfterwards;
    34 
    42 
    35 @end
    43 @end