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>
|
2012-08-02 18:00:48 -07:00
|
|
|
#import "WEPopoverController.h"
|
2010-06-25 18:36:01 -04:00
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
2012-06-29 12:54:52 -07:00
|
|
|
@class ASIHTTPRequest;
|
2010-06-25 18:36:01 -04:00
|
|
|
|
2012-08-02 18:00:48 -07:00
|
|
|
@interface StoryDetailViewController : UIViewController
|
|
|
|
<UIPopoverControllerDelegate, WEPopoverControllerDelegate> {
|
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;
|
|
|
|
UIActivityIndicatorView *loadingIndicator;
|
2012-08-02 18:00:48 -07:00
|
|
|
WEPopoverController *popoverController;
|
2012-07-24 16:42:18 -07:00
|
|
|
UIToolbar *bottomPlaceholderToolbar;
|
2012-07-25 17:29:29 -07:00
|
|
|
UIBarButtonItem *buttonBack;
|
2012-08-02 18:00:48 -07:00
|
|
|
Class popoverClass;
|
2012-07-25 17:29:29 -07:00
|
|
|
|
2010-06-25 18:36:01 -04:00
|
|
|
}
|
|
|
|
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic, strong) UIActivityIndicatorView *loadingIndicator;
|
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
|
|
@property (nonatomic) NSString *activeStoryId;
|
|
|
|
@property (nonatomic) IBOutlet UIProgressView *progressView;
|
2012-07-26 20:13:03 -07:00
|
|
|
@property (strong, nonatomic) IBOutlet UIView *progressViewContainer;
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet UIView *innerView;
|
|
|
|
@property (nonatomic) IBOutlet UIWebView *webView;
|
|
|
|
@property (nonatomic) IBOutlet UIToolbar *toolbar;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *buttonPrevious;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *buttonNext;
|
2012-07-25 17:29:29 -07:00
|
|
|
@property (nonatomic) UIBarButtonItem *buttonBack;
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *activity;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *buttonAction;
|
|
|
|
@property (nonatomic) IBOutlet UIView *feedTitleGradient;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *buttonNextStory;
|
2012-08-02 18:00:48 -07:00
|
|
|
@property (nonatomic, strong) WEPopoverController *popoverController;
|
2012-07-24 16:42:18 -07:00
|
|
|
@property (nonatomic) IBOutlet UIToolbar *bottomPlaceholderToolbar;
|
2012-07-24 23:21:28 -07:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *fontSettingsButton;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *originalStoryButton;
|
2012-07-31 23:49:51 -07:00
|
|
|
@property (nonatomic) IBOutlet UILabel *noStorySelectedLabel;
|
2012-06-18 14:31:42 -07:00
|
|
|
|
2012-07-25 10:50:52 -07:00
|
|
|
|
2011-07-25 09:08:20 -07:00
|
|
|
- (void)setNextPreviousButtons;
|
2010-11-22 10:44:52 -05:00
|
|
|
- (void)markStoryAsRead;
|
2012-07-26 13:54:45 -07:00
|
|
|
- (void)toggleLikeComment:(BOOL)likeComment;
|
2010-11-22 10:44:52 -05:00
|
|
|
- (void)showStory;
|
2012-07-30 14:58:57 -07:00
|
|
|
- (void)scrolltoComment;
|
2012-07-28 23:31:12 -07:00
|
|
|
- (IBAction)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-07-25 10:50:52 -07:00
|
|
|
- (IBAction)tapProgressBar:(id)sender;
|
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-08-01 12:41:02 -07:00
|
|
|
- (void)clearStory;
|
2012-06-24 18:17:22 -07:00
|
|
|
|
2012-07-27 12:27:13 -07:00
|
|
|
- (void)showShareHUD;
|
2012-07-31 23:49:51 -07:00
|
|
|
- (void)showFindingStoryHUD;
|
2012-07-30 14:58:57 -07:00
|
|
|
- (void)refreshComments:(NSString *)replyId;
|
2012-06-29 12:54:52 -07:00
|
|
|
- (void)finishMarkAsRead:(ASIHTTPRequest *)request;
|
2012-07-26 13:54:45 -07:00
|
|
|
- (void)finishLikeComment:(ASIHTTPRequest *)request;
|
2012-06-29 12:54:52 -07:00
|
|
|
- (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-07-20 00:21:24 -07:00
|
|
|
- (NSString *)getComments:(NSString *)type;
|
2012-06-25 20:28:07 -07:00
|
|
|
- (NSString *)getComment:(NSDictionary *)commentDict;
|
2012-07-20 15:54:10 -07:00
|
|
|
- (NSString *)getReplies:(NSArray *)replies forUserId:(NSString *)commentUserId;
|
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;
|
2012-07-24 15:29:01 -07:00
|
|
|
- (void)transitionFromFeedDetail;
|
2010-11-13 18:32:43 -05:00
|
|
|
|
2010-06-25 18:36:01 -04:00
|
|
|
@end
|