Browse CVS Repository
Contents of /undmail/guiproto/MainToolbarSource.m
Parent Directory
| Revision Log
| Revision Graph
Revision 1.2 -
( show annotations)
( download)
Sun Feb 16 09:05:53 2003 UTC
(21 years, 1 month ago)
by footashida
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -0 lines
*** empty log message ***
| 1 |
|
| 2 |
|
| 3 |
#import "MainToolbarSource.h" |
| 4 |
|
| 5 |
|
| 6 |
@implementation MainToolbarSource |
| 7 |
- (id)initWithController:(MainController *)controller{ |
| 8 |
if(self = [super init]){ |
| 9 |
NSToolbarItem *item; |
| 10 |
|
| 11 |
item = [self addToolbarItemWithIdentifier:@"get_mail" |
| 12 |
label:@"Label_GetMail" |
| 13 |
imageName:@"GNUMail.tiff" |
| 14 |
isDefault:YES]; |
| 15 |
|
| 16 |
item = [self addToolbarItemWithIdentifier:@"compose" |
| 17 |
label:@"Label_Compose" |
| 18 |
imageName:@"create_32.tiff" |
| 19 |
isDefault:YES]; |
| 20 |
[item setTarget:controller]; |
| 21 |
[item setAction:@selector(createNewMessage:)]; |
| 22 |
|
| 23 |
item = [self addToolbarItemWithIdentifier:@"reply" |
| 24 |
label:@"Label_Reply" |
| 25 |
imageName:@"reply_32.tiff" |
| 26 |
isDefault:YES]; |
| 27 |
|
| 28 |
item = [self addToolbarItemWithIdentifier:@"forward" |
| 29 |
label:@"Label_Forward" |
| 30 |
imageName:@"forward_32.tiff" |
| 31 |
isDefault:YES]; |
| 32 |
|
| 33 |
item = [self addToolbarItemWithIdentifier:@"find" |
| 34 |
label:@"Label_Find" |
| 35 |
imageName:@"find_32.tiff" |
| 36 |
isDefault:YES]; |
| 37 |
|
| 38 |
item = [self addToolbarItemWithIdentifier:@"delete" |
| 39 |
label:@"Label_Delete" |
| 40 |
imageName:@"delete_32.tiff" |
| 41 |
isDefault:YES]; |
| 42 |
item = [self addToolbarItemWithIdentifier:@"address" |
| 43 |
label:@"Label_Address" |
| 44 |
imageName:@"addresses_32.tiff" |
| 45 |
isDefault:YES]; |
| 46 |
[item setTarget:controller]; |
| 47 |
[item setAction:@selector(showAddressBook:)]; |
| 48 |
|
| 49 |
} |
| 50 |
return self; |
| 51 |
} |
| 52 |
@end |
|