GVAttributeInspectorController.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 <WebKit/WebKit.h>
  13. @class GVAttributeSchema;
  14. @class GVDocument;
  15. @class GVGraphDefaultAttributes;
  16. @interface GVAttributeInspectorController : NSWindowController {
  17. IBOutlet NSToolbar *componentToolbar;
  18. IBOutlet NSToolbarItem *graphToolbarItem;
  19. IBOutlet NSToolbarItem *nodeDefaultToolbarItem;
  20. IBOutlet NSToolbarItem *edgeDefaultToolbarItem;
  21. IBOutlet NSTableView *attributeTable;
  22. IBOutlet WebView *documentationWeb;
  23. // 'NSDictionary<NSToolbarItemIdentifier, NSArray<GVAttributeSchema *> *>'
  24. __GENERICS(NSDictionary, NSToolbarItemIdentifier, __GENERICS(NSArray, GVAttributeSchema *) *) *_allSchemas;
  25. // 'NSMutableDictionary<NSToolbarItemIdentifier, GVGraphDefaultAttributes *>'
  26. __GENERICS(NSMutableDictionary, NSToolbarItemIdentifier, GVGraphDefaultAttributes *) *_allAttributes;
  27. GVDocument *_inspectedDocument;
  28. BOOL _otherChangedGraph;
  29. }
  30. - (id)init;
  31. - (void)awakeFromNib;
  32. /* notifications */
  33. - (IBAction)toolbarItemDidSelect:(id)sender;
  34. - (void)graphWindowDidBecomeMain:(NSNotification *)notification;
  35. - (void)graphDocumentDidChange:(NSNotification *)notification;
  36. - (void)reloadAttributes;
  37. /* toolbar delegate methods */
  38. - (NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar;
  39. /* table delegate methods */
  40. - (NSCell *)tableView:(NSTableView *)tableView dataCellForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row;
  41. - (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
  42. /* table data source methods */
  43. - (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
  44. - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)rowIndex;
  45. - (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)rowIndex;
  46. - (void)dealloc;
  47. @end