Browse CVS Repository
Contents of /undmail/guiproto/PreferenceToolbarSource.m
Parent Directory
| Revision Log
| Revision Graph
Revision 1.6 -
( show annotations)
( download)
Sat Jan 25 13:20:46 2003 UTC
(21 years, 1 month ago)
by footashida
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
*** empty log message ***
| 1 |
// |
| 2 |
// PreferenceToolbarSource.m |
| 3 |
// undproto |
| 4 |
// |
| 5 |
// |
| 6 |
|
| 7 |
#import "PreferenceToolbarSource.h" |
| 8 |
|
| 9 |
|
| 10 |
@implementation PreferenceToolbarSource |
| 11 |
- (id)initWithController:(id)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 |
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 |
item = [self addToolbarItemWithIdentifier:@"template_tab" |
| 40 |
label:@"Label_Template" |
| 41 |
imageName:@"template_32.tiff" |
| 42 |
isDefault:YES]; |
| 43 |
|
| 44 |
[item setTarget:controller]; |
| 45 |
[item setAction:@selector(selectPreferenceTab:)]; |
| 46 |
|
| 47 |
item = [self addToolbarItemWithIdentifier:@"rule_tab" |
| 48 |
label:@"Label_Rule" |
| 49 |
imageName:@"GNUMail.tiff" |
| 50 |
isDefault:YES]; |
| 51 |
|
| 52 |
[item setTarget:controller]; |
| 53 |
[item setAction:@selector(selectPreferenceTab:)]; |
| 54 |
|
| 55 |
} |
| 56 |
return self; |
| 57 |
} |
| 58 |
|
| 59 |
@end |
|