#import <UIKit/UIKit.h>

// We can't import the CustomCamera class because it would make a circular reference, so "fake" the existence of the class like this:
@class CustomCameraTawsif, VerticalBar;

@interface CustomCameraTawsifViewController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIAccelerometerDelegate>
{
    
    
    IBOutlet UIButton *closeCameraButton;
    IBOutlet UIButton *captureCameraButton;
    IBOutlet UIButton *imageSourceButton;
    
    
//Section Portrait
    //Tilt display
    IBOutlet UILabel *vTiltLabelPortrait;
    IBOutlet UILabel *hTiltLabelPortrait;
    
    //Bubble Vertical
    IBOutlet UIView *bubbleVerticalPortrait;
    IBOutlet UIView *bubbleHorizontalPortrait;
    IBOutlet UIView *bubbleVerticalCoverPortrait;
    IBOutlet UIView *bubbleHorizontalCoverPortrait;
    
    CGPoint deltaVerticalPortrait;
    
    //Bubble Bar
    IBOutlet UIView *bubbleBarVerticalPortrait;
    IBOutlet UIView *bubbleBarHorizontalPortrait;
    CGPoint deltaHorizontalPortrait;
    
//Section Landscape
    
    //Bubble Bar
    IBOutlet UIView *bubbleBarVerticalLandscape;
    IBOutlet UIView *bubbleBarHorizontalLandscape;
    CGPoint deltaVerticalLandscape;
    CGPoint deltaHorizontalLandscape;
    
    //Bubble Vertical
    IBOutlet UIView *bubbleVerticalLandscape;
    IBOutlet UIView *bubbleHorizontalLandscape;
    IBOutlet UIView *bubbleVerticalCoverLandscape;
    IBOutlet UIView *bubbleHorizontalCoverLandscape;
    
    //Tilt display
    IBOutlet UILabel *vTiltLabelLandscape;
    IBOutlet UILabel *hTiltLabelLandscape;

    
}


@property float calibrationOffset;

// Capture method
-(IBAction) takePhotoButtonPressed:(id)sender forEvent:(UIEvent*)event;

//Close Camera Method
-(IBAction) closeCamera:(id)sender forEvent:(UIEvent*)event;

//Change Image Source Method
-(IBAction) changeImageSource:(id)sender forEvent:(UIEvent*)event;

// Declare some properties (to be explained soon)
@property (strong, nonatomic) CustomCameraTawsif* plugin;
@property (strong, nonatomic) UIImagePickerController* picker;

@end
