]> granicus.if.org Git - graphviz/commitdiff
Mac tweak panel for graph, default node and default edge attributes; objects are...
authorglenlow <devnull@localhost>
Mon, 11 Feb 2008 12:34:07 +0000 (12:34 +0000)
committerglenlow <devnull@localhost>
Mon, 11 Feb 2008 12:34:07 +0000 (12:34 +0000)
macosx/GVApplicationDelegate.h [new file with mode: 0644]
macosx/GVApplicationDelegate.m [new file with mode: 0644]

diff --git a/macosx/GVApplicationDelegate.h b/macosx/GVApplicationDelegate.h
new file mode 100644 (file)
index 0000000..30921b1
--- /dev/null
@@ -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 <Cocoa/Cocoa.h>
+
+@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 (file)
index 0000000..dd09eed
--- /dev/null
@@ -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