Changeset 904


Ignore:
Timestamp:
Sep 24, 2006, 10:39:21 PM (17 years ago)
Author:
livings124
Message:

Changes to handling of the pieces viewer's window.

Location:
branches/nat-traversal
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/nat-traversal/PiecesWindowController.m

    r903 r904  
    4343   
    4444    return self;
     45}
     46
     47- (void) awakeFromNib
     48{
     49    //window location and size
     50    NSPanel * window = (NSPanel *)[self window];
     51   
     52    [window setBecomesKeyOnlyIfNeeded: YES];
     53   
     54    [window setFrameAutosaveName: @"PiecesWindowFrame"];
     55    [window setFrameUsingName: @"PiecesWindowFrame"];
    4556}
    4657
  • branches/nat-traversal/macosx/Controller.m

    r903 r904  
    360360        [self showInfo: nil];
    361361   
     362    if ([fDefaults boolForKey: @"PiecesViewerVisible"])
     363        [self showPiecesView: nil];
     364   
    362365    //timer to auto toggle speed limit
    363366    [self autoSpeedLimitChange: nil];
     
    426429    //remember window states and close all windows
    427430    [fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"];
     431    [fDefaults setBool: [[fPiecesWindowController window] isVisible] forKey: @"PiecesViewerVisible"];
    428432    [[NSApp windows] makeObjectsPerformSelector: @selector(close)];
    429433    [self showStatusBar: NO animate: NO];
  • branches/nat-traversal/macosx/Defaults.plist

    r900 r904  
    5555        <key>NatTraversal</key>
    5656        <true/>
     57        <key>PiecesViewerVisible</key>
     58        <false/>
    5759        <key>PlayDownloadSound</key>
    5860        <true/>
  • branches/nat-traversal/macosx/English.lproj/PiecesWindow.nib/info.nib

    r903 r904  
    44<dict>
    55        <key>IBDocumentLocation</key>
    6         <string>69 60 356 240 0 0 1024 746 </string>
     6        <string>82 71 356 240 0 0 1152 842 </string>
    77        <key>IBFramework Version</key>
    88        <string>446.1</string>
     9        <key>IBLockedObjects</key>
     10        <array>
     11                <integer>5</integer>
     12        </array>
    913        <key>IBOpenObjects</key>
    1014        <array>
Note: See TracChangeset for help on using the changeset viewer.