Develop and Download Open Source Software

Browse CVS Repository

Diff of /undmail/guiproto/MainController.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6 by footashida, Fri Nov 22 15:10:34 2002 UTC revision 1.7 by footashida, Fri Nov 22 16:00:40 2002 UTC
# Line 79  Line 79 
79          [self changePreferenceView:generalPref];          [self changePreferenceView:generalPref];
80      }else if([identifier isEqual:@"view_tab"]){      }else if([identifier isEqual:@"view_tab"]){
81          [self changePreferenceView:viewPref];          [self changePreferenceView:viewPref];
82      }else{      }else if([identifier isEqual:@"account_tab"]){
83          [self changePreferenceView:accountPref];          [self changePreferenceView:accountPref];
84        }else if([identifier isEqual:@"template_tab"]){
85            [self changePreferenceView:templatePref];
86        }else{
87            // ありえないはず・・・
88      }      }
89            
90  }  }
# Line 93  Line 97 
97      float toolbarHeight;    // ツールバーの高さ      float toolbarHeight;    // ツールバーの高さ
98            
99      NSView *contentsView;   // Windowのコンテンツビュー      NSView *contentsView;   // Windowのコンテンツビュー
100        NSView *oldView;
101        NSView *dumView;
102            
103      oldWindowRect = [preferenceWindow frame];      oldWindowRect = [preferenceWindow frame];
104      oldContentRect = [[preferenceWindow contentView] bounds];      oldContentRect = [[preferenceWindow contentView] bounds];
# Line 112  Line 118 
118          = toolbarHeight + newContentRect.size.height;          = toolbarHeight + newContentRect.size.height;
119            
120      contentsView = [preferenceWindow contentView];      contentsView = [preferenceWindow contentView];
121      [contentsView replaceSubview:[[contentsView subviews] objectAtIndex:0] with:newView];      oldView = [[contentsView subviews] objectAtIndex:0];
122        dumView = [[NSView alloc] init];
123        [contentsView replaceSubview:oldView with:dumView];
124      [preferenceWindow setFrame:newWindowRect display:YES animate:YES];      [preferenceWindow setFrame:newWindowRect display:YES animate:YES];
125        [contentsView replaceSubview:dumView with:newView];
126        [dumView release];
127            
128      [popServerTable setDataSource:[[POPServerTableDataSource alloc] init]];      [popServerTable setDataSource:[[POPServerTableDataSource alloc] init]];
129      [smtpServerTable setDataSource:[[SMTPServerTableDataSource alloc] init]];      [smtpServerTable setDataSource:[[SMTPServerTableDataSource alloc] init]];

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26