Changeset 660
- Timestamp:
- Jul 22, 2006, 6:25:11 PM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.h
r659 r660 181 181 - (void) setAutoSize: (NSNotification *) notification; 182 182 - (void) setWindowSizeToFit; 183 - (NSRect) windowFrameFor : (int) count;183 - (NSRect) windowFrameForAmount: (int) amount; 184 184 185 185 - (void) showMainWindow: (id) sender; -
trunk/macosx/Controller.m
r659 r660 666 666 667 667 NSBeginAlertSheet(title, @"Remove", @"Cancel", nil, fWindow, self, 668 @selector(removeSheetDidEnd:returnCode:contextInfo:), nil, dict, message);668 nil, @selector(removeSheetDidEnd:returnCode:contextInfo:), dict, message); 669 669 return; 670 670 } … … 2121 2121 - (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame 2122 2122 { 2123 return [self windowFrameFor : [fFilteredTorrents count]];2123 return [self windowFrameForAmount: [fFilteredTorrents count]]; 2124 2124 } 2125 2125 … … 2133 2133 { 2134 2134 if ([fDefaults boolForKey: @"AutoSize"]) 2135 [fWindow setFrame: [self windowFrameFor : [fTorrents count]] display: YES animate: YES];2136 } 2137 2138 - (NSRect) windowFrameFor : (int) count2135 [fWindow setFrame: [self windowFrameForAmount: [fTorrents count]] display: YES animate: YES]; 2136 } 2137 2138 - (NSRect) windowFrameForAmount: (int) amount 2139 2139 { 2140 2140 NSRect frame = [fWindow frame]; 2141 2141 float newHeight = frame.size.height - [fScrollView frame].size.height 2142 + count * ([fTableView rowHeight] + [fTableView intercellSpacing].height);2142 + amount * ([fTableView rowHeight] + [fTableView intercellSpacing].height); 2143 2143 2144 2144 float minHeight = [fWindow minSize].height; -
trunk/macosx/English.lproj/MainMenu.nib/info.nib
r652 r660 12 12 <string>366 546 420 63 0 0 1152 842 </string> 13 13 <key>1603</key> 14 <string>3 37 544477 67 0 0 1152 842 </string>14 <string>360 371 477 67 0 0 1152 842 </string> 15 15 <key>29</key> 16 16 <string>9 780 451 44 0 0 1152 842 </string> … … 32 32 <key>IBOpenObjects</key> 33 33 <array> 34 <integer>1041</integer> 35 <integer>21</integer> 34 36 <integer>29</integer> 35 <integer>1041</integer>36 <integer>1603</integer>37 37 </array> 38 38 <key>IBSystem Version</key>
Note: See TracChangeset
for help on using the changeset viewer.