From 008a6cdf406e04d54637ca9a4e5e3bb7afc2cd0e Mon Sep 17 00:00:00 2001 From: glenlow Date: Mon, 11 Feb 2008 12:34:07 +0000 Subject: [PATCH] Mac tweak panel for graph, default node and default edge attributes; objects are graph-centric instead of context-centric --- macosx/GVApplicationDelegate.h | 27 +++++++++++++++++++++++++++ macosx/GVApplicationDelegate.m | 29 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 macosx/GVApplicationDelegate.h create mode 100644 macosx/GVApplicationDelegate.m diff --git a/macosx/GVApplicationDelegate.h b/macosx/GVApplicationDelegate.h new file mode 100644 index 000000000..30921b10a --- /dev/null +++ b/macosx/GVApplicationDelegate.h @@ -0,0 +1,27 @@ +/* $Id$ $Revision$ */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2008 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#import + +@class GVAttributeInspectorController; + +@interface GVApplicationDelegate : NSObject { + GVAttributeInspectorController *_attributeInspectorController; +} + +- (IBAction)showAttributeInspector:(id)sender; + +@end diff --git a/macosx/GVApplicationDelegate.m b/macosx/GVApplicationDelegate.m new file mode 100644 index 000000000..dd09eed08 --- /dev/null +++ b/macosx/GVApplicationDelegate.m @@ -0,0 +1,29 @@ +/* $Id$ $Revision$ */ +/* vim:set shiftwidth=4 ts=8: */ + +/********************************************************** +* This software is part of the graphviz package * +* http://www.graphviz.org/ * +* * +* Copyright (c) 1994-2008 AT&T Corp. * +* and is licensed under the * +* Common Public License, Version 1.0 * +* by AT&T Corp. * +* * +* Information and Software Systems Research * +* AT&T Research, Florham Park NJ * +**********************************************************/ + +#import "GVApplicationDelegate.h" +#import "GVAttributeInspectorController.h" + +@implementation GVApplicationDelegate + +- (IBAction)showAttributeInspector:(id)sender +{ + if (!_attributeInspectorController) + _attributeInspectorController = [[GVAttributeInspectorController alloc] init]; + [_attributeInspectorController showWindow:sender]; +} + +@end -- 2.40.0