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) --- .../TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff | Bin 0 -> 29352 bytes .../TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff | Bin 0 -> 25054 bytes .../TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff | Bin 0 -> 25596 bytes .../TestData/GTMUILocalizerAndLayoutTweakerTest2-0.tiff | Bin 0 -> 14672 bytes .../TestData/GTMUILocalizerAndLayoutTweakerTest2-1.tiff | Bin 0 -> 11914 bytes .../TestData/GTMUILocalizerAndLayoutTweakerTest2-2.tiff | Bin 0 -> 11898 bytes 6 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-0.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-1.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-2.tiff (limited to 'AppKit/TestData') diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff new file mode 100644 index 0000000..4d0e231 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff new file mode 100644 index 0000000..faace9d Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff new file mode 100644 index 0000000..99214f4 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-0.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-0.tiff new file mode 100644 index 0000000..25c53d9 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-0.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-1.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-1.tiff new file mode 100644 index 0000000..6d30743 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-1.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-2.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-2.tiff new file mode 100644 index 0000000..906fd9c Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest2-2.tiff differ -- cgit v1.2.3