From e8084a205a097f06cd869292457bde691d311407 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 5 Feb 2009 20:35:30 -0500 Subject: [PATCH] Design the paths replacement interface * English.lproj/Preferences.xib: Design the paths panel * Source/PreferencesController.m: (showPreferencesWindow): Center the window before opening --- English.lproj/Preferences.xib | 398 +++++++++++++++++++++++++++++++-- Source/PreferencesController.m | 3 +- 2 files changed, 380 insertions(+), 21 deletions(-) diff --git a/English.lproj/Preferences.xib b/English.lproj/Preferences.xib index fefb73d..300f65b 100644 --- a/English.lproj/Preferences.xib +++ b/English.lproj/Preferences.xib @@ -8,8 +8,7 @@ 353.00 YES - - + YES @@ -78,7 +77,7 @@ YES 0 - + 7E7339A3-79C3-4087-B2F7-2479CFD10818 @@ -167,12 +166,12 @@ - + YES - + @@ -182,10 +181,9 @@ {3.40282e+38, 3.40282e+38} - + 256 {420, 120} - {{0, 0}, {1680, 1028}} {3.40282e+38, 3.40282e+38} @@ -209,6 +207,7 @@ 268 {{77, 80}, {86, 17}} + YES 68288064 @@ -224,7 +223,7 @@ 6 System controlColor - + 3 MC42NjY2NjY2OQA @@ -245,6 +244,7 @@ 268 {{168, 78}, {60, 22}} + YES -1804468671 @@ -257,7 +257,7 @@ 6 System textBackgroundColor - + 3 MQA @@ -275,6 +275,7 @@ 268 {{55, 48}, {108, 17}} + YES 68288064 @@ -291,6 +292,7 @@ 268 {{168, 46}, {210, 22}} + YES -1804468671 @@ -308,6 +310,7 @@ 268 {{17, 10}, {387, 28}} + YES 67239424 @@ -326,12 +329,240 @@ {420, 120} + NSView - - + + 268 - {163, 96} + + YES + + + 268 + + YES + + + 2304 + + YES + + + 256 + {427, 175} + + YES + + + 256 + {427, 17} + + + + + + -2147483392 + {{-26, 0}, {16, 17}} + + + + YES + + 2.050000e+02 + 4.000000e+01 + 1.000000e+03 + + 75628032 + 0 + Remote Path Fragment + + LucidaGrande + 1.100000e+01 + 3100 + + + 3 + MC4zMzMzMzI5OQA + + + 6 + System + headerTextColor + + + + + 337772096 + 2048 + Text Cell + + + + 6 + System + controlBackgroundColor + + + + + 3 + YES + YES + + + + 2.160000e+02 + 4.000000e+01 + 1.000000e+03 + + 75628032 + 0 + Replacement + + + + + + 337772096 + 2048 + Text Cell + + + + + + 3 + YES + YES + + + + 3.000000e+00 + 2.000000e+00 + + + 6 + System + gridColor + + 3 + MC41AA + + + 1.700000e+01 + 1388314624 + 4 + 15 + 0 + YES + + + {{1, 17}, {427, 175}} + + + + + 4 + + + + -2147483392 + {{411, 17}, {15, 160}} + + + _doScroller: + 9.142857e-01 + + + + -2147483392 + {{1, 177}, {411, 15}} + + 1 + + _doScroller: + 1.000000e+00 + 9.976526e-01 + + + + 2304 + + YES + + + {{1, 0}, {427, 17}} + + + + + 4 + + + + {{-1, 20}, {429, 193}} + + + 562 + + + + + + QSAAAEEgAABBmAAAQZgAAA + + + + 268 + {{-1, -1}, {26, 23}} + + YES + + -2080244224 + 134217728 + + + + -2033434369 + 162 + + NSImage + NSAddTemplate + + + + 400 + 75 + + + + + 268 + {{24, -1}, {26, 23}} + + YES + + -2080244224 + 134217728 + + + + -2033434369 + 162 + + NSImage + NSRemoveTemplate + + + + 400 + 75 + + + + {427, 213} + NSView @@ -422,7 +653,7 @@ showPaths: - + 51 @@ -430,7 +661,7 @@ pathsPreferencesItem - + 52 @@ -438,7 +669,7 @@ pathsPreferencesView - + 54 @@ -503,7 +734,7 @@ - + @@ -608,15 +839,114 @@ 50 - + 53 - + + + YES + + + + PathsPreferences + + 55 + + + YES + + + + + + + + + 56 + + + + + 57 + + + + + 58 + + + YES + + + + + + + 59 + + + + + 60 + + + YES + + + + + + 61 + + + YES + + + + + + 62 + + + + + 63 + + + + + 64 + + + YES + + + + + + 65 + + + + + 66 + + + YES + + + + + + 67 + + + @@ -653,7 +983,21 @@ 41.IBPluginDependency 43.IBPluginDependency 50.IBPluginDependency + 53.IBEditorWindowLastContentRect 53.IBPluginDependency + 55.IBPluginDependency + 56.IBPluginDependency + 57.IBPluginDependency + 58.IBPluginDependency + 59.IBPluginDependency + 60.IBPluginDependency + 61.IBPluginDependency + 62.IBPluginDependency + 63.IBPluginDependency + 64.IBPluginDependency + 65.IBPluginDependency + 66.IBPluginDependency + 67.IBPluginDependency YES @@ -665,7 +1009,7 @@ {{647, 290}, {420, 120}} - + {196, 240} {{202, 428}, {480, 270}} com.apple.InterfaceBuilder.CocoaPlugin @@ -687,6 +1031,20 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + {{386, 563}, {427, 213}} + 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 + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -710,7 +1068,7 @@ - 54 + 67 diff --git a/Source/PreferencesController.m b/Source/PreferencesController.m index 0234ab4..d5125f2 100644 --- a/Source/PreferencesController.m +++ b/Source/PreferencesController.m @@ -62,6 +62,7 @@ NSSize pathsSize; - (void)showPreferencesWindow { [self showGeneral:self]; + [[self window] center]; [[self window] makeKeyAndOrderFront:self]; } @@ -122,7 +123,7 @@ NSSize pathsSize; newFrame = [NSWindow contentRectForFrameRect:[[self window] frame] styleMask:[[self window] styleMask]]; - float height = size.height + 50; + float height = size.height + 55; newFrame.origin.y += newFrame.size.height; newFrame.origin.y -= height; -- 2.43.5