From bac3d27d19167d398cf9bcd1c6c282ad7a3199fe Mon Sep 17 00:00:00 2001 From: Johan Paulsson Date: Mon, 2 Dec 2013 11:48:35 -0800 Subject: osx gui: Cosmetic changes to preference window Added icons for the three tabs and moved the preamble to be default tab as that is likely to be the one most users will want to go to first. --- tikzit/src/osx/PreferenceController.m | 10 ++- tikzit/src/osx/Preferences.xib | 161 ++++++++-------------------------- 2 files changed, 44 insertions(+), 127 deletions(-) (limited to 'tikzit/src') diff --git a/tikzit/src/osx/PreferenceController.m b/tikzit/src/osx/PreferenceController.m index b08cbeb..ab992ed 100644 --- a/tikzit/src/osx/PreferenceController.m +++ b/tikzit/src/osx/PreferenceController.m @@ -82,19 +82,23 @@ } - (void)awakeFromNib { - + [[self window] setContentSize:[generalView frame].size]; [[[self window] contentView] addSubview:generalView]; [[[self window] contentView] setWantsLayer:YES]; - + updateController = [[UpdatePreferenceController alloc] initWithNibName:@"UpdatePreferencePanel" bundle:nil]; [[updateController view] setFrame:[updateView frame]]; [[[self window] contentView] replaceSubview:updateView with:[updateController view]]; updateView = [updateController view]; - + [[preambleController view] setFrame:[preambleView frame]]; [[[self window] contentView] replaceSubview:preambleView with:[preambleController view]]; preambleView = [preambleController view]; + + [[self window] setContentSize:[preambleView frame].size]; + [[[self window] contentView] addSubview:preambleView]; + currentViewTag = 3; } - (IBAction)switchView:(id)sender { diff --git a/tikzit/src/osx/Preferences.xib b/tikzit/src/osx/Preferences.xib index dc2e979..8247c8d 100644 --- a/tikzit/src/osx/Preferences.xib +++ b/tikzit/src/osx/Preferences.xib @@ -42,11 +42,11 @@ NSApplication - 15 + 7 2 {{196, 240}, {480, 270}} - 544735232 - Window + 544736256 + Preferences NSWindow @@ -64,13 +64,13 @@ 197F9408-AFB0-404B-B2B6-4DB1250B0A80 - Update - Update + Updates + Updates NSImage - NSUserAccounts + updates @@ -90,7 +90,7 @@ General - + NSImage NSPreferencesGeneral @@ -104,7 +104,7 @@ YES 0 - + A96DC4D4-2171-4D05-8C08-8D01B3829158 @@ -112,7 +112,10 @@ Preamble - + + NSImage + preamble + {0, 0} @@ -131,7 +134,10 @@ Engine - + + NSImage + engine + {0, 0} @@ -143,16 +149,15 @@ 0 - + - + - + - @@ -163,6 +168,7 @@ {480, 270} + {{0, 0}, {1680, 1028}} {10000000000000, 10000000000000} @@ -178,6 +184,7 @@ {{18, 15}, {214, 18}} + _NS:9 YES @@ -262,7 +269,7 @@ _NS:1535 - + 6 System controlColor @@ -271,7 +278,7 @@ MC42NjY2NjY2NjY3AA - + 6 System controlTextColor @@ -292,33 +299,11 @@ 268 - - - - 268 - {{214, 40}, {53, 17}} - - - _NS:1535 - YES - - 68157504 - 272630784 - General - - _NS:1535 - - - - - NO - 1 - - + {480, 96} - + _NS:9 NSView @@ -329,16 +314,18 @@ {480, 115} + _NS:9 NSView - + 12 {557, 354} + _NS:9 NSView @@ -408,7 +395,7 @@ switchView: - + 120 @@ -416,7 +403,7 @@ preambleView - + 121 @@ -508,7 +495,7 @@ - + @@ -654,43 +641,7 @@ 14 - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - NO - - - - 9 - 0 - - 9 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - NO - - - + @@ -706,29 +657,6 @@ - - 19 - - - - - - - - 20 - - - - - 28 - - - - - 29 - - - 30 @@ -808,12 +736,12 @@ 118 - + 119 - + @@ -840,20 +768,11 @@ com.apple.InterfaceBuilder.CocoaPlugin - - - - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -879,14 +798,6 @@ - - NSLayoutConstraint - NSObject - - IBProjectSource - ./Classes/NSLayoutConstraint.h - - PreferenceController NSWindowController @@ -948,7 +859,9 @@ {32, 32} {15, 15} - {32, 32} + {32, 32} + {32, 32} + {32, 32} YES -- cgit v1.2.3