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-29 12:54:52 -07:00
|
|
|
@class ASIHTTPRequest;
|
2010-06-25 18:36:01 -04:00
|
|
|
|
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;
|
2012-07-12 13:34:41 -07:00
|
|
|
UIView *innerView;
|
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;
|
2012-06-29 21:15:43 -07:00
|
|
|
UIBarButtonItem *toggleViewButton;
|
2011-09-05 22:06:31 -07:00
|
|
|
UIActivityIndicatorView *loadingIndicator;
|
2012-07-03 17:54:36 -07:00
|
|
|
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;
|
2012-07-12 13:34:41 -07:00
|
|
|
@property (retain, nonatomic) IBOutlet UIView *innerView;
|
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;
|
2012-06-29 21:15:43 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem *toggleViewButton;
|
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;
|
2012-06-28 13:24:40 -07:00
|
|
|
@property (retain, nonatomic) IBOutlet UIBarButtonItem *buttonNextStory;
|
2012-06-18 14:31:42 -07:00
|
|
|
|
2011-07-25 09:08:20 -07:00
|
|
|
- (void)setNextPreviousButtons;
|
2010-11-22 10:44:52 -05:00
|
|
|
- (void)markStoryAsRead;
|
2012-06-29 21:15:43 -07:00
|
|
|
- (void)toggleView;
|
2010-11-22 10:44:52 -05:00
|
|
|
- (void)showStory;
|
2012-07-12 13:34:41 -07:00
|
|
|
- (void)scrolltoBottom;
|
2010-11-13 18:32:43 -05:00
|
|
|
- (void)showOriginalSubview:(id)sender;
|
2011-06-14 10:35:33 -04:00
|
|
|
- (IBAction)doNextUnreadStory;
|
2012-06-28 13:24:40 -07:00
|
|
|
- (IBAction)doNextStory;
|
2011-06-14 10:35:33 -04:00
|
|
|
- (IBAction)doPreviousStory;
|
2012-06-27 21:28:04 -07:00
|
|
|
- (void)changeWebViewWidth:(int)width;
|
2012-07-03 17:54:36 -07:00
|
|
|
- (void)showUserProfile:(NSString *)userId xCoordinate:(int)x yCoordinate:(int)y width:(int)width height:(int)height;
|
2012-07-10 12:34:58 -07:00
|
|
|
- (void)initStory;
|
2012-06-24 18:17:22 -07:00
|
|
|
|
2012-06-25 20:28:07 -07:00
|
|
|
- (void)refreshComments;
|
2012-06-29 12:54:52 -07:00
|
|
|
- (void)finishMarkAsRead:(ASIHTTPRequest *)request;
|
|
|
|
- (void)requestFailed:(ASIHTTPRequest *)request;
|
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-26 23:12:54 -07:00
|
|
|
- (void)changeFontSize:(NSString *)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
|