Changeset 7756
- Timestamp:
- Jan 19, 2009, 10:16:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5x/macosx/Controller.m
r7754 r7756 4058 4058 4059 4059 NSRect allRect = [fNoFilterButton frame]; 4060 4061 4060 NSRect activeRect = [fActiveFilterButton frame]; 4062 activeRect.origin.x = NSMaxX(allRect) + 1.0;4063 4064 4061 NSRect downloadRect = [fDownloadFilterButton frame]; 4065 downloadRect.origin.x = NSMaxX(activeRect) + 1.0;4066 4067 4062 NSRect seedRect = [fSeedFilterButton frame]; 4068 seedRect.origin.x = NSMaxX(downloadRect) + 1.0;4069 4070 4063 NSRect pauseRect = [fPauseFilterButton frame]; 4071 pauseRect.origin.x = NSMaxX(seedRect) + 1.0;4072 4064 4073 4065 //size search filter to not overlap buttons … … 4094 4086 4095 4087 //decrease button widths proportionally 4096 const NSInteger all = NSWidth(allRect) * (allowedWidth / currentTotal); 4097 const NSInteger active = NSWidth(activeRect) * (allowedWidth / currentTotal); 4098 const NSInteger download = NSWidth(downloadRect) * (allowedWidth / currentTotal); 4099 const NSInteger seed = NSWidth(seedRect) * (allowedWidth / currentTotal); 4100 const NSInteger paused = NSWidth(pauseRect) * (allowedWidth / currentTotal); 4101 4102 allRect.size.width = all; 4103 4104 activeRect.size.width = active; 4105 activeRect.origin.x = NSMaxX(allRect) + 1.0; 4106 4107 downloadRect.size.width = download; 4108 downloadRect.origin.x = NSMaxX(activeRect) + 1.0; 4109 4110 seedRect.size.width = seed; 4111 seedRect.origin.x = NSMaxX(downloadRect) + 1.0; 4112 4113 pauseRect.size.width = paused; 4114 pauseRect.origin.x = NSMaxX(seedRect) + 1.0; 4088 allRect.size.width = NSWidth(allRect) * (allowedWidth / currentTotal); 4089 activeRect.size.width = NSWidth(activeRect) * (allowedWidth / currentTotal); 4090 downloadRect.size.width = NSWidth(downloadRect) * (allowedWidth / currentTotal); 4091 seedRect.size.width = NSWidth(seedRect) * (allowedWidth / currentTotal); 4092 pauseRect.size.width = NSWidth(pauseRect) * (allowedWidth / currentTotal); 4115 4093 } 4116 4094 else; 4095 4096 activeRect.origin.x = NSMaxX(allRect) + 1.0; 4097 downloadRect.origin.x = NSMaxX(activeRect) + 1.0; 4098 seedRect.origin.x = NSMaxX(downloadRect) + 1.0; 4099 pauseRect.origin.x = NSMaxX(seedRect) + 1.0; 4117 4100 4118 4101 [fNoFilterButton setFrame: allRect];
Note: See TracChangeset
for help on using the changeset viewer.