diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 16:30:57 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 16:30:57 +0000 |
commit | 756989c7141327101d9ea67d7199c6ba2aec384c (patch) | |
tree | 1c148ec319c149635eea7b43cd855d5ea0a3e1b6 | |
parent | 2014cdc6254263ae5d79c567d020551e38e2f203 (diff) | |
download | chromium_src-756989c7141327101d9ea67d7199c6ba2aec384c.zip chromium_src-756989c7141327101d9ea67d7199c6ba2aec384c.tar.gz chromium_src-756989c7141327101d9ea67d7199c6ba2aec384c.tar.bz2 |
[Mac] Implement font and encoding settings in Under the Hood preferences
* Font settings can now be changed for serif, sans serif, and fixed width.
* The default encoding can now be changed via preferences.
* Language settings are not yet implemented. See http://crbug.com/23828
BUG=20845
TEST=Chromium-->Preferences-->Under the Hood-->Change font and language settings
Review URL: http://codereview.chromium.org/461005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33963 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/cocoa_protocols_mac.h | 1 | ||||
-rw-r--r-- | chrome/app/nibs/FontLanguageSettings.xib | 1968 | ||||
-rw-r--r-- | chrome/app/nibs/Preferences.xib | 121 | ||||
-rw-r--r-- | chrome/browser/cocoa/font_language_settings_controller.h | 93 | ||||
-rw-r--r-- | chrome/browser/cocoa/font_language_settings_controller.mm | 240 | ||||
-rw-r--r-- | chrome/browser/cocoa/font_language_settings_controller_unittest.mm | 61 | ||||
-rw-r--r-- | chrome/browser/cocoa/preferences_window_controller.h | 3 | ||||
-rw-r--r-- | chrome/browser/cocoa/preferences_window_controller.mm | 21 | ||||
-rwxr-xr-x | chrome/chrome.gyp | 1 | ||||
-rwxr-xr-x | chrome/chrome_browser.gypi | 2 | ||||
-rwxr-xr-x | chrome/chrome_tests.gypi | 1 |
11 files changed, 2455 insertions, 57 deletions
diff --git a/base/cocoa_protocols_mac.h b/base/cocoa_protocols_mac.h index 5079177..eb30906 100644 --- a/base/cocoa_protocols_mac.h +++ b/base/cocoa_protocols_mac.h @@ -27,6 +27,7 @@ DEFINE_EMPTY_PROTOCOL(NSControlTextEditingDelegate) DEFINE_EMPTY_PROTOCOL(NSMatrixDelegate) DEFINE_EMPTY_PROTOCOL(NSMenuDelegate) DEFINE_EMPTY_PROTOCOL(NSTableViewDataSource) +DEFINE_EMPTY_PROTOCOL(NSTableViewDelegate) DEFINE_EMPTY_PROTOCOL(NSTextFieldDelegate) DEFINE_EMPTY_PROTOCOL(NSTextViewDelegate) DEFINE_EMPTY_PROTOCOL(NSWindowDelegate) diff --git a/chrome/app/nibs/FontLanguageSettings.xib b/chrome/app/nibs/FontLanguageSettings.xib new file mode 100644 index 0000000..91628ef --- /dev/null +++ b/chrome/app/nibs/FontLanguageSettings.xib @@ -0,0 +1,1968 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10"> + <data> + <int key="IBDocument.SystemTarget">1050</int> + <string key="IBDocument.SystemVersion">10B504</string> + <string key="IBDocument.InterfaceBuilderVersion">740</string> + <string key="IBDocument.AppKitVersion">1038.2</string> + <string key="IBDocument.HIToolboxVersion">437.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="NS.object.0">740</string> + </object> + <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> + <bool key="EncodedWithXMLCoder">YES</bool> + <integer value="2"/> + </object> + <object class="NSArray" key="IBDocument.PluginDependencies"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + </object> + <object class="NSMutableDictionary" key="IBDocument.Metadata"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys" id="0"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSCustomObject" id="1001"> + <string key="NSClassName">FontLanguageSettingsController</string> + </object> + <object class="NSCustomObject" id="1003"> + <string key="NSClassName">FirstResponder</string> + </object> + <object class="NSCustomObject" id="1004"> + <string key="NSClassName">NSApplication</string> + </object> + <object class="NSWindowTemplate" id="1005"> + <int key="NSWindowStyleMask">7</int> + <int key="NSWindowBacking">2</int> + <string key="NSWindowRect">{{196, 232}, {562, 278}}</string> + <int key="NSWTFlags">544735232</int> + <string key="NSWindowTitle">Fonts and Languages</string> + <string key="NSWindowClass">NSWindow</string> + <nil key="NSViewClass"/> + <string key="NSWindowContentMaxSize">{1.79769e+308, 1.79769e+308}</string> + <object class="NSView" key="NSWindowView" id="1006"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">256</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSTabView" id="324743742"> + <reference key="NSNextResponder" ref="1006"/> + <int key="NSvFlags">12</int> + <string key="NSFrame">{{13, 40}, {536, 232}}</string> + <reference key="NSSuperview" ref="1006"/> + <object class="NSMutableArray" key="NSTabViewItems"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSTabViewItem" id="328614539"> + <string key="NSIdentifier">1</string> + <object class="NSView" key="NSView" id="138873164"> + <reference key="NSNextResponder" ref="324743742"/> + <int key="NSvFlags">256</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSTextField" id="1012521134"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{14, 166}, {41, 17}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="1050739220"> + <int key="NSCellFlags">68288064</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Fonts</string> + <object class="NSFont" key="NSSupport" id="398885850"> + <string key="NSName">LucidaGrande-Bold</string> + <double key="NSSize">13</double> + <int key="NSfFlags">16</int> + </object> + <reference key="NSControlView" ref="1012521134"/> + <object class="NSColor" key="NSBackgroundColor" id="236360023"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">controlColor</string> + <object class="NSColor" key="NSColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes> + </object> + </object> + <object class="NSColor" key="NSTextColor" id="457126496"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">controlTextColor</string> + <object class="NSColor" key="NSColor" id="140946240"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MAA</bytes> + </object> + </object> + </object> + </object> + <object class="NSTextField" id="631498565"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{14, 141}, {69, 17}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="696313204"> + <int key="NSCellFlags">68288064</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Serif Font:</string> + <object class="NSFont" key="NSSupport" id="30022524"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">13</double> + <int key="NSfFlags">1044</int> + </object> + <reference key="NSControlView" ref="631498565"/> + <reference key="NSBackgroundColor" ref="236360023"/> + <reference key="NSTextColor" ref="457126496"/> + </object> + </object> + <object class="NSTextField" id="781278283"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{14, 115}, {105, 17}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="850558798"> + <int key="NSCellFlags">68288064</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Sans-Serif Font:</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="781278283"/> + <reference key="NSBackgroundColor" ref="236360023"/> + <reference key="NSTextColor" ref="457126496"/> + </object> + </object> + <object class="NSTextField" id="1025697156"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{14, 90}, {117, 17}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="652132209"> + <int key="NSCellFlags">68288064</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Fixed-width Font:</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="1025697156"/> + <reference key="NSBackgroundColor" ref="236360023"/> + <reference key="NSTextColor" ref="457126496"/> + </object> + </object> + <object class="NSTextField" id="643651530"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{145, 139}, {257, 22}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="95207710"> + <int key="NSCellFlags">-2079195584</int> + <int key="NSCellFlags2">306185216</int> + <string key="NSContents"/> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="643651530"/> + <bool key="NSDrawsBackground">YES</bool> + <int key="NSTextBezelStyle">1</int> + <object class="NSColor" key="NSBackgroundColor" id="255726597"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">textBackgroundColor</string> + <object class="NSColor" key="NSColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MQA</bytes> + </object> + </object> + <object class="NSColor" key="NSTextColor" id="876664397"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">textColor</string> + <reference key="NSColor" ref="140946240"/> + </object> + </object> + </object> + <object class="NSButton" id="735769204"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{404, 133}, {101, 32}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="379999922"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">Change…</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="735769204"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">129</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSTextField" id="543957925"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{145, 112}, {257, 22}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="407170690"> + <int key="NSCellFlags">-2079195584</int> + <int key="NSCellFlags2">306185216</int> + <string key="NSContents"/> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="543957925"/> + <bool key="NSDrawsBackground">YES</bool> + <int key="NSTextBezelStyle">1</int> + <reference key="NSBackgroundColor" ref="255726597"/> + <reference key="NSTextColor" ref="876664397"/> + </object> + </object> + <object class="NSButton" id="867122154"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{404, 106}, {101, 32}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="419948454"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">Change…</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="867122154"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">129</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSTextField" id="468611265"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{145, 86}, {257, 22}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="518872086"> + <int key="NSCellFlags">-2079195584</int> + <int key="NSCellFlags2">306185216</int> + <string key="NSContents"/> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="468611265"/> + <reference key="NSBackgroundColor" ref="255726597"/> + <reference key="NSTextColor" ref="876664397"/> + </object> + </object> + <object class="NSButton" id="291904614"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{404, 80}, {101, 32}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="345949999"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">Change…</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="291904614"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">129</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSTextField" id="588963101"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{14, 45}, {66, 17}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="1051446020"> + <int key="NSCellFlags">68288064</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Encoding</string> + <reference key="NSSupport" ref="398885850"/> + <reference key="NSControlView" ref="588963101"/> + <reference key="NSBackgroundColor" ref="236360023"/> + <reference key="NSTextColor" ref="457126496"/> + </object> + </object> + <object class="NSTextField" id="52816081"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{14, 20}, {116, 17}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="672014458"> + <int key="NSCellFlags">68288064</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">Default Encoding:</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="52816081"/> + <reference key="NSBackgroundColor" ref="236360023"/> + <reference key="NSTextColor" ref="457126496"/> + </object> + </object> + <object class="NSPopUpButton" id="910704053"> + <reference key="NSNextResponder" ref="138873164"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{132, 14}, {370, 26}}</string> + <reference key="NSSuperview" ref="138873164"/> + <bool key="NSEnabled">YES</bool> + <object class="NSPopUpButtonCell" key="NSCell" id="462066169"> + <int key="NSCellFlags">-2076049856</int> + <int key="NSCellFlags2">2048</int> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="910704053"/> + <int key="NSButtonFlags">109199615</int> + <int key="NSButtonFlags2">129</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + <object class="NSMenuItem" key="NSMenuItem" id="190161827"> + <reference key="NSMenu" ref="299118344"/> + <string key="NSTitle">Item 1</string> + <string key="NSKeyEquiv"/> + <int key="NSKeyEquivModMask">1048576</int> + <int key="NSMnemonicLoc">2147483647</int> + <int key="NSState">1</int> + <object class="NSCustomResource" key="NSOnImage" id="566504709"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuCheckmark</string> + </object> + <object class="NSCustomResource" key="NSMixedImage" id="582391633"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuMixedState</string> + </object> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="462066169"/> + </object> + <bool key="NSMenuItemRespectAlignment">YES</bool> + <object class="NSMenu" key="NSMenu" id="299118344"> + <string key="NSTitle">OtherViews</string> + <object class="NSMutableArray" key="NSMenuItems"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="190161827"/> + <object class="NSMenuItem" id="540965943"> + <reference key="NSMenu" ref="299118344"/> + <string key="NSTitle">Item 2</string> + <string key="NSKeyEquiv"/> + <int key="NSKeyEquivModMask">1048576</int> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="566504709"/> + <reference key="NSMixedImage" ref="582391633"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="462066169"/> + </object> + <object class="NSMenuItem" id="915492366"> + <reference key="NSMenu" ref="299118344"/> + <string key="NSTitle">Item 3</string> + <string key="NSKeyEquiv"/> + <int key="NSKeyEquivModMask">1048576</int> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="566504709"/> + <reference key="NSMixedImage" ref="582391633"/> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="462066169"/> + </object> + </object> + <reference key="NSMenuFont" ref="30022524"/> + </object> + <int key="NSPreferredEdge">1</int> + <bool key="NSUsesItemFromMenu">YES</bool> + <bool key="NSAltersState">YES</bool> + <int key="NSArrowPosition">2</int> + </object> + </object> + </object> + <string key="NSFrame">{{10, 33}, {516, 186}}</string> + <reference key="NSSuperview" ref="324743742"/> + </object> + <string key="NSLabel">Fonts and Encodings</string> + <reference key="NSColor" ref="236360023"/> + <reference key="NSTabView" ref="324743742"/> + </object> + <object class="NSTabViewItem" id="544604771"> + <string key="NSIdentifier">2</string> + <object class="NSView" key="NSView" id="266567003"> + <nil key="NSNextResponder"/> + <int key="NSvFlags">256</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSTextField" id="33425503"> + <reference key="NSNextResponder" ref="266567003"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{122, 92}, {427, 17}}</string> + <reference key="NSSuperview" ref="266567003"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="848038315"> + <int key="NSCellFlags">68288064</int> + <int key="NSCellFlags2">272630784</int> + <string key="NSContents">These settings are not yet implemented.</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="33425503"/> + <reference key="NSBackgroundColor" ref="236360023"/> + <reference key="NSTextColor" ref="457126496"/> + </object> + </object> + </object> + <string key="NSFrame">{{10, 33}, {516, 186}}</string> + </object> + <string key="NSLabel">Languages</string> + <reference key="NSColor" ref="236360023"/> + <reference key="NSTabView" ref="324743742"/> + </object> + </object> + <reference key="NSSelectedTabViewItem" ref="328614539"/> + <reference key="NSFont" ref="30022524"/> + <int key="NSTvFlags">0</int> + <bool key="NSAllowTruncatedLabels">YES</bool> + <bool key="NSDrawsBackground">YES</bool> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="138873164"/> + </object> + </object> + <object class="NSButton" id="872321321"> + <reference key="NSNextResponder" ref="1006"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{452, 9}, {96, 32}}</string> + <reference key="NSSuperview" ref="1006"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="70105462"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">OK</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="872321321"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">129</int> + <string key="NSAlternateContents"/> + <string type="base64-UTF8" key="NSKeyEquivalent">DQ</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSButton" id="577390425"> + <reference key="NSNextResponder" ref="1006"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{356, 9}, {96, 32}}</string> + <reference key="NSSuperview" ref="1006"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="238283370"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">Cancel</string> + <reference key="NSSupport" ref="30022524"/> + <reference key="NSControlView" ref="577390425"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">129</int> + <string key="NSAlternateContents"/> + <string type="base64-UTF8" key="NSKeyEquivalent">Gw</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + </object> + <string key="NSFrameSize">{562, 278}</string> + <reference key="NSSuperview"/> + </object> + <string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string> + <string key="NSMaxSize">{1.79769e+308, 1.79769e+308}</string> + </object> + <object class="NSArrayController" id="45399218"> + <object class="NSMutableArray" key="NSDeclaredKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>name</string> + </object> + <object class="_NSManagedProxy" key="_NSManagedProxy"/> + <bool key="NSAvoidsEmptySelection">YES</bool> + <bool key="NSPreservesSelection">YES</bool> + <bool key="NSSelectsInsertedObjects">YES</bool> + <bool key="NSFilterRestrictsInsertion">YES</bool> + <bool key="NSClearsFilterPredicateOnInsertion">YES</bool> + </object> + </object> + <object class="IBObjectContainer" key="IBDocument.Objects"> + <object class="NSMutableArray" key="connectionRecords"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">window</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="1005"/> + </object> + <int key="connectionID">32</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">fixedWidthButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="291904614"/> + </object> + <int key="connectionID">33</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">sansSerifButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="867122154"/> + </object> + <int key="connectionID">35</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">serifButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="735769204"/> + </object> + <int key="connectionID">37</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">selectFont:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="735769204"/> + </object> + <int key="connectionID">46</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">selectFont:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="867122154"/> + </object> + <int key="connectionID">47</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">selectFont:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="291904614"/> + </object> + <int key="connectionID">48</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">serifField_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="643651530"/> + </object> + <int key="connectionID">49</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">sansSerifField_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="543957925"/> + </object> + <int key="connectionID">50</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">fixedWidthField_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="468611265"/> + </object> + <int key="connectionID">51</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBBindingConnection" key="connection"> + <string key="label">content: arrangedObjects.name</string> + <reference key="source" ref="910704053"/> + <reference key="destination" ref="45399218"/> + <object class="NSNibBindingConnector" key="connector" id="502479255"> + <reference key="NSSource" ref="910704053"/> + <reference key="NSDestination" ref="45399218"/> + <string key="NSLabel">content: arrangedObjects.name</string> + <string key="NSBinding">content</string> + <string key="NSKeyPath">arrangedObjects.name</string> + <int key="NSNibBindingConnectorVersion">2</int> + </object> + </object> + <int key="connectionID">64</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBBindingConnection" key="connection"> + <string key="label">selectedIndex: defaultEncodingIndex_</string> + <reference key="source" ref="910704053"/> + <reference key="destination" ref="1001"/> + <object class="NSNibBindingConnector" key="connector"> + <reference key="NSSource" ref="910704053"/> + <reference key="NSDestination" ref="1001"/> + <string key="NSLabel">selectedIndex: defaultEncodingIndex_</string> + <string key="NSBinding">selectedIndex</string> + <string key="NSKeyPath">defaultEncodingIndex_</string> + <reference key="NSPreviousConnector" ref="502479255"/> + <int key="NSNibBindingConnectorVersion">2</int> + </object> + </object> + <int key="connectionID">68</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBBindingConnection" key="connection"> + <string key="label">contentArray: encodings</string> + <reference key="source" ref="45399218"/> + <reference key="destination" ref="1001"/> + <object class="NSNibBindingConnector" key="connector"> + <reference key="NSSource" ref="45399218"/> + <reference key="NSDestination" ref="1001"/> + <string key="NSLabel">contentArray: encodings</string> + <string key="NSBinding">contentArray</string> + <string key="NSKeyPath">encodings</string> + <int key="NSNibBindingConnectorVersion">2</int> + </object> + </object> + <int key="connectionID">70</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">save:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="872321321"/> + </object> + <int key="connectionID">76</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">closeSheet:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="577390425"/> + </object> + <int key="connectionID">77</int> + </object> + </object> + <object class="IBMutableOrderedSet" key="objectRecords"> + <object class="NSArray" key="orderedObjects"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBObjectRecord"> + <int key="objectID">0</int> + <reference key="object" ref="0"/> + <reference key="children" ref="1000"/> + <nil key="parent"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-2</int> + <reference key="object" ref="1001"/> + <reference key="parent" ref="0"/> + <string key="objectName">File's Owner</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-1</int> + <reference key="object" ref="1003"/> + <reference key="parent" ref="0"/> + <string key="objectName">First Responder</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-3</int> + <reference key="object" ref="1004"/> + <reference key="parent" ref="0"/> + <string key="objectName">Application</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">1</int> + <reference key="object" ref="1005"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1006"/> + </object> + <reference key="parent" ref="0"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">2</int> + <reference key="object" ref="1006"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="324743742"/> + <reference ref="872321321"/> + <reference ref="577390425"/> + </object> + <reference key="parent" ref="1005"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">3</int> + <reference key="object" ref="324743742"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="328614539"/> + <reference ref="544604771"/> + </object> + <reference key="parent" ref="1006"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">4</int> + <reference key="object" ref="328614539"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="138873164"/> + </object> + <reference key="parent" ref="324743742"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5</int> + <reference key="object" ref="544604771"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="266567003"/> + </object> + <reference key="parent" ref="324743742"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">6</int> + <reference key="object" ref="266567003"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="33425503"/> + </object> + <reference key="parent" ref="544604771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">7</int> + <reference key="object" ref="138873164"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1012521134"/> + <reference ref="643651530"/> + <reference ref="735769204"/> + <reference ref="543957925"/> + <reference ref="867122154"/> + <reference ref="468611265"/> + <reference ref="291904614"/> + <reference ref="1025697156"/> + <reference ref="781278283"/> + <reference ref="631498565"/> + <reference ref="588963101"/> + <reference ref="52816081"/> + <reference ref="910704053"/> + </object> + <reference key="parent" ref="328614539"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">8</int> + <reference key="object" ref="1012521134"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1050739220"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">9</int> + <reference key="object" ref="1050739220"/> + <reference key="parent" ref="1012521134"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">10</int> + <reference key="object" ref="631498565"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="696313204"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">11</int> + <reference key="object" ref="696313204"/> + <reference key="parent" ref="631498565"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">12</int> + <reference key="object" ref="781278283"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="850558798"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">13</int> + <reference key="object" ref="850558798"/> + <reference key="parent" ref="781278283"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">14</int> + <reference key="object" ref="1025697156"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="652132209"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">15</int> + <reference key="object" ref="652132209"/> + <reference key="parent" ref="1025697156"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">16</int> + <reference key="object" ref="643651530"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="95207710"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">17</int> + <reference key="object" ref="95207710"/> + <reference key="parent" ref="643651530"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">18</int> + <reference key="object" ref="735769204"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="379999922"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">19</int> + <reference key="object" ref="379999922"/> + <reference key="parent" ref="735769204"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">20</int> + <reference key="object" ref="543957925"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="407170690"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">21</int> + <reference key="object" ref="867122154"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="419948454"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">22</int> + <reference key="object" ref="419948454"/> + <reference key="parent" ref="867122154"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">23</int> + <reference key="object" ref="407170690"/> + <reference key="parent" ref="543957925"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">24</int> + <reference key="object" ref="468611265"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="518872086"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">25</int> + <reference key="object" ref="291904614"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="345949999"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">26</int> + <reference key="object" ref="345949999"/> + <reference key="parent" ref="291904614"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">27</int> + <reference key="object" ref="518872086"/> + <reference key="parent" ref="468611265"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">28</int> + <reference key="object" ref="588963101"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1051446020"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">29</int> + <reference key="object" ref="1051446020"/> + <reference key="parent" ref="588963101"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">52</int> + <reference key="object" ref="33425503"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="848038315"/> + </object> + <reference key="parent" ref="266567003"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">53</int> + <reference key="object" ref="848038315"/> + <reference key="parent" ref="33425503"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">54</int> + <reference key="object" ref="52816081"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="672014458"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">55</int> + <reference key="object" ref="672014458"/> + <reference key="parent" ref="52816081"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">56</int> + <reference key="object" ref="910704053"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="462066169"/> + </object> + <reference key="parent" ref="138873164"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">57</int> + <reference key="object" ref="462066169"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="299118344"/> + </object> + <reference key="parent" ref="910704053"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">58</int> + <reference key="object" ref="299118344"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="190161827"/> + <reference ref="540965943"/> + <reference ref="915492366"/> + </object> + <reference key="parent" ref="462066169"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">59</int> + <reference key="object" ref="190161827"/> + <reference key="parent" ref="299118344"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">60</int> + <reference key="object" ref="540965943"/> + <reference key="parent" ref="299118344"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">61</int> + <reference key="object" ref="915492366"/> + <reference key="parent" ref="299118344"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">62</int> + <reference key="object" ref="45399218"/> + <reference key="parent" ref="0"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">71</int> + <reference key="object" ref="872321321"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="70105462"/> + </object> + <reference key="parent" ref="1006"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">72</int> + <reference key="object" ref="70105462"/> + <reference key="parent" ref="872321321"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">73</int> + <reference key="object" ref="577390425"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="238283370"/> + </object> + <reference key="parent" ref="1006"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">74</int> + <reference key="object" ref="238283370"/> + <reference key="parent" ref="577390425"/> + </object> + </object> + </object> + <object class="NSMutableDictionary" key="flattenedProperties"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>-1.IBPluginDependency</string> + <string>-2.IBPluginDependency</string> + <string>-3.IBPluginDependency</string> + <string>1.IBEditorWindowLastContentRect</string> + <string>1.IBPluginDependency</string> + <string>1.IBWindowTemplateEditedContentRect</string> + <string>1.NSWindowTemplate.visibleAtLaunch</string> + <string>1.WindowOrigin</string> + <string>1.editorWindowContentRectSynchronizationRect</string> + <string>10.IBPluginDependency</string> + <string>11.IBPluginDependency</string> + <string>12.IBPluginDependency</string> + <string>13.IBPluginDependency</string> + <string>14.IBPluginDependency</string> + <string>15.IBPluginDependency</string> + <string>16.IBPluginDependency</string> + <string>17.IBPluginDependency</string> + <string>18.IBPluginDependency</string> + <string>19.IBPluginDependency</string> + <string>2.IBPluginDependency</string> + <string>20.IBPluginDependency</string> + <string>21.IBPluginDependency</string> + <string>22.IBPluginDependency</string> + <string>23.IBPluginDependency</string> + <string>24.IBPluginDependency</string> + <string>25.IBPluginDependency</string> + <string>26.IBPluginDependency</string> + <string>27.IBPluginDependency</string> + <string>28.IBPluginDependency</string> + <string>29.IBPluginDependency</string> + <string>3.IBPluginDependency</string> + <string>4.IBPluginDependency</string> + <string>5.IBPluginDependency</string> + <string>52.IBPluginDependency</string> + <string>53.IBPluginDependency</string> + <string>54.IBPluginDependency</string> + <string>55.IBPluginDependency</string> + <string>56.IBPluginDependency</string> + <string>57.IBPluginDependency</string> + <string>58.IBPluginDependency</string> + <string>59.IBPluginDependency</string> + <string>6.IBPluginDependency</string> + <string>60.IBPluginDependency</string> + <string>61.IBPluginDependency</string> + <string>62.IBPluginDependency</string> + <string>7.IBPluginDependency</string> + <string>71.IBPluginDependency</string> + <string>72.IBPluginDependency</string> + <string>73.IBPluginDependency</string> + <string>74.IBPluginDependency</string> + <string>8.IBPluginDependency</string> + <string>9.IBPluginDependency</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>{{472, 578}, {562, 278}}</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>{{472, 578}, {562, 278}}</string> + <boolean value="NO"/> + <string>{196, 240}</string> + <string>{{357, 418}, {480, 270}}</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + </object> + </object> + <object class="NSMutableDictionary" key="unlocalizedProperties"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference key="dict.sortedKeys" ref="0"/> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <nil key="activeLocalization"/> + <object class="NSMutableDictionary" key="localizations"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference key="dict.sortedKeys" ref="0"/> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <nil key="sourceID"/> + <int key="maxID">77</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <object class="NSMutableArray" key="referencedPartialClassDescriptions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBPartialClassDescription"> + <string key="className">FontLanguageSettingsController</string> + <string key="superclassName">NSWindowController</string> + <object class="NSMutableDictionary" key="actions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>closeSheet:</string> + <string>save:</string> + <string>selectFont:</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>id</string> + <string>id</string> + <string>id</string> + </object> + </object> + <object class="NSMutableDictionary" key="outlets"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>encodingsMenu_</string> + <string>fixedWidthButton_</string> + <string>fixedWidthField_</string> + <string>sansSerifButton_</string> + <string>sansSerifField_</string> + <string>serifButton_</string> + <string>serifField_</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>NSPopUpButton</string> + <string>NSButton</string> + <string>NSTextField</string> + <string>NSButton</string> + <string>NSTextField</string> + <string>NSButton</string> + <string>NSTextField</string> + </object> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">browser/cocoa/font_language_settings_controller.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSMenuItem</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">browser/cocoa/nsmenuitem_additions.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">browser/cocoa/status_bubble_mac.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">browser/cocoa/tab_strip_model_observer_bridge.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSWindow</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">browser/cocoa/nswindow_local_state.h</string> + </object> + </object> + </object> + <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBPartialClassDescription"> + <string key="className">NSActionCell</string> + <string key="superclassName">NSCell</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSActionCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSApplication</string> + <string key="superclassName">NSResponder</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="428249019"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSApplication.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSApplication</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="916929117"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSApplicationScripting.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSApplication</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="790752410"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSColorPanel.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSApplication</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSHelpManager.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSApplication</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSPageLayout.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSArrayController</string> + <string key="superclassName">NSObjectController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSArrayController.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSButton</string> + <string key="superclassName">NSControl</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSButton.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSButtonCell</string> + <string key="superclassName">NSActionCell</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSButtonCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSCell</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSControl</string> + <string key="superclassName">NSView</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="646493402"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSControl.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSController</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSController.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSFormatter</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSFormatter.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSMenu</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="781703800"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSMenu.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSMenuItem</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="75952324"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSMenuItem.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSMenuItemCell</string> + <string key="superclassName">NSButtonCell</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSMenuItemCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSAccessibility.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSAlert.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSAnimation.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <reference key="sourceIdentifier" ref="428249019"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <reference key="sourceIdentifier" ref="916929117"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSBrowser.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <reference key="sourceIdentifier" ref="790752410"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSComboBox.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSComboBoxCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <reference key="sourceIdentifier" ref="646493402"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSDatePickerCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSDictionaryController.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSDragging.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="540707810"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSDrawer.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSFontManager.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSFontPanel.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSImage.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSKeyValueBinding.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <reference key="sourceIdentifier" ref="781703800"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSNibLoading.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSOutlineView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSPasteboard.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSRuleEditor.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSSavePanel.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSSound.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSSpeechRecognizer.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSSpeechSynthesizer.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSSplitView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="472020507"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTabView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTableView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSText.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTextStorage.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTextView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTokenField.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTokenFieldCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSToolbar.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSToolbarItem.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="1004946200"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="178546456"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSWindow.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSArchiver.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSClassDescription.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSConnection.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSError.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSMetadata.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSNetServices.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSObject.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSObjectScripting.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSPort.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSPortCoder.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSScriptClassDescription.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSScriptKeyValueCoding.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSScriptObjectSpecifiers.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSScriptWhoseTests.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSSpellServer.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSStream.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSThread.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSURL.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSURLDownload.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Foundation.framework/Headers/NSXMLParser.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">Print.framework/Headers/PDEPluginInterface.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">QuartzCore.framework/Headers/CAAnimation.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">QuartzCore.framework/Headers/CALayer.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">QuartzCore.framework/Headers/CIImageProvider.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">SecurityInterface.framework/Headers/SFAuthorizationView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">SecurityInterface.framework/Headers/SFCertificatePanel.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">SecurityInterface.framework/Headers/SFChooseIdentityPanel.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObjectController</string> + <string key="superclassName">NSController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSObjectController.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSPopUpButton</string> + <string key="superclassName">NSButton</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSPopUpButton.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSPopUpButtonCell</string> + <string key="superclassName">NSMenuItemCell</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSPopUpButtonCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSResponder</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSInterfaceStyle.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSResponder</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSResponder.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSTabView</string> + <string key="superclassName">NSView</string> + <reference key="sourceIdentifier" ref="472020507"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSTabViewItem</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTabViewItem.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSTextField</string> + <string key="superclassName">NSControl</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTextField.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSTextFieldCell</string> + <string key="superclassName">NSActionCell</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSTextFieldCell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSView</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSClipView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSView</string> + <reference key="sourceIdentifier" ref="75952324"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSView</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSRulerView.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSView</string> + <string key="superclassName">NSResponder</string> + <reference key="sourceIdentifier" ref="1004946200"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSWindow</string> + <reference key="sourceIdentifier" ref="540707810"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSWindow</string> + <string key="superclassName">NSResponder</string> + <reference key="sourceIdentifier" ref="178546456"/> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSWindow</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSWindowScripting.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSWindowController</string> + <string key="superclassName">NSResponder</string> + <object class="NSMutableDictionary" key="actions"> + <string key="NS.key.0">showWindow:</string> + <string key="NS.object.0">id</string> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBFrameworkSource</string> + <string key="minorKey">AppKit.framework/Headers/NSWindowController.h</string> + </object> + </object> + </object> + </object> + <int key="IBDocument.localizationMode">0</int> + <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults"> + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string> + <integer value="1050" key="NS.object.0"/> + </object> + <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies"> + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string> + <integer value="3000" key="NS.object.0"/> + </object> + <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> + <string key="IBDocument.LastKnownRelativeProjectPath">../../chrome.xcodeproj</string> + <int key="IBDocument.defaultPropertyAccessControl">3</int> + </data> +</archive> diff --git a/chrome/app/nibs/Preferences.xib b/chrome/app/nibs/Preferences.xib index 01e3f8b..bcf9ac4 100644 --- a/chrome/app/nibs/Preferences.xib +++ b/chrome/app/nibs/Preferences.xib @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03"> +<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10"> <data> <int key="IBDocument.SystemTarget">1050</int> <string key="IBDocument.SystemVersion">9L31a</string> @@ -18,7 +18,7 @@ </object> <object class="NSMutableDictionary" key="IBDocument.Metadata"> <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> + <object class="NSArray" key="dict.sortedKeys" id="0"> <bool key="EncodedWithXMLCoder">YES</bool> </object> <object class="NSMutableArray" key="dict.values"> @@ -646,7 +646,7 @@ <reference key="NSSuperview" ref="1016273328"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="526979400"> - <int key="NSCellFlags">604110336</int> + <int key="NSCellFlags">67239424</int> <int key="NSCellFlags2">134217728</int> <string key="NSContents">^IDS_OPTIONS_FONTSETTINGS_CONFIGUREFONTS_BUTTON</string> <reference key="NSSupport" ref="445696277"/> @@ -787,7 +787,7 @@ <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="0" id="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -896,7 +896,7 @@ QXBwbGUgQ29tcHV0ZXIsIEluYy4sIDIwMDUAAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -1026,7 +1026,7 @@ rwAAAAAAAAAAAAAAAAAAAAAAdGV4dAAAAABDb3B5cmlnaHQgQXBwbGUsIEluYy4sIDIwMDkAA</bytes <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -1221,10 +1221,13 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> </object> <double key="NSRowHeight">1.700000e+01</double> <int key="NSTvFlags">-901775360</int> + <reference key="NSDelegate"/> + <reference key="NSDataSource"/> <int key="NSColumnAutoresizingStyle">4</int> <int key="NSDraggingSourceMaskForLocal">15</int> <int key="NSDraggingSourceMaskForNonLocal">0</int> <bool key="NSAllowsTypeSelect">YES</bool> + <int key="NSTableViewDraggingDestinationStyle">0</int> </object> </object> <string key="NSFrame">{{1, 1}, {305, 63}}</string> @@ -1347,7 +1350,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -1456,7 +1459,7 @@ QXBwbGUgQ29tcHV0ZXIsIEluYy4sIDIwMDUAAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -1779,7 +1782,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -1888,7 +1891,7 @@ QXBwbGUgQ29tcHV0ZXIsIEluYy4sIDIwMDUAAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -2131,7 +2134,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -2240,7 +2243,7 @@ QXBwbGUgQ29tcHV0ZXIsIEluYy4sIDIwMDUAAAAAA</bytes> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="8"/> + <integer value="0"/> <object class="NSBitmapImageRep"> <object class="NSData" key="NSTIFFRepresentation"> <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA @@ -2671,7 +2674,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string key="NSKeyPath">defaultBrowserText</string> <object class="NSDictionary" key="NSOptions"> <string key="NS.key.0">NSAllowsEditingMultipleValuesSelection</string> - <boolean value="NO" key="NS.object.0" id="6"/> + <boolean value="NO" key="NS.object.0"/> </object> <int key="NSNibBindingConnectorVersion">2</int> </object> @@ -2707,7 +2710,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string key="NSKeyPath">passwordManagerEnabledIndex</string> <object class="NSDictionary" key="NSOptions"> <string key="NS.key.0">NSAllowsEditingMultipleValuesSelection</string> - <reference key="NS.object.0" ref="6"/> + <boolean value="NO" key="NS.object.0"/> </object> <int key="NSNibBindingConnectorVersion">2</int> </object> @@ -2727,7 +2730,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string key="NSKeyPath">formAutofillEnabledIndex</string> <object class="NSDictionary" key="NSOptions"> <string key="NS.key.0">NSAllowsEditingMultipleValuesSelection</string> - <reference key="NS.object.0" ref="6"/> + <boolean value="NO" key="NS.object.0"/> </object> <int key="NSNibBindingConnectorVersion">2</int> </object> @@ -3595,34 +3598,40 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> </object> <int key="connectionID">616</int> </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">changeFontAndLanguageSettings:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="777041502"/> + </object> + <int key="connectionID">617</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBObjectRecord"> <int key="objectID">0</int> - <object class="NSArray" key="object" id="415821041"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> + <reference key="object" ref="0"/> <reference key="children" ref="1000"/> <nil key="parent"/> </object> <object class="IBObjectRecord"> <int key="objectID">-2</int> <reference key="object" ref="1001"/> - <reference key="parent" ref="415821041"/> - <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string> + <reference key="parent" ref="0"/> + <string key="objectName">File's Owner</string> </object> <object class="IBObjectRecord"> <int key="objectID">-1</int> <reference key="object" ref="1003"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">First Responder</string> </object> <object class="IBObjectRecord"> <int key="objectID">-3</int> <reference key="object" ref="1004"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Application</string> </object> <object class="IBObjectRecord"> @@ -3633,7 +3642,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference ref="408649839"/> <reference ref="530275816"/> </object> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> <int key="objectID">4</int> @@ -3672,7 +3681,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference ref="886068350"/> <reference ref="733677494"/> </object> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Under the Hood Content</string> </object> <object class="IBObjectRecord"> @@ -3946,7 +3955,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <object class="IBObjectRecord"> <int key="objectID">380</int> <reference key="object" ref="495015235"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">CustomHomePages Array Controller</string> </object> <object class="IBObjectRecord"> @@ -4008,7 +4017,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <object class="IBObjectRecord"> <int key="objectID">449</int> <reference key="object" ref="650617813"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> <int key="objectID">476</int> @@ -4048,7 +4057,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference ref="402804707"/> <reference ref="495791200"/> </object> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Basics View</string> </object> <object class="IBObjectRecord"> @@ -4072,7 +4081,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference ref="90260648"/> <reference ref="203729106"/> </object> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Personal Stuff View</string> </object> <object class="IBObjectRecord"> @@ -4275,7 +4284,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference ref="14278481"/> <reference ref="926632778"/> </object> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Under the Hood View</string> </object> <object class="IBObjectRecord"> @@ -4333,12 +4342,12 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <object class="IBObjectRecord"> <int key="objectID">505</int> <reference key="object" ref="385419425"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> <int key="objectID">510</int> <reference key="object" ref="305848829"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> <int key="objectID">515</int> @@ -4687,61 +4696,61 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <object class="IBObjectRecord"> <int key="objectID">528</int> <reference key="object" ref="145618054"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Basics Startup Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">529</int> <reference key="object" ref="843942020"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Basics Home Page Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">530</int> <reference key="object" ref="423189874"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Basics Toolbar Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">531</int> <reference key="object" ref="609957344"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Basics Search Engine Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">532</int> <reference key="object" ref="376486454"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Basics Default Browser Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">541</int> <reference key="object" ref="317778625"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Basics Startup Group Cont</string> </object> <object class="IBObjectRecord"> <int key="objectID">559</int> <reference key="object" ref="325031373"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Personal Stuff Passwords Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">560</int> <reference key="object" ref="683074852"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Personal Stuff Autofill Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">561</int> <reference key="object" ref="481147379"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Personal Stuff Browser Data Group</string> </object> <object class="IBObjectRecord"> <int key="objectID">562</int> <reference key="object" ref="487772665"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Personal Stuff Themes Group</string> </object> <object class="IBObjectRecord"> @@ -4770,7 +4779,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <object class="IBObjectRecord"> <int key="objectID">596</int> <reference key="object" ref="938815385"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> </object> <object class="IBObjectRecord"> <int key="objectID">601</int> @@ -4817,7 +4826,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <object class="IBObjectRecord"> <int key="objectID">610</int> <reference key="object" ref="821768455"/> - <reference key="parent" ref="415821041"/> + <reference key="parent" ref="0"/> <string key="objectName">Personal Stuff Sync Group</string> </object> </object> @@ -5058,9 +5067,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{240, 276}, {450, 286}}</string> - <string>{{240, 276}, {450, 286}}</string> - <reference ref="6"/> + <string>{{329, 276}, {450, 286}}</string> + <string>{{329, 276}, {450, 286}}</string> + <boolean value="NO"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -5124,11 +5133,11 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" id="5"/> + <boolean value="YES"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <reference ref="5"/> + <boolean value="YES"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <reference ref="5"/> + <boolean value="YES"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -5195,9 +5204,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> </object> <object class="NSMutableDictionary" key="unlocalizedProperties"> <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> + <reference key="dict.sortedKeys" ref="0"/> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> </object> @@ -5205,15 +5212,13 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <nil key="activeLocalization"/> <object class="NSMutableDictionary" key="localizations"> <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> + <reference key="dict.sortedKeys" ref="0"/> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> </object> </object> <nil key="sourceID"/> - <int key="maxID">616</int> + <int key="maxID">617</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -5360,10 +5365,11 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string key="superclassName">NSWindowController</string> <object class="NSMutableDictionary" key="actions"> <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSMutableArray" key="dict.sortedKeys"> + <object class="NSArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> <string>addHomepage:</string> <string>browseDownloadLocation:</string> + <string>changeFontAndLanguageSettings:</string> <string>clearData:</string> <string>doSyncAction:</string> <string>importData:</string> @@ -5395,6 +5401,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>id</string> <string>id</string> <string>id</string> + <string>id</string> </object> </object> <object class="NSMutableDictionary" key="outlets"> diff --git a/chrome/browser/cocoa/font_language_settings_controller.h b/chrome/browser/cocoa/font_language_settings_controller.h new file mode 100644 index 0000000..c079399 --- /dev/null +++ b/chrome/browser/cocoa/font_language_settings_controller.h @@ -0,0 +1,93 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import <Cocoa/Cocoa.h> + +#include "base/cocoa_protocols_mac.h" +#include "base/scoped_nsobject.h" +#include "chrome/common/pref_member.h" + +class Profile; + +// Used to keep track of which type of font the user is currently selecting. +enum FontSettingType { + FontSettingSerif, + FontSettingSansSerif, + FontSettingFixed +}; + +// Keys for the dictionaries in the |encodings_| array. +extern NSString* const kCharacterInfoEncoding; // NSString value. +extern NSString* const kCharacterInfoName; // NSString value. +extern NSString* const kCharacterInfoID; // NSNumber value. + +// A window controller that allows the user to change the default WebKit fonts +// and language encodings for web pages. This window controller is meant to be +// used as a modal sheet on another window. +@interface FontLanguageSettingsController : NSWindowController + <NSWindowDelegate, + NSTableViewDelegate, + NSTableViewDataSource> { + @private + // The font that we are currently changing. + NSFont* currentFont_; // weak + FontSettingType currentType_; + + IBOutlet NSButton* serifButton_; + IBOutlet NSTextField* serifField_; + scoped_nsobject<NSFont> serifFont_; + BOOL changedSerif_; + + IBOutlet NSButton* sansSerifButton_; + IBOutlet NSTextField* sansSerifField_; + scoped_nsobject<NSFont> sansSerifFont_; + BOOL changedSansSerif_; + + IBOutlet NSButton* fixedWidthButton_; + IBOutlet NSTextField* fixedWidthField_; + scoped_nsobject<NSFont> fixedWidthFont_; + BOOL changedFixedWidth_; + + // The actual preference members. + StringPrefMember serifName_; + StringPrefMember sansSerifName_; + StringPrefMember fixedWidthName_; + IntegerPrefMember serifSize_; + IntegerPrefMember sansSerifSize_; + IntegerPrefMember fixedWidthSize_; + + // Array of dictionaries that contain the canonical encoding name, human- + // readable name, and the ID. See the constants defined at the top of this + // file for the keys. + scoped_nsobject<NSMutableArray> encodings_; + + IBOutlet NSPopUpButton* encodingsMenu_; + NSInteger defaultEncodingIndex_; + StringPrefMember defaultEncoding_; + BOOL changedEncoding_; + + Profile* profile_; // weak +} + +// Profile cannot be NULL. Caller is responsible for showing the window as a +// modal sheet. +- (id)initWithProfile:(Profile*)profile; + +// Action for all the font changing buttons. This starts the font picker. +- (IBAction)selectFont:(id)sender; + +// Sent by the FontManager after the user has selected a font. +- (void)changeFont:(id)fontManager; + +// Performs the closing of the window. This is used by both the cancel button +// and |-save:| after it persists the settings. +- (IBAction)closeSheet:(id)sender; + +// Persists the new values into the preferences and closes the sheet. +- (IBAction)save:(id)sender; + +// Returns the |encodings_| array. This is used by bindings for KVO/KVC. +- (NSArray*)encodings; + +@end diff --git a/chrome/browser/cocoa/font_language_settings_controller.mm b/chrome/browser/cocoa/font_language_settings_controller.mm new file mode 100644 index 0000000..8e0bac5 --- /dev/null +++ b/chrome/browser/cocoa/font_language_settings_controller.mm @@ -0,0 +1,240 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "chrome/browser/cocoa/font_language_settings_controller.h" + +#import <Cocoa/Cocoa.h> +#import "base/mac_util.h" +#include "base/sys_string_conversions.h" +#include "chrome/browser/character_encoding.h" +#include "chrome/browser/profile.h" +#include "chrome/common/pref_names.h" +#include "chrome/common/pref_service.h" + +NSString* const kCharacterInfoEncoding = @"encoding"; +NSString* const kCharacterInfoName = @"name"; +NSString* const kCharacterInfoID = @"id"; + +@interface FontLanguageSettingsController (Private) +- (void)updateDisplayField:(NSTextField*)field withFont:(NSFont*)font; +@end + +@implementation FontLanguageSettingsController + +- (id)initWithProfile:(Profile*)profile { + DCHECK(profile); + NSString* nibpath = [mac_util::MainAppBundle() + pathForResource:@"FontLanguageSettings" + ofType:@"nib"]; + if ((self = [super initWithWindowNibPath:nibpath owner:self])) { + profile_ = profile; + + // Convert the name/size preference values to NSFont objects. + serifName_.Init(prefs::kWebKitSerifFontFamily, profile->GetPrefs(), NULL); + serifSize_.Init(prefs::kWebKitDefaultFontSize, profile->GetPrefs(), NULL); + NSString* serif = base::SysWideToNSString(serifName_.GetValue()); + serifFont_.reset( + [[NSFont fontWithName:serif size:serifSize_.GetValue()] retain]); + + sansSerifName_.Init(prefs::kWebKitSansSerifFontFamily, profile->GetPrefs(), + NULL); + sansSerifSize_.Init(prefs::kWebKitDefaultFontSize, profile->GetPrefs(), + NULL); + NSString* sansSerif = base::SysWideToNSString(sansSerifName_.GetValue()); + sansSerifFont_.reset( + [[NSFont fontWithName:sansSerif + size:sansSerifSize_.GetValue()] retain]); + + fixedWidthName_.Init(prefs::kWebKitFixedFontFamily, profile->GetPrefs(), + NULL); + fixedWidthSize_.Init(prefs::kWebKitDefaultFixedFontSize, + profile->GetPrefs(), NULL); + NSString* fixedWidth = base::SysWideToNSString(fixedWidthName_.GetValue()); + fixedWidthFont_.reset( + [[NSFont fontWithName:fixedWidth + size:fixedWidthSize_.GetValue()] retain]); + + // Generate a list of encodings. + NSInteger count = CharacterEncoding::GetSupportCanonicalEncodingCount(); + NSMutableArray* encodings = [NSMutableArray arrayWithCapacity:count]; + for (NSInteger i = 0; i < count; ++i) { + int commandId = CharacterEncoding::GetEncodingCommandIdByIndex(i); + string16 name = CharacterEncoding::\ + GetCanonicalEncodingDisplayNameByCommandId(commandId); + std::string encoding = + CharacterEncoding::GetCanonicalEncodingNameByCommandId(commandId); + NSDictionary* strings = [NSDictionary dictionaryWithObjectsAndKeys: + base::SysUTF16ToNSString(name), kCharacterInfoName, + base::SysUTF8ToNSString(encoding), kCharacterInfoEncoding, + [NSNumber numberWithInt:commandId], kCharacterInfoID, + nil + ]; + [encodings addObject:strings]; + } + + // Sort the encodings. + scoped_nsobject<NSSortDescriptor> sorter( + [[NSSortDescriptor alloc] initWithKey:kCharacterInfoName + ascending:YES]); + NSArray* sorterArray = [NSArray arrayWithObject:sorter.get()]; + encodings_.reset( + [[encodings sortedArrayUsingDescriptors:sorterArray] retain]); + + // Find and set the default encoding. + defaultEncoding_.Init(prefs::kDefaultCharset, profile->GetPrefs(), NULL); + NSString* defaultEncoding = + base::SysWideToNSString(defaultEncoding_.GetValue()); + NSUInteger index = 0; + for (NSDictionary* entry in encodings_.get()) { + NSString* encoding = [entry objectForKey:kCharacterInfoEncoding]; + if ([encoding isEqualToString:defaultEncoding]) { + defaultEncodingIndex_ = index; + break; + } + ++index; + } + + // Register as a KVO observer so we can receive updates when the encoding + // changes. + [self addObserver:self + forKeyPath:@"defaultEncodingIndex_" + options:NSKeyValueObservingOptionNew + context:NULL]; + } + return self; +} + +- (void)dealloc { + [self removeObserver:self forKeyPath:@"defaultEncodingIndex_"]; + [super dealloc]; +} + +- (void)awakeFromNib { + DCHECK([self window]); + [[self window] setDelegate:self]; + + // Set up the font display. + [self updateDisplayField:serifField_ withFont:serifFont_.get()]; + [self updateDisplayField:sansSerifField_ withFont:sansSerifFont_.get()]; + [self updateDisplayField:fixedWidthField_ withFont:fixedWidthFont_.get()]; +} + +- (void)windowWillClose:(NSNotification*)notif { + [self autorelease]; +} + +- (IBAction)selectFont:(id)sender { + if (sender == serifButton_) { + currentFont_ = serifFont_.get(); + currentType_ = FontSettingSerif; + } else if (sender == sansSerifButton_) { + currentFont_ = sansSerifFont_.get(); + currentType_ = FontSettingSansSerif; + } else if (sender == fixedWidthButton_) { + currentFont_ = fixedWidthFont_.get(); + currentType_ = FontSettingFixed; + } else { + NOTREACHED(); + } + + // Validate whatever editing is currently happening. + if ([[self window] makeFirstResponder:nil]) { + NSFontManager* manager = [NSFontManager sharedFontManager]; + [manager setSelectedFont:currentFont_ isMultiple:NO]; + [manager orderFrontFontPanel:self]; + } +} + +// Called by the font manager when the user has selected a new font. We should +// then persist those changes into the preference system. +- (void)changeFont:(id)fontManager { + switch (currentType_) { + case FontSettingSerif: + serifFont_.reset([[fontManager convertFont:serifFont_] retain]); + [self updateDisplayField:serifField_ withFont:serifFont_.get()]; + changedSerif_ = YES; + break; + case FontSettingSansSerif: + sansSerifFont_.reset([[fontManager convertFont:sansSerifFont_] retain]); + [self updateDisplayField:sansSerifField_ withFont:sansSerifFont_.get()]; + changedSansSerif_ = YES; + break; + case FontSettingFixed: + fixedWidthFont_.reset( + [[fontManager convertFont:fixedWidthFont_] retain]); + [self updateDisplayField:fixedWidthField_ + withFont:fixedWidthFont_.get()]; + changedFixedWidth_ = YES; + break; + default: + NOTREACHED(); + } +} + +- (IBAction)closeSheet:(id)sender { + [NSApp endSheet:[self window]]; +} + +- (IBAction)save:(id)sender { + if (changedSerif_) { + serifName_.SetValue(base::SysNSStringToWide([serifFont_ fontName])); + serifSize_.SetValue([serifFont_ pointSize]); + } + if (changedSansSerif_) { + sansSerifName_.SetValue( + base::SysNSStringToWide([sansSerifFont_ fontName])); + sansSerifSize_.SetValue([sansSerifFont_ pointSize]); + } + if (changedFixedWidth_) { + fixedWidthName_.SetValue( + base::SysNSStringToWide([fixedWidthFont_ fontName])); + fixedWidthSize_.SetValue([fixedWidthFont_ pointSize]); + } + if (changedEncoding_) { + NSDictionary* object = [encodings_ objectAtIndex:defaultEncodingIndex_]; + NSString* newEncoding = [object objectForKey:kCharacterInfoEncoding]; + std::wstring encoding = base::SysNSStringToWide(newEncoding); + defaultEncoding_.SetValue(encoding); + } + [self closeSheet:sender]; +} + +- (NSArray*)encodings { + return encodings_.get(); +} + +// KVO notification. +- (void)observeValueForKeyPath:(NSString*)keyPath + ofObject:(id)object + change:(NSDictionary*)change + context:(void*)context { + // If this is the default encoding, then set the flag to persist the value. + if ([keyPath isEqual:@"defaultEncodingIndex_"]) { + changedEncoding_ = YES; + return; + } + + [super observeValueForKeyPath:keyPath + ofObject:object + change:change + context:context]; +} + +#pragma mark Private + +// This will set the font on |field| to be |font|, and will set the string +// value to something human-readable. +- (void)updateDisplayField:(NSTextField*)field withFont:(NSFont*)font { + if (!font) { + // Something has gone really wrong. Don't make things worse by showing the + // user "(null)". + return; + } + [field setFont:font]; + NSString* value = + [NSString stringWithFormat:@"%@, %g", [font fontName], [font pointSize]]; + [field setStringValue:value]; +} + +@end diff --git a/chrome/browser/cocoa/font_language_settings_controller_unittest.mm b/chrome/browser/cocoa/font_language_settings_controller_unittest.mm new file mode 100644 index 0000000..560c81f --- /dev/null +++ b/chrome/browser/cocoa/font_language_settings_controller_unittest.mm @@ -0,0 +1,61 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/scoped_nsobject.h" +#include "chrome/browser/character_encoding.h" +#include "chrome/browser/cocoa/browser_test_helper.h" +#import "chrome/browser/cocoa/cocoa_test_helper.h" +#import "chrome/browser/cocoa/font_language_settings_controller.h" +#include "chrome/browser/profile.h" +#include "testing/gtest/include/gtest/gtest.h" +#include "testing/platform_test.h" + +@interface FontLanguageSettingsController (Testing) +- (void)updateDisplayField:(NSTextField*)field withFont:(NSFont*)font; +@end + +class FontLanguageSettingsControllerTest : public CocoaTest { + public: + FontLanguageSettingsControllerTest() { + Profile* profile = helper_.profile(); + font_controller_.reset( + [[FontLanguageSettingsController alloc] initWithProfile:profile]); + } + ~FontLanguageSettingsControllerTest() {} + + BrowserTestHelper helper_; + scoped_nsobject<FontLanguageSettingsController> font_controller_; +}; + +TEST_F(FontLanguageSettingsControllerTest, Init) { + ASSERT_EQ(CharacterEncoding::GetSupportCanonicalEncodingCount(), + static_cast<int>([[font_controller_ encodings] count])); +} + +TEST_F(FontLanguageSettingsControllerTest, UpdateDisplayField) { + NSFont* font = [NSFont fontWithName:@"Times-Roman" size:12.0]; + scoped_nsobject<NSTextField> field( + [[NSTextField alloc] initWithFrame:NSMakeRect(100, 100, 100, 100)]); + + [font_controller_ updateDisplayField:field.get() withFont:font]; + + ASSERT_TRUE([[font fontName] isEqualToString:[[field font] fontName]]); + ASSERT_TRUE([@"Times-Roman, 12" isEqualToString:[field stringValue]]); +} + +TEST_F(FontLanguageSettingsControllerTest, UpdateDisplayFieldNilFont) { + scoped_nsobject<NSTextField> field( + [[NSTextField alloc] initWithFrame:NSMakeRect(100, 100, 100, 100)]); + [field setStringValue:@"foo"]; + + [font_controller_ updateDisplayField:field.get() withFont:nil]; + + ASSERT_TRUE([@"foo" isEqualToString:[field stringValue]]); +} + +TEST_F(FontLanguageSettingsControllerTest, UpdateDisplayFieldNilField) { + // Don't crash. + NSFont* font = [NSFont fontWithName:@"Times-Roman" size:12.0]; + [font_controller_ updateDisplayField:nil withFont:font]; +} diff --git a/chrome/browser/cocoa/preferences_window_controller.h b/chrome/browser/cocoa/preferences_window_controller.h index 8380538..53d9800 100644 --- a/chrome/browser/cocoa/preferences_window_controller.h +++ b/chrome/browser/cocoa/preferences_window_controller.h @@ -10,6 +10,7 @@ #include "chrome/common/pref_member.h" @class CustomHomePagesModel; +@class FontLanguageSettingsController; class PrefObserverBridge; class PrefService; class Profile; @@ -95,6 +96,7 @@ class ProfileSyncService; IBOutlet NSButton* downloadLocationButton_; StringPrefMember defaultDownloadLocation_; BooleanPrefMember askForSaveLocation_; + FontLanguageSettingsController* fontLanguageSettings_; StringPrefMember currentTheme_; IBOutlet NSButton* enableLoggingCheckbox_; } @@ -128,6 +130,7 @@ class ProfileSyncService; // Under the hood - (IBAction)browseDownloadLocation:(id)sender; - (IBAction)privacyLearnMore:(id)sender; +- (IBAction)changeFontAndLanguageSettings:(id)sender; // When a toolbar button is clicked - (IBAction)toolbarButtonSelected:(id)sender; diff --git a/chrome/browser/cocoa/preferences_window_controller.mm b/chrome/browser/cocoa/preferences_window_controller.mm index dbedda9a..5e8d99b 100644 --- a/chrome/browser/cocoa/preferences_window_controller.mm +++ b/chrome/browser/cocoa/preferences_window_controller.mm @@ -17,6 +17,7 @@ #include "chrome/browser/browser_process.h" #import "chrome/browser/cocoa/clear_browsing_data_controller.h" #import "chrome/browser/cocoa/custom_home_pages_model.h" +#import "chrome/browser/cocoa/font_language_settings_controller.h" #import "chrome/browser/cocoa/keyword_editor_cocoa_controller.h" #import "chrome/browser/cocoa/search_engine_list_model.h" #include "chrome/browser/extensions/extensions_service.h" @@ -1553,6 +1554,26 @@ const int kDisabledIndex = 1; askForSaveLocation_.SetValue(value); } +- (void)fontAndLanguageEndSheet:(NSWindow*)sheet + returnCode:(NSInteger)returnCode + contextInfo:(void*)context { + [sheet close]; + [sheet orderOut:self]; + fontLanguageSettings_ = nil; +} + +- (IBAction)changeFontAndLanguageSettings:(id)sender { + // Intentionally leak the controller as it will clean itself up when the + // sheet closes. + fontLanguageSettings_ = + [[FontLanguageSettingsController alloc] initWithProfile:profile_]; + [NSApp beginSheet:[fontLanguageSettings_ window] + modalForWindow:[self window] + modalDelegate:self + didEndSelector:@selector(fontAndLanguageEndSheet:returnCode:contextInfo:) + contextInfo:nil]; +} + //------------------------------------------------------------------------- // Callback when preferences are changed. |prefName| is the name of the diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 6b0bab5..b318c1f 100755 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -2155,6 +2155,7 @@ 'app/nibs/ExtensionShelf.xib', 'app/nibs/FindBar.xib', 'app/nibs/FirstRunDialog.xib', + 'app/nibs/FontLanguageSettings.xib', 'app/nibs/HungRendererDialog.xib', 'app/nibs/HttpAuthLoginSheet.xib', 'app/nibs/ImportSettingsDialog.xib', diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index 8d4807f..a02b1f1 100755 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -414,6 +414,8 @@ 'browser/cocoa/first_run_dialog.mm', 'browser/cocoa/focus_tracker.h', 'browser/cocoa/focus_tracker.mm', + 'browser/cocoa/font_language_settings_controller.h', + 'browser/cocoa/font_language_settings_controller.mm', 'browser/cocoa/fullscreen_window.h', 'browser/cocoa/fullscreen_window.mm', 'browser/cocoa/gradient_button_cell.h', diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi index 9e95e40..34b3813 100755 --- a/chrome/chrome_tests.gypi +++ b/chrome/chrome_tests.gypi @@ -557,6 +557,7 @@ 'browser/cocoa/find_bar_view_unittest.mm', 'browser/cocoa/find_pasteboard_unittest.mm', 'browser/cocoa/focus_tracker_unittest.mm', + 'browser/cocoa/font_language_settings_controller_unittest.mm', 'browser/cocoa/fullscreen_window_unittest.mm', 'browser/cocoa/html_dialog_window_controller_unittest.mm', 'browser/cocoa/hung_renderer_controller_unittest.mm', |