//
//  AddTripViewController.h
//  DrivoMeter
//
//  Created by Mobi on 1/4/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FavoritesViewController.h"
 
@class Database;
@class CustomSegmentedControl;
@class Trip;
@class Favorite;
@interface AddTripViewController : UITableViewController <UITableViewDelegate, UITextFieldDelegate, FavoritesDelegate> {
  
  UITableViewCell *odometerCell_;
  UITableViewCell *distanceCell_;
  UITableViewCell *dateCell_;
  UIView *headerView_;
  UILabel *odometerLabel_;
  UILabel *distancelLabel_;
  UILabel *dateLabel_;
  UILabel *pickDateLabel_;
  UITextField *distanceField_;
  UITextField *odometerField_;
  CustomSegmentedControl *segmentedControl_;
  UIView *pickerView_;
  UIDatePicker *datePicker_;
  Database *database_;
  BOOL isBusiness_;
  UITextField *purposeField_;
  UITableViewCell *purposeCell_;
  UILabel *purposeLabel_;
  UIBarButtonItem *pickerDoneButton_;
  Favorite *selectedFavorite_;
}

@property (nonatomic, strong) IBOutlet UITableViewCell *odometerCell;
@property (nonatomic, strong) IBOutlet UITableViewCell *distanceCell;
@property (nonatomic, strong) IBOutlet UITableViewCell *dateCell;
@property (nonatomic, strong) IBOutlet UIView *headerView;
@property (nonatomic, strong) IBOutlet UILabel *odometerLabel;
@property (nonatomic, strong) IBOutlet UILabel *distanceLabel;
@property (nonatomic, strong) IBOutlet UILabel *dateLabel;
@property (nonatomic, strong) IBOutlet UILabel *pickDateLabel;
@property (nonatomic, strong) IBOutlet UITextField *distanceField;
@property (nonatomic, strong) IBOutlet UITextField *odometerField;
@property (nonatomic, strong) CustomSegmentedControl *segmentedControl;
@property (nonatomic, strong) IBOutlet UIView *pickerView;
@property (nonatomic, strong) IBOutlet UIDatePicker *datePicker;
@property (nonatomic, strong) Database *database;
@property (nonatomic) BOOL isBusiness;
@property (nonatomic, strong) IBOutlet UITextField *purposeField;
@property (nonatomic, strong) IBOutlet UITableViewCell *purposeCell;
@property (nonatomic, strong) IBOutlet UILabel *purposeLabel;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *pickerDoneButton;
@property (nonatomic, strong) Favorite *selectedFavorite;

- (IBAction)displayDate:(id)sender;
- (IBAction)pickerDoneButtonPressed:(id)sender;

@end
