Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4a0a3c37d2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 67 lines (56 sloc) 2.472 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
//
// MainWindowController.h
// Viva
//
// Created by Daniel Kennett on 3/14/11.
// For license information, see LICENSE.markdown
//

#import <Cocoa/Cocoa.h>
#import "FooterViewController.h"
#import "VivaURLNavigationController.h"
#import "LiveSearch.h"
#import "MainWindowSidebarController.h"
#import "SPBackgroundColorView.h"
#import "VivaInternalURLManager.h"

@interface MainWindowController : NSWindowController <NSSplitViewDelegate, VivaPlaybackManagerDataSource, NSPopoverDelegate, NSTextFieldDelegate> {
@private
    
NSView *__weak footerViewContainer;
FooterViewController *footerViewController;
NSSplitView *__weak splitView;
SPBackgroundColorView *__weak sourceListBackgroundColorView;
NSBox *__weak contentBox;
MainWindowSidebarController *__weak sidebarController;
NSViewController <VivaViewController> *currentViewController;
VivaURLNavigationController *navigationController;
NSOutlineView *__weak sourceList;
NSPopover *searchPopover;
NSSearchField *__weak searchField;
LiveSearch *liveSearch;

NSWindow *__unsafe_unretained urlSheet;
NSTextField *__weak urlField;
NSTextField *__weak invalidURLWarningLabel;
}

@property (weak) IBOutlet NSSplitView *splitView;
@property (weak) IBOutlet SPBackgroundColorView *sourceListBackgroundColorView;
@property (weak) IBOutlet NSView *footerViewContainer;
@property (weak) IBOutlet NSBox *contentBox;
@property (weak) IBOutlet MainWindowSidebarController *sidebarController;
@property (nonatomic, strong, readonly) NSViewController <VivaViewController> *currentViewController;
@property (nonatomic, strong, readonly) FooterViewController *footerViewController;
@property (nonatomic, strong, readonly) VivaURLNavigationController *navigationController;
@property (weak) IBOutlet NSOutlineView *sourceList;
@property (strong) IBOutlet NSPopover *searchPopover;
@property (weak) IBOutlet NSSearchField *searchField;

@property (unsafe_unretained) IBOutlet NSWindow *urlSheet;
@property (weak) IBOutlet NSTextField *urlField;
@property (weak) IBOutlet NSTextField *invalidURLWarningLabel;

@property (readwrite, nonatomic, strong) LiveSearch *liveSearch;

-(void)navigateToURL:(NSURL *)aURL withContext:(id)context;

- (IBAction)showOpenURLSheet:(id)sender;
- (IBAction)openURL:(id)sender;
- (IBAction)cancelOpenURL:(id)sender;
- (IBAction)navigateForward:(id)sender;
- (IBAction)navigateBackward:(id)sender;
- (IBAction)performSearch:(id)sender;
- (IBAction)accountButtonClicked:(id)sender;

@end
Something went wrong with that request. Please try again.