From 000084adfd36c87051fb7df912a00fca35365f4e Mon Sep 17 00:00:00 2001 From: Johan Paulsson Date: Mon, 2 Dec 2013 11:28:52 -0800 Subject: osx gui: Moved preamble window to preferences. Moved the preamble window to the preference panel as a new tab. The PreambleController is now a subclass of NSView with related changes to the Preamble.xib. The toolbar that controlled default or custom preamble has been replaced with buttons in the interface. --- tikzit/src/osx/AppDelegate.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tikzit/src/osx/AppDelegate.m') diff --git a/tikzit/src/osx/AppDelegate.m b/tikzit/src/osx/AppDelegate.m index affb95c..35484b7 100644 --- a/tikzit/src/osx/AppDelegate.m +++ b/tikzit/src/osx/AppDelegate.m @@ -49,7 +49,7 @@ NSString *preamblePlist = [supportDir stringByAppendingPathComponent:@"preambles.plist"]; preambleController = - [[PreambleController alloc] initWithWindowNibName:@"Preamble" + [[PreambleController alloc] initWithNibName:@"Preamble" plist:preamblePlist styles:[stylePaletteController nodeStyles] edges:[stylePaletteController edgeStyles]]; @@ -67,7 +67,7 @@ preambleController:preambleController tempDir:tempDir]; - preferenceController = [[PreferenceController alloc] initWithWindowNibName:@"Preferences"]; + preferenceController = [[PreferenceController alloc] initWithWindowNibName:@"Preferences" preambleController:preambleController]; // each application has one global preview controller [PreviewController setDefaultPreviewController:previewController]; -- cgit v1.2.3