aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMUILocalizerAndLayoutTweaker.m
Commit message (Collapse)AuthorAge
* First cut at pruning things/updating things.Gravatar dmaclach2016-10-07
| | | | | | | | | | | | | | | Remove a bunch of code that Google stopped using/maintaining rather than trying to update it it. Some would be hard to update, some actually has system provided replacements; others are patterns that just don't seem as common now. Prune out the code related to macOS <= 10.5, start pruning some of the really old iOS support also. Get the projects mostly limping again with modern Xcodes so tests can be run. If someone ends up on this commit via history for something they still find as useful, feel free to do a pull request to bring the snippet of code back to life and update it for current SDKs.
* Fix build of Mac GTM project with static analyzer. Remove ↵Gravatar gtm.daemon2013-12-19
| | | | | GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton. DELTA=447 (49 added, 296 deleted, 102 changed)
* Ensure +[GTMUILocalizerAndLayoutTweaker sizeToFitFixedHeightTextField:] ↵Gravatar gtm.daemon2013-06-24
| | | | | | | sets an integral size. When resizing labels it's possible to get fractional sizes. This CL fixes the problem by using integral values. DELTA=17 (17 added, 0 deleted, 0 changed)
* [Author: rsesek]Gravatar gtm.daemon2011-08-09
| | | | | | In GTM SizeToFit(), add more padding for NSTexturedRoundedBezelStyle buttons. R=thomasvl APPROVED=thomasvl
* [Author: thomasvl]Gravatar gtm.daemon2010-04-06
| | | | | | | Add a radar number for the sizeToFit padding issue. Reorder two functions in the impl to match the header. R=dmaclach DELTA=55 (28 added, 27 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-04-06
| | | | | | | | | | Put the padding tweak in to the NSMatrix path also for wrapped strings since they can have the same problems as standalong radio/checkboxes. The padding amount also is increased slightly to handle Kerning that can happen on some european languages (accent chars). Move some constants into global constants in the file for general cleanup. R=dmaclach,stuartmorgan DELTA=36 (26 added, 8 deleted, 2 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-19
| | | | | | Add a fudge factor for buttons (radios, checkboxes) that have forced wordwraps. R=dmaclach DELTA=11 (11 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-17
| | | | | | | If a width base tweaker is adjusting a window's size with the result, apply the calculations needed for Resolution Independence also. R=avi,dmaclach DELTA=5 (3 added, 0 deleted, 2 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-17
| | | | | | | Use the transforms needed to deal with Resolution Independence when sizing the window. R=avi,dmaclach DELTA=4 (3 added, 0 deleted, 1 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-10
| | | | | | Remove commented out line I missed in last CL. R=dmaclach DELTA=1 (0 added, 1 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-10
| | | | | | | | Don't trim the whitespace off the string when doing test sizing... TextField does some odd stuff with whitespace when it does wrap things, if you don't include the white space, then when you use the real string (to wrap), it moves the last word down a line because of lack of space for the whitespace (go figure). Oh, and fix the leak. R=dmaclach DELTA=6 (0 added, 1 deleted, 5 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-09
| | | | | | Make the size change math right. R=dmaclach DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-09
| | | | | | Add an api for forcing a NSTextField to a fixed height but what ever width is needed. R=dmaclach DELTA=634 (631 added, 0 deleted, 3 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-02-08
| | | | | | Add basic support for NSTabView and a unittest to validate simple behaviors. R=dmaclach DELTA=1069 (1066 added, 0 deleted, 3 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-11-05
| | | | | | Path control is 10.5 or later, add ifdef. R=dmaclach,stuartmorgan DELTA=2 (2 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-11-03
| | | | | | Handle path controls in autosizing. R=stuartmorgan DELTA=4 (4 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-10-30
| | | | | | | | Add a helper for doing view resizing without resizing subviews. Fix the fixed width call to not change the width. Update the unittest to make sure the fixed width call doesn't change the width. R=stuartmorgan,dmaclach DELTA=41 (30 added, 0 deleted, 11 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-10-20
| | | | | | | Add two apis for making checkboxs/radios and radio groups wrap to their size. Add a unittest to cover normal and mini sizes. R=dmaclach,stuartmorgan DELTA=1174 (1164 added, 0 deleted, 10 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-09-16
| | | | | | add a helper for resizing a window without the subview resizing. R=stuartmorgan DELTA=32 (32 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-09-08
| | | | | | Adds CGFloat support to NSNumber R=thomasvl DELTA=219 (217 added, 0 deleted, 2 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-09-02
| | | | | | | | | | | | | | | | | | Add another window to the UILocalizer unittest that puts a bunch of items into boxes, splitters, and scroll views to make sure they are working. Support some NSBox attributes in AppKit+UnitTesting. Update the size to fit code to only special case regular push buttons and not other types of buttons. Update the expectations due to this change. Add a new unittest to test all button styles and sizes. Update how we decided to do vertical or horizontal layout on a width box because left aligning things is visual and doesn't actually align their frames, so instead we do a rect intersection instead. Added in the CompilerSDK on Mac OS builds to the paths searches. Update the comments on how paths are searched to be correct. R=dmaclach,stuartmorgan DELTA=2709 (2643 added, 8 deleted, 58 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-08-28
| | | | | | | | Comment on one of the public UI points. Put in another public UI point for tweaking UI without doing the localization step (for non localization content tweaking). R=stuartmorgan DELTA=12 (11 added, 0 deleted, 1 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-08-27
| | | | | | | | Update the textfield fixed width code to work with 10.5 (vs. 10.4 due to a change on apple's end). Add a unittest that captures the edge case. R=stuartmorgan,dmaclach DELTA=72 (66 added, 1 deleted, 5 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-08-26
| | | | | | | Not sure what I was thinking, sizes are CGFloats and it couldn't be unsigned since the height to grow or shrink... R=stuartmorgan DELTA=2 (0 added, 0 deleted, 2 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-08-26
| | | | | | | Add an api for autosizing TextFields but keeping the width fixed. This needs a test in the future, but need it at the moment for chrome. R=stuartmorgan DELTA=18 (17 added, 1 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-08-07
| | | | | | | Bump up the min size on buttons with a note about the logic, update the unittest images accordingly. R=stuartmorgan DELTA=9 (3 added, 0 deleted, 6 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-08-06
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)