WindowController.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // WindowController.h
  3. // MG
  4. //
  5. // Created by Tim Debo on 5/19/14.
  6. //
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import <WebKit/WebKit.h>
  10. #import "MacGap.h"
  11. @class WebViewDelegate;
  12. @interface WindowController : NSWindowController
  13. {
  14. IBOutlet WebView* webView;
  15. IBOutlet NSWindow* window;
  16. WebViewDelegate* webViewDelegate;
  17. JSContext* jsContext;
  18. }
  19. @property (nonatomic, readonly, strong) NSMutableDictionary* pluginObjects;
  20. @property (nonatomic, readonly, strong) NSDictionary* pluginsMap;
  21. @property (nonatomic, readonly, strong) NSMutableDictionary* settings;
  22. @property (strong) JSContext* jsContext;
  23. @property (retain) WebView* webView;
  24. @property (strong) IBOutlet NSMenu *mainMenu;
  25. @property (retain) WebViewDelegate* webViewDelegate;
  26. @property (retain) NSURL* url;
  27. @property (nonatomic, readonly) NSString* userAgent;
  28. - (id) initWithURL:(NSString *) url;
  29. - (id) initWithRequest: (NSURLRequest *)request;
  30. - (id)getCommandInstance:(NSString*)pluginName;
  31. //- (void)registerPlugin:(Plugin*)plugin withClassName:(NSString*)className;
  32. //- (void)registerPlugin:(Plugin*)plugin withPluginName:(NSString*)pluginName;
  33. - (void) setWindowParams;
  34. @end