From 1aac50492d94c282511a6484760405b314d1f1f0 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Thu, 6 Aug 2009 17:00:44 +0000 Subject: [Author: thomasvl] Move the nib finding code in GTMUILocalizer to a class methods so it can be called without an instance. Add GTMUILocalizerAndLayoutTweaker getting UI localized and then running through it to auto size UI items that have been marked and also support limited tweaks on other objects based on a group of tweaks. Provide a class method for this sizeToFit fixup of individual objects. Unittests for the new class. R=dmaclach,stuartmorgan DELTA=3161 (3157 added, 0 deleted, 4 changed) --- AppKit/GTMUILocalizerAndLayoutTweakerTest2.xib | 862 +++++++++++++++++++++++++ 1 file changed, 862 insertions(+) create mode 100644 AppKit/GTMUILocalizerAndLayoutTweakerTest2.xib (limited to 'AppKit/GTMUILocalizerAndLayoutTweakerTest2.xib') diff --git a/AppKit/GTMUILocalizerAndLayoutTweakerTest2.xib b/AppKit/GTMUILocalizerAndLayoutTweakerTest2.xib new file mode 100644 index 0000000..b4c7c6f --- /dev/null +++ b/AppKit/GTMUILocalizerAndLayoutTweakerTest2.xib @@ -0,0 +1,862 @@ + + + + 1050 + 9J61 + 677 + 949.46 + 353.00 + + YES + + + + YES + com.apple.InterfaceBuilderKit + com.apple.InterfaceBuilder.CocoaPlugin + + + YES + + YES + + + YES + + + + YES + + GTMUILocalizerAndLayoutTweakerTestWindowController + + + FirstResponder + + + NSApplication + + + 15 + 2 + {{123, 932}, {504, 183}} + 536870912 + Window2 + NSWindow + + {3.40282e+38, 3.40282e+38} + + + 256 + + YES + + + 266 + + YES + + + 256 + + YES + + + 266 + {{3, 45}, {336, 22}} + + YES + + -1804468671 + 272630784 + + + LucidaGrande + 1.300000e+01 + 1044 + + + YES + + 6 + System + textBackgroundColor + + 3 + MQA + + + + 6 + System + textColor + + 3 + MAA + + + + + + + 266 + {{3, 13}, {336, 22}} + + YES + + -1804468671 + 272630784 + + + + YES + + + + + + + 266 + {{3, 77}, {336, 22}} + + YES + + -1804468671 + 272630784 + + + + YES + + + + + + {342, 109} + + + + {{145, 64}, {342, 109}} + + {0, 0} + + 67239424 + 0 + Box + + LucidaGrande + 1.100000e+01 + 3100 + + + + 3 + MCAwLjgwMDAwMDAxAA + + + + 0 + 0 + 0 + NO + + + + 289 + + YES + + + 268 + {{206, 12}, {96, 32}} + + YES + + 67239424 + 134217728 + ok:8:1 + + + -2038284033 + 129 + + + 200 + 25 + + + + + 268 + {{14, 12}, {96, 32}} + + YES + + 67239424 + 134217728 + abc:3:1 + + + -2038284033 + 129 + + + 200 + 25 + + + + + 268 + {{110, 12}, {96, 32}} + + YES + + 67239424 + 134217728 + w:9:3 + + + -2038284033 + 129 + + + 200 + 25 + + + + {{188, 0}, {316, 60}} + + GTMWidthBasedTweaker + + + + 268 + + YES + + + 265 + {{17, 84}, {111, 17}} + + YES + + 68288064 + 272630784 + foo :8:2 + + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2OQA + + + + 6 + System + controlTextColor + + + + + + + 265 + {{17, 20}, {111, 17}} + + YES + + 68288064 + 272630784 + w:12:6 + + + + + + + + + 265 + {{17, 52}, {111, 17}} + + YES + + 68288064 + 272630784 + mumble :3:1 + + + + + + + + {{0, 59}, {140, 121}} + + GTMWidthBasedTweaker + + + {504, 183} + + + {{0, 0}, {1920, 1178}} + {3.40282e+38, 3.40282e+38} + + + GTMUILocalizerAndLayoutTweaker + + + GTMUILocalizerAndLayoutTweakerTestLocalizer + + + + + YES + + + uiObject_ + + + + 84 + + + + viewToResize_ + + + + 118 + + + + viewToSlideAndResize_ + + + + 119 + + + + localizer_ + + + + 121 + + + + window + + + + 122 + + + + + YES + + 0 + + YES + + + + + + -2 + + + RmlsZSdzIE93bmVyA + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + YES + + + + + + 2 + + + YES + + + + + + + + 34 + + + YES + + + + + + + + 13 + + + YES + + + + + + 14 + + + + + 15 + + + YES + + + + + + 16 + + + + + 11 + + + YES + + + + + + 12 + + + + + 35 + + + + + 115 + + + YES + + + + + + + + 5 + + + YES + + + + + + 6 + + + + + 9 + + + YES + + + + + + 10 + + + + + 7 + + + YES + + + + + + 8 + + + + + 109 + + + YES + + + + + + + + 42 + + + YES + + + + + + 43 + + + + + 40 + + + YES + + + + + + 41 + + + + + 44 + + + YES + + + + + + 45 + + + + + 120 + + + + + + + YES + + YES + -1.IBPluginDependency + -2.IBPluginDependency + -3.IBPluginDependency + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 1.IBWindowTemplateEditedContentRect + 1.NSWindowTemplate.visibleAtLaunch + 1.WindowOrigin + 1.editorWindowContentRectSynchronizationRect + 10.IBPluginDependency + 11.IBPluginDependency + 12.IBPluginDependency + 120.IBPluginDependency + 13.IBPluginDependency + 14.IBPluginDependency + 15.IBPluginDependency + 16.IBPluginDependency + 2.IBPluginDependency + 35.IBPluginDependency + 40.IBPluginDependency + 41.IBPluginDependency + 42.IBPluginDependency + 43.IBPluginDependency + 44.IBPluginDependency + 45.IBPluginDependency + 5.IBPluginDependency + 6.IBPluginDependency + 7.IBPluginDependency + 8.IBPluginDependency + 9.IBPluginDependency + + + YES + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilderKit + com.apple.InterfaceBuilderKit + {{632, 945}, {504, 183}} + com.apple.InterfaceBuilder.CocoaPlugin + {{632, 945}, {504, 183}} + + {196, 240} + {{202, 428}, {480, 270}} + 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 + 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 + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 122 + + + + YES + + GTMUILocalizer + NSObject + + YES + + YES + otherObjectToLocalize_ + owner_ + yetAnotherObjectToLocalize_ + + + YES + id + id + id + + + + IBProjectSource + AppKit/GTMUILocalizer.h + + + + GTMUILocalizerAndLayoutTweaker + NSObject + + YES + + YES + localizerOwner_ + localizer_ + uiObject_ + + + YES + id + GTMUILocalizer + id + + + + IBProjectSource + AppKit/GTMUILocalizerAndLayoutTweaker.h + + + + GTMUILocalizerAndLayoutTweakerTestLocalizer + GTMUILocalizer + + IBProjectSource + AppKit/GTMUILocalizerAndLayoutTweakerTest.h + + + + GTMUILocalizerAndLayoutTweakerTestWindowController + NSWindowController + + + + GTMWidthBasedTweaker + NSView + + YES + + YES + viewToResize_ + viewToSlideAndResize_ + viewToSlide_ + + + YES + id + NSView + NSView + + + + + + NSApplication + + IBProjectSource + UnitTesting/GTMAppKit+UnitTesting.h + + + + NSButton + + + + NSCell + + + + NSControl + + + + NSMenu + + + + NSObject + + IBProjectSource + AppKit/GTMCarbonEvent.h + + + + NSObject + + IBProjectSource + AppKit/GTMDelegatingTableColumn.h + + + + NSObject + + IBProjectSource + Foundation/GTMHTTPServer.h + + + + NSObject + + IBProjectSource + Foundation/GTMNSAppleEventDescriptor+Foundation.h + + + + NSObject + + IBProjectSource + Foundation/GTMNSObject+KeyValueObserving.h + + + + NSObject + + IBProjectSource + UnitTesting/GTMCALayer+UnitTesting.h + + + + NSObject + + IBProjectSource + UnitTesting/GTMNSObject+BindingUnitTesting.h + + + + NSObject + + IBProjectSource + UnitTesting/GTMNSObject+UnitTesting.h + + + + NSTextField + + + + NSView + + IBProjectSource + AppKit/GTMTheme.h + + + + NSView + + + + NSWindow + + + + NSWindow + + + + + 0 + ../GTM.xcodeproj + 3 + + -- cgit v1.2.3