2010-06-25 18:36:01 -04:00
|
|
|
//
|
|
|
|
// StoryDetailViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 6/24/10.
|
|
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
|
|
|
|
2012-06-18 14:31:42 -07:00
|
|
|
@interface StoryDetailViewController : UIViewController <UIPopoverControllerDelegate> {
|
2010-06-25 18:36:01 -04:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
2011-08-14 00:16:25 -07:00
|
|
|
|
|
|
|
NSString *activeStoryId;
|
2011-07-26 08:37:10 -07:00
|
|
|
UIProgressView *progressView;
|
2010-06-27 19:35:17 -04:00
|
|
|
UIWebView *webView;
|
2011-02-13 19:01:01 -05:00
|
|
|
UIToolbar *toolbar;
|
|
|
|
UIBarButtonItem *buttonPrevious;
|
|
|
|
UIBarButtonItem *buttonNext;
|
2011-09-05 22:06:31 -07:00
|
|
|
UIBarButtonItem *activity;
|
|
|
|
UIActivityIndicatorView *loadingIndicator;
|
2012-06-18 14:31:42 -07:00
|
|
|
IBOutlet UIPopoverController *popoverController;
|
2010-06-25 18:36:01 -04:00
|
|
|
}
|
|
|
|
|
2012-06-20 07:39:49 -07:00
|
|
|
@property (nonatomic, retain) UIActivityIndicatorView *loadingIndicator;
|
|
|
|
@property (nonatomic, retain) IBOutlet NewsBlurAppDelegate *appDelegate;
|
2011-08-14 00:16:25 -07:00
|
|
|
@property (nonatomic, retain) NSString *activeStoryId;
|
2011-07-26 08:37:10 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIProgressView *progressView;
|
2010-06-27 19:35:17 -04:00
|
|
|
@property (nonatomic, retain) IBOutlet UIWebView *webView;
|
2011-02-13 19:01:01 -05:00
|
|
|
@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;
|
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonPrevious;
|
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonNext;
|
2011-09-05 22:06:31 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem *activity;
|
2011-12-01 18:39:35 -08:00
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonAction;
|
2011-10-30 20:24:12 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIView *feedTitleGradient;
|
2012-06-18 14:31:42 -07:00
|
|
|
@property (retain,nonatomic) UIPopoverController *popoverController;
|
|
|
|
|
2011-07-25 09:08:20 -07:00
|
|
|
- (void)setNextPreviousButtons;
|
2010-11-22 10:44:52 -05:00
|
|
|
- (void)markStoryAsRead;
|
|
|
|
- (void)showStory;
|
2010-11-13 18:32:43 -05:00
|
|
|
- (void)showOriginalSubview:(id)sender;
|
2011-06-14 10:35:33 -04:00
|
|
|
- (IBAction)doNextUnreadStory;
|
|
|
|
- (IBAction)doPreviousStory;
|
2012-06-24 18:17:22 -07:00
|
|
|
|
2012-06-25 20:28:07 -07:00
|
|
|
- (void)refreshComments;
|
2011-08-01 09:43:13 -07:00
|
|
|
- (void)markedAsRead;
|
2011-08-14 00:16:25 -07:00
|
|
|
- (void)setActiveStory;
|
2012-06-24 18:17:22 -07:00
|
|
|
- (IBAction)toggleFontSize:(id)sender;
|
|
|
|
- (void)setFontStyle:(NSString *)fontStyle;
|
2012-06-18 14:31:42 -07:00
|
|
|
- (void)setFontSize:(float)fontSize;
|
2012-06-22 15:53:51 -07:00
|
|
|
- (NSString *)getComments;
|
2012-06-25 20:28:07 -07:00
|
|
|
- (NSString *)getComment:(NSDictionary *)commentDict;
|
2012-06-22 18:01:08 -07:00
|
|
|
- (NSString *)getReplies:(NSArray *)replies;
|
2012-06-24 18:17:22 -07:00
|
|
|
- (NSString *)getAvatars:(BOOL)areFriends;
|
2012-06-22 18:01:08 -07:00
|
|
|
- (NSDictionary *)getUser:(int)user_id;
|
2010-11-13 18:32:43 -05:00
|
|
|
|
2010-06-25 18:36:01 -04:00
|
|
|
@end
|