| 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 |
} |
} |
| 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]; |
| 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]]; |