GVWindowController.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at http://www.graphviz.org/
  9. *************************************************************************/
  10. #import <Foundation/Foundation.h>
  11. #import <AppKit/AppKit.h>
  12. #import <Quartz/Quartz.h>
  13. #if !defined(MAC_OS_X_VERSION_10_13) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13
  14. @protocol PDFViewDelegate <NSObject> @end
  15. #endif
  16. @interface GVWindowController : NSWindowController <NSUserInterfaceValidations, PDFViewDelegate>
  17. {
  18. IBOutlet PDFView *documentView;
  19. }
  20. - (id)init;
  21. - (void)setDocument: (NSDocument *)document;
  22. - (void)awakeFromNib;
  23. - (void)graphDocumentDidChange:(NSNotification*)notification;
  24. - (NSRect)windowWillUseStandardFrame:(NSWindow *)window defaultFrame:(NSRect)defaultFrame;
  25. - (IBAction)actualSizeView:(id)sender;
  26. - (IBAction)zoomInView:(id)sender;
  27. - (IBAction)zoomOutView:(id)sender;
  28. - (IBAction)zoomToFitView:(id)sender;
  29. - (IBAction)printGraphDocument:(id)sender;
  30. - (void)PDFViewWillClickOnLink:(PDFView *)sender withURL:(NSURL *)URL;
  31. - (BOOL)validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)anItem;
  32. - (void)dealloc;
  33. @end