NewsBlur/clients/ios/Classes/StoryDetailObjCViewController.h

100 lines
3.2 KiB
C
Raw Normal View History

//
// StoryDetailObjCViewController.h
// NewsBlur
//
// Created by Samuel Clay on 6/24/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "BaseViewController.h"
@import WebKit;
@class NewsBlurAppDelegate;
@interface StoryDetailObjCViewController : BaseViewController
<UIScrollViewDelegate, UIGestureRecognizerDelegate,
UIActionSheetDelegate, WKNavigationDelegate> {
NewsBlurAppDelegate *appDelegate;
NSString *activeStoryId;
NSMutableDictionary *activeStory;
UIView *innerView;
WKWebView *webView;
NSInteger pageIndex;
BOOL pullingScrollview;
BOOL inTextView;
BOOL inDoubleTap;
BOOL hasScrolled;
NSURL *activeLongPressUrl;
CGSize preRotateSize;
CGFloat scrollPct;
UIInterfaceOrientation _orientation;
}
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
@property (nonatomic) NSString *activeStoryId;
@property (nonatomic, readwrite) NSMutableDictionary *activeStory;
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet UIView *innerView;
@property (nonatomic) IBOutlet WKWebView *webView;
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet UIView *feedTitleGradient;
@property (nonatomic) IBOutlet UIView *noStoryMessage;
2016-01-07 21:12:58 -08:00
@property (nonatomic) IBOutlet UIActivityIndicatorView *activityIndicator;
@property (nonatomic, assign) BOOL pullingScrollview;
@property (nonatomic, assign) BOOL inTextView;
@property (nonatomic, assign) BOOL isRecentlyUnread;
@property (nonatomic) BOOL hasStory;
@property (nonatomic, readonly) BOOL isSinglePage;
@property NSInteger pageIndex;
2012-11-09 14:13:44 -08:00
@property (nonatomic) MBProgressHUD *storyHUD;
2012-11-08 17:39:32 -08:00
- (void)initStory;
- (void)hideNoStoryMessage;
2012-11-08 17:39:32 -08:00
- (void)drawStory;
2013-03-04 17:15:50 -08:00
- (void)drawStory:(BOOL)force withOrientation:(UIInterfaceOrientation)orientation;
2018-10-22 15:14:12 -07:00
- (void)updateStoryTheme;
- (void)drawFeedGradient;
2012-11-08 17:39:32 -08:00
- (void)showStory;
- (void)clearStory;
- (void)hideStory;
2012-07-26 13:54:45 -07:00
- (void)toggleLikeComment:(BOOL)likeComment;
- (void)flashCheckmarkHud:(NSString *)messageType;
- (void)scrolltoComment;
- (void)tryScrollingDown:(BOOL)down;
- (void)scrollPageDown:(id)sender;
- (void)scrollPageUp:(id)sender;
2012-11-07 17:54:16 -08:00
- (void)changeWebViewWidth;
- (void)showUserProfile:(NSString *)userId xCoordinate:(int)x yCoordinate:(int)y width:(int)width height:(int)height;
- (void)checkTryFeedStory;
- (void)setFontStyle:(NSString *)fontStyle;
- (void)changeFontSize:(NSString *)fontSize;
2014-05-15 18:06:56 -07:00
- (void)changeLineSpacing:(NSString *)lineSpacing;
- (void)refreshComments:(NSString *)replyId;
- (void)openShareDialog;
- (void)openTrainingDialog:(int)x yCoordinate:(int)y width:(int)width height:(int)height;
- (void)openUserTagsDialog:(int)x yCoordinate:(int)y width:(int)width height:(int)height;
- (void)subscribeToBlurblog;
- (void)setActiveStoryAtIndex:(NSInteger)activeStoryIndex;
- (NSString *)getHeader;
2012-08-07 11:27:00 -07:00
- (NSString *)getShareBar;
- (NSString *)getComments;
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-08-10 09:45:44 -07:00
- (NSString *)getAvatars:(NSString *)key;
- (void)refreshHeader;
- (void)refreshSideOptions;
- (CGPoint)pointForGesture:(UIGestureRecognizer *)gestureRecognizer;
- (void)showTextOrStoryView;
- (void)showStoryView;
2013-05-28 18:07:19 -07:00
- (void)fetchTextView;
@end