Source

sage-iphone-app / Classes / EditViewController.h

Full commit
//
//  EditViewController.h
//  iSage
//
//  Created by Ivan Andrus on 4/29/11.
//  Copyright 2011 Ivan Andrus. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShareButtonDelegate.h"


@interface EditViewController : UIViewController <UITextViewDelegate,
                                                  UIGestureRecognizerDelegate,
                                                  UIActionSheetDelegate>
{
    IBOutlet UIScrollView *scrollView;
    IBOutlet UITextView *inputView;
    IBOutlet UIWebView *outputView;
    IBOutlet UIView *keyboardAccessory;

    id delegate;
    NSManagedObject *selectedObject;
    UITextView *activeField;
    UIBarButtonItem *evalButton;
    UIBarButtonItem *newButton;
    UIBarButtonItem *shareButton;
    UIActionSheet *actionSheet;
    UILongPressGestureRecognizer *longPress;

    BOOL isFullScreenOutput;
    BOOL isLoaded;
    BOOL shouldLoad;
}

@property (nonatomic, retain) NSManagedObject *selectedObject;
@property (nonatomic, retain) id delegate;
@property (nonatomic, assign) IBOutlet UIView *keyboardAccessory;

- (void)registerForKeyboardNotifications;
- (void)updateImageSize;
- (void)updateOutput;
- (void)saveOutput:(NSString*)status;
- (void)updateToolbarForEvaluation:(BOOL)shouldEval;

// Keyboard Accessory Actions
- (IBAction)insertDelimiters:(id)sender;
- (IBAction)insertTab:(id)sender;
- (IBAction)insertCharacter:(id)sender;
- (IBAction)hideKeyboard:(id)sender;

// Button actions (added programattically, but they could be IB actions)
- (IBAction)eval:(id)sender;
- (IBAction)shareCell:(id)sender;
- (void)selectLanguage:(id)sender;
- (IBAction)newCell:(id)sender;
- (void)newCellWithDefault:(NSString*)str;
- (void)insertNewObjectWithString:(id)initial_value;


// Gesture actions (added programattically, but they could be IB actions)
- (IBAction)swipe:(id)sender;
- (IBAction)doubleSwipe:(id)sender;
- (void)twoTaps:(id)sender;


@end