2020-11-14 08:25:38 -08:00
|
|
|
/* All Rights reserved */
|
|
|
|
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
#include "BrowserWindowController.h"
|
2020-11-17 12:14:34 -08:00
|
|
|
#include "PlotView.h"
|
2020-11-14 08:25:38 -08:00
|
|
|
|
|
|
|
@implementation BrowserWindowController
|
|
|
|
|
2020-11-17 12:14:34 -08:00
|
|
|
-(id)initWithBrowser: (struct browser_window*)aBrowser {
|
|
|
|
if ((self = [super initWithWindowNibName: @"Browser"])) {
|
|
|
|
browser = aBrowser;
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
-(void)awakeFromNib {
|
|
|
|
PlotView *plotView = [[PlotView alloc] initWithFrame: NSMakeRect(0, 0, 1000, 1000)];
|
|
|
|
[plotView setBrowser: browser];
|
|
|
|
[[scrollView contentView] addSubview: plotView];
|
2020-11-14 08:25:38 -08:00
|
|
|
NSLog(@"Browser window loaded");
|
|
|
|
}
|
|
|
|
|
2020-11-14 13:45:05 -08:00
|
|
|
-(id)back: (id)sender {
|
|
|
|
NSLog(@"Browser backward");
|
|
|
|
}
|
|
|
|
|
|
|
|
-(id)forward: (id)sender {
|
|
|
|
NSLog(@"Browser forward");
|
|
|
|
}
|
|
|
|
|
2020-11-14 08:25:38 -08:00
|
|
|
@end
|