Ignore:
Timestamp:
Dec 13, 2009, 9:42:45 PM (13 years ago)
Author:
livings124
Message:

on open, make sure the filter bar's layout is correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9722 r9744  
    565565    [self applyFilter: nil];
    566566   
    567     [fWindow makeKeyAndOrderFront: nil];
     567    [fWindow makeKeyAndOrderFront: nil];
     568   
     569    //can't be done earlier
     570    if (![fFilterBar isHidden])
     571        [self resizeFilterBar];
    568572   
    569573    if ([fDefaults boolForKey: @"InfoVisible"])
     
    40914095}
    40924096
    4093 - (void) updateForExpandCollape
    4094 {
    4095     [self setWindowSizeToFit];
    4096     [self setBottomCountText: YES];
    4097 }
    4098 
    4099 - (void) showMainWindow: (id) sender
    4100 {
    4101     [fWindow makeKeyAndOrderFront: nil];
    4102 }
    4103 
    4104 - (void) windowDidBecomeMain: (NSNotification *) notification
    4105 {
    4106     [fBadger clearCompleted];
    4107     [self updateUI];
    4108 }
    4109 
    4110 - (NSSize) windowWillResize: (NSWindow *) sender toSize: (NSSize) proposedFrameSize
    4111 {
    4112     //only resize horizontally if autosize is enabled
    4113     if ([fDefaults boolForKey: @"AutoSize"])
    4114         proposedFrameSize.height = [fWindow frame].size.height;
    4115     return proposedFrameSize;
    4116 }
    4117 
    4118 - (void) windowDidResize: (NSNotification *) notification
    4119 {
    4120     if (![fStatusBar isHidden])
    4121         [self resizeStatusButton];
    4122    
    4123     if ([fFilterBar isHidden])
    4124         return;
    4125    
     4097- (void) resizeFilterBar
     4098{
    41264099    //replace all buttons
    41274100    [fNoFilterButton sizeToFit];
     
    41824155}
    41834156
     4157- (void) updateForExpandCollape
     4158{
     4159    [self setWindowSizeToFit];
     4160    [self setBottomCountText: YES];
     4161}
     4162
     4163- (void) showMainWindow: (id) sender
     4164{
     4165    [fWindow makeKeyAndOrderFront: nil];
     4166}
     4167
     4168- (void) windowDidBecomeMain: (NSNotification *) notification
     4169{
     4170    [fBadger clearCompleted];
     4171    [self updateUI];
     4172}
     4173
     4174- (NSSize) windowWillResize: (NSWindow *) sender toSize: (NSSize) proposedFrameSize
     4175{
     4176    //only resize horizontally if autosize is enabled
     4177    if ([fDefaults boolForKey: @"AutoSize"])
     4178        proposedFrameSize.height = [fWindow frame].size.height;
     4179    return proposedFrameSize;
     4180}
     4181
     4182- (void) windowDidResize: (NSNotification *) notification
     4183{
     4184    if (![fStatusBar isHidden])
     4185        [self resizeStatusButton];
     4186   
     4187    if ([fFilterBar isHidden])
     4188        return;
     4189
     4190    [self resizeFilterBar];
     4191}
     4192
    41844193- (void) applicationWillUnhide: (NSNotification *) notification
    41854194{
Note: See TracChangeset for help on using the changeset viewer.