Browse CVS Repository
Annotation of /undmail/guiproto/PreferenceToolbarSource.m
Parent Directory
| Revision Log
| Revision Graph
Revision 1.2 -
( hide annotations)
( download)
Fri Nov 22 15:10:35 2002 UTC
(21 years, 4 months ago)
by footashida
Branch: MAIN
Changes since 1.1: +8 -0 lines
*** empty log message ***
| 1 |
footashida |
1.1 |
// |
| 2 |
|
|
// PreferenceToolbarSource.m |
| 3 |
|
|
// undproto |
| 4 |
|
|
// |
| 5 |
|
|
// |
| 6 |
|
|
|
| 7 |
|
|
#import "PreferenceToolbarSource.h" |
| 8 |
|
|
|
| 9 |
|
|
|
| 10 |
|
|
@implementation PreferenceToolbarSource |
| 11 |
|
|
- (id)initWithController:(MainController *)controller{ |
| 12 |
|
|
if(self = [super init]){ |
| 13 |
|
|
NSToolbarItem *item; |
| 14 |
|
|
|
| 15 |
|
|
item = [self addToolbarItemWithIdentifier:@"general_tab" |
| 16 |
|
|
label:@"Label_General" |
| 17 |
|
|
imageName:@"GNUMail.tiff" |
| 18 |
|
|
isDefault:YES]; |
| 19 |
|
|
|
| 20 |
|
|
[item setTarget:controller]; |
| 21 |
|
|
[item setAction:@selector(selectPreferenceTab:)]; |
| 22 |
|
|
|
| 23 |
|
|
item = [self addToolbarItemWithIdentifier:@"account_tab" |
| 24 |
|
|
label:@"Label_Account" |
| 25 |
|
|
imageName:@"GNUMail.tiff" |
| 26 |
|
|
isDefault:YES]; |
| 27 |
|
|
|
| 28 |
|
|
[item setTarget:controller]; |
| 29 |
|
|
[item setAction:@selector(selectPreferenceTab:)]; |
| 30 |
|
|
|
| 31 |
footashida |
1.2 |
item = [self addToolbarItemWithIdentifier:@"view_tab" |
| 32 |
|
|
label:@"Label_View" |
| 33 |
|
|
imageName:@"GNUMail.tiff" |
| 34 |
|
|
isDefault:YES]; |
| 35 |
|
|
|
| 36 |
|
|
[item setTarget:controller]; |
| 37 |
|
|
[item setAction:@selector(selectPreferenceTab:)]; |
| 38 |
|
|
|
| 39 |
footashida |
1.1 |
} |
| 40 |
|
|
return self; |
| 41 |
|
|
} |
| 42 |
|
|
|
| 43 |
|
|
@end |
|