Add the paths replacement panel but don't implement anything in it
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 5 Feb 2009 20:44:24 +0000 (15:44 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 5 Feb 2009 20:44:24 +0000 (15:44 -0500)
English.lproj/Preferences.xib
Source/PreferencesController.h
Source/PreferencesController.m

index 37816bf2bb90c6e732c83fc4869e26f4f1b2cc39..fefb73d6c5074353bfeb8e7f4a1362f1640544d2 100644 (file)
@@ -50,6 +50,7 @@
                                                <object class="NSMutableArray" key="dict.sortedKeys">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                        <string>6AEED900-187C-4FE3-B185-35C4C2105744</string>
+                                                       <string>7E7339A3-79C3-4087-B2F7-2479CFD10818</string>
                                                        <string>NSToolbarFlexibleSpaceItem</string>
                                                        <string>NSToolbarSpaceItem</string>
                                                </object>
                                                                <bool key="NSToolbarIsUserRemovable">YES</bool>
                                                                <int key="NSToolbarItemVisibilityPriority">0</int>
                                                        </object>
+                                                       <object class="NSToolbarItem" id="402423991">
+                                                               <object class="NSMutableString" key="NSToolbarItemIdentifier">
+                                                                       <characters key="NS.bytes">7E7339A3-79C3-4087-B2F7-2479CFD10818</characters>
+                                                               </object>
+                                                               <string key="NSToolbarItemLabel">Paths</string>
+                                                               <string key="NSToolbarItemPaletteLabel">Path Replacement</string>
+                                                               <string key="NSToolbarItemToolTip"/>
+                                                               <nil key="NSToolbarItemView"/>
+                                                               <object class="NSCustomResource" key="NSToolbarItemImage">
+                                                                       <string key="NSClassName">NSImage</string>
+                                                                       <string key="NSResourceName">NSFolderSmart</string>
+                                                               </object>
+                                                               <nil key="NSToolbarItemTarget"/>
+                                                               <nil key="NSToolbarItemAction"/>
+                                                               <string key="NSToolbarItemMinSize">{0, 0}</string>
+                                                               <string key="NSToolbarItemMaxSize">{0, 0}</string>
+                                                               <bool key="NSToolbarItemEnabled">YES</bool>
+                                                               <bool key="NSToolbarItemAutovalidates">NO</bool>
+                                                               <int key="NSToolbarItemTag">-1</int>
+                                                               <bool key="NSToolbarIsUserRemovable">YES</bool>
+                                                               <int key="NSToolbarItemVisibilityPriority">0</int>
+                                                       </object>
                                                        <object class="NSToolbarFlexibleSpaceItem" id="672755434">
                                                                <string key="NSToolbarItemIdentifier">NSToolbarFlexibleSpaceItem</string>
                                                                <string key="NSToolbarItemLabel"/>
                                                <reference ref="278862681"/>
                                                <reference ref="672755434"/>
                                                <reference ref="38779174"/>
+                                               <reference ref="402423991"/>
                                        </object>
                                        <object class="NSMutableArray" key="NSToolbarIBDefaultItems">
                                                <bool key="EncodedWithXMLCoder">YES</bool>
                                                <reference ref="38779174"/>
+                                               <reference ref="402423991"/>
                                                <reference ref="278862681"/>
                                                <reference ref="672755434"/>
                                        </object>
                                <reference key="NSSuperview"/>
                                <string key="NSClassName">NSView</string>
                        </object>
+                       <object class="NSCustomView" id="719716429">
+                               <nil key="NSNextResponder"/>
+                               <int key="NSvFlags">268</int>
+                               <string key="NSFrameSize">{163, 96}</string>
+                               <string key="NSClassName">NSView</string>
+                       </object>
                </object>
                <object class="IBObjectContainer" key="IBDocument.Objects">
                        <object class="NSMutableArray" key="connectionRecords">
                                        </object>
                                        <int key="connectionID">49</int>
                                </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBActionConnection" key="connection">
+                                               <string key="label">showPaths:</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="402423991"/>
+                                       </object>
+                                       <int key="connectionID">51</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">pathsPreferencesItem</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="402423991"/>
+                                       </object>
+                                       <int key="connectionID">52</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">pathsPreferencesView</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="719716429"/>
+                                       </object>
+                                       <int key="connectionID">54</int>
+                               </object>
                        </object>
                        <object class="IBMutableOrderedSet" key="objectRecords">
                                <object class="NSArray" key="orderedObjects">
                                                        <reference ref="278862681"/>
                                                        <reference ref="672755434"/>
                                                        <reference ref="38779174"/>
+                                                       <reference ref="402423991"/>
                                                </object>
                                                <reference key="parent" ref="1005"/>
                                        </object>
                                                <reference key="object" ref="38779174"/>
                                                <reference key="parent" ref="14618684"/>
                                        </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">50</int>
+                                               <reference key="object" ref="402423991"/>
+                                               <reference key="parent" ref="14618684"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">53</int>
+                                               <reference key="object" ref="719716429"/>
+                                               <reference key="parent" ref="1002"/>
+                                               <string key="objectName">PathsPreferences</string>
+                                       </object>
                                </object>
                        </object>
                        <object class="NSMutableDictionary" key="flattenedProperties">
                                        <string>40.IBPluginDependency</string>
                                        <string>41.IBPluginDependency</string>
                                        <string>43.IBPluginDependency</string>
+                                       <string>50.IBPluginDependency</string>
+                                       <string>53.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>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                </object>
                        </object>
                        <object class="NSMutableDictionary" key="unlocalizedProperties">
                                </object>
                        </object>
                        <nil key="sourceID"/>
-                       <int key="maxID">49</int>
+                       <int key="maxID">54</int>
                </object>
                <object class="IBClassDescriber" key="IBDocument.Classes">
                        <object class="NSMutableArray" key="referencedPartialClassDescriptions">
                                        <string key="className">PreferencesController</string>
                                        <string key="superclassName">NSWindowController</string>
                                        <object class="NSMutableDictionary" key="actions">
-                                               <string key="NS.key.0">showGeneral:</string>
-                                               <string key="NS.object.0">id</string>
+                                               <bool key="EncodedWithXMLCoder">YES</bool>
+                                               <object class="NSMutableArray" key="dict.sortedKeys">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>showGeneral:</string>
+                                                       <string>showPaths:</string>
+                                               </object>
+                                               <object class="NSMutableArray" key="dict.values">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>id</string>
+                                                       <string>id</string>
+                                               </object>
                                        </object>
                                        <object class="NSMutableDictionary" key="outlets">
                                                <bool key="EncodedWithXMLCoder">YES</bool>
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                        <string>generalPreferencesItem</string>
                                                        <string>generalPreferencesView</string>
+                                                       <string>pathsPreferencesItem</string>
+                                                       <string>pathsPreferencesView</string>
                                                        <string>toolbar</string>
                                                </object>
                                                <object class="NSMutableArray" key="dict.values">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                        <string>NSToolbarItem</string>
                                                        <string>NSView</string>
+                                                       <string>NSToolbarItem</string>
+                                                       <string>NSView</string>
                                                        <string>NSToolbar</string>
                                                </object>
                                        </object>
index 3f680ccc393b9df768119edc77830d651d54c8cb..bcb318cd63b9486e80200c12f7235a3bd418ccf1 100644 (file)
        
        IBOutlet NSView *generalPreferencesView;
        IBOutlet NSToolbarItem *generalPreferencesItem;
+       
+       IBOutlet NSView *pathsPreferencesView;
+       IBOutlet NSToolbarItem *pathsPreferencesItem;
 }
 
 - (void)showPreferencesWindow;
 
 // panel switching
 - (IBAction)showGeneral:(id)sender;
+- (IBAction)showPaths:(id)sender;
 
 @end
index 620048aa35783f249830ea1877456442cbdabaf3..56b18af062e37b8c73d69aa47d7240bccb37e78e 100644 (file)
        [toolbar setSelectedItemIdentifier:[generalPreferencesItem itemIdentifier]];
 }
 
+/**
+ * Shows the path replacement panel
+ */
+- (IBAction)showPaths:(id)sender
+{
+       if ([[self window] contentView] == pathsPreferencesView)
+               return;
+       
+       [[self window] setContentView:pathsPreferencesView];
+       [toolbar setSelectedItemIdentifier:[pathsPreferencesItem itemIdentifier]];
+}
+
 #pragma mark NSToolbar Delegate
 
 /**
  */
 - (NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar
 {
-       return [NSArray arrayWithObjects:[generalPreferencesItem itemIdentifier], nil];
+       return [NSArray arrayWithObjects:
+               [generalPreferencesItem itemIdentifier],
+               [pathsPreferencesItem itemIdentifier],
+               nil
+       ];
 }
 
 @end