2010-11-13 18:32:43 -05:00
|
|
|
//
|
|
|
|
// OriginalStoryViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 11/13/10.
|
|
|
|
// Copyright 2010 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2011-10-27 09:44:58 -07:00
|
|
|
#import "BaseViewController.h"
|
2010-11-13 18:32:43 -05:00
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
|
|
|
|
2011-08-14 00:16:25 -07:00
|
|
|
static const CGFloat kNavBarHeight = 58.0f;
|
2011-07-15 17:51:22 -07:00
|
|
|
static const CGFloat kLabelHeight = 18.0f;
|
2011-08-14 00:16:25 -07:00
|
|
|
static const CGFloat kMargin = 6.0f;
|
2011-07-15 17:51:22 -07:00
|
|
|
static const CGFloat kSpacer = 2.0f;
|
|
|
|
static const CGFloat kLabelFontSize = 12.0f;
|
2011-08-14 00:16:25 -07:00
|
|
|
static const CGFloat kAddressHeight = 30.0f;
|
2013-09-24 17:18:20 -07:00
|
|
|
static const CGFloat kButtonWidth = 68.0f;
|
2011-07-15 17:51:22 -07:00
|
|
|
|
2011-10-27 09:44:58 -07:00
|
|
|
@interface OriginalStoryViewController : BaseViewController
|
2011-11-03 09:19:24 -07:00
|
|
|
<UIActionSheetDelegate, UITextFieldDelegate, UIWebViewDelegate> {
|
2010-11-13 18:32:43 -05:00
|
|
|
|
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
|
|
|
IBOutlet UIBarButtonItem * closeButton;
|
|
|
|
UIWebView *webView;
|
2011-07-14 19:57:49 -07:00
|
|
|
|
|
|
|
UIBarButtonItem* back;
|
|
|
|
UIBarButtonItem* forward;
|
|
|
|
UIBarButtonItem* refresh;
|
|
|
|
UIBarButtonItem* pageAction;
|
2011-07-15 17:51:22 -07:00
|
|
|
UILabel *pageTitle;
|
|
|
|
UITextField *pageUrl;
|
2011-07-20 21:08:57 -07:00
|
|
|
UIToolbar *toolbar;
|
2010-11-13 18:32:43 -05:00
|
|
|
}
|
|
|
|
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
2013-09-25 10:47:35 -07:00
|
|
|
@property (nonatomic) IBOutlet UIView *navBar;
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *closeButton;
|
|
|
|
@property (nonatomic) IBOutlet UIWebView *webView;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem* back;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem* forward;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem* refresh;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem* pageAction;
|
|
|
|
@property (nonatomic) IBOutlet UILabel *pageTitle;
|
|
|
|
@property (nonatomic) IBOutlet UITextField *pageUrl;
|
|
|
|
@property (nonatomic) IBOutlet UIToolbar *toolbar;
|
2010-11-13 18:32:43 -05:00
|
|
|
|
2013-09-25 10:47:35 -07:00
|
|
|
- (void)layoutNavBar;
|
2013-03-04 15:09:09 -08:00
|
|
|
- (void)layoutForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
|
2010-11-13 18:32:43 -05:00
|
|
|
- (IBAction) doCloseOriginalStoryViewController;
|
2013-09-07 02:35:47 -05:00
|
|
|
- (IBAction) doOpenActionSheet:(id)sender;
|
2011-08-16 19:55:44 -07:00
|
|
|
- (IBAction)loadAddress:(id)sender;
|
2013-03-04 15:09:09 -08:00
|
|
|
- (IBAction)webViewGoBack:(id)sender;
|
|
|
|
- (IBAction)webViewGoForward:(id)sender;
|
|
|
|
- (IBAction)webViewRefresh:(id)sender;
|
2011-07-15 17:51:22 -07:00
|
|
|
- (void)updateTitle:(UIWebView*)aWebView;
|
|
|
|
- (void)updateAddress:(NSURLRequest*)request;
|
2011-07-14 19:57:49 -07:00
|
|
|
- (void)updateButtons;
|
|
|
|
|
2010-11-13 18:32:43 -05:00
|
|
|
@end
|