Source

sage-iphone-app / Classes / RootViewController.h

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

#import "EditViewController.h"
#import "FlipsideViewController.h"
#import "AlephCell.h"
#import "ShareButtonDelegate.h"
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>


@interface RootViewController : UITableViewController <NSFetchedResultsControllerDelegate,
                                                       FlipsideViewControllerDelegate>
{
    AlephCell * copyAlephCell;
    // TODO: unfortunately there is no easy way to set colors in the settings
    UIColor * resultsColor;
    UIColor * staleResultsColor;

    ShareButtonDelegate *shareButtonDelegate;
    NSMutableDictionary * backgroundEditViews;

@private
    NSFetchedResultsController *fetchedResultsController_;
    NSManagedObjectContext *managedObjectContext_;
}

@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;
@property (readonly) ShareButtonDelegate *shareButtonDelegate;

- (void)insertNewObject;
- (void)insertNewObjectWithString:(id)initial_value inLanguage:(id)lang;
- (void)newCellWithDefault:(AlephCell*)initial_value;

- (void)editViewControllerDidFinish:(EditViewController *)controller nextDefault:(NSString*)str inLanguage:(NSString*)lang;
- (void)editAlephCell:(NSManagedObject*)selectedObject;
- (IBAction)showInfo:(id)sender;

- (void)didUpdateWithJSON:(NSNotification*)notification;

- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller;

- (ShareButtonDelegate*)shareButtonDelegate;

- (void)saveEditViewForBackground:(EditViewController*)controller;

@end