Develop and Download Open Source Software

Browse CVS Repository

Contents of /undmail/guiproto/ComposeToolbarSource.m

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


Revision 1.3 - (show annotations) (download)
Sun Jan 26 16:30:09 2003 UTC (21 years, 2 months ago) by footashida
Branch: MAIN
Changes since 1.2: +2 -0 lines
*** empty log message ***

1 #import "ComposeToolbarSource.h"
2 #import "MainController.h"
3
4 extern NSToolbarItem * MakeToolbarItem(NSString *identifier, NSString *label, NSString *imageName);
5
6 @implementation ComposeToolbarSource
7 - (id)initWithController:(MainController *)controller{
8 if(self = [super init]){
9 NSToolbarItem *item;
10 item = [self addToolbarItemWithIdentifier:@"send"
11 label:@"Label_Send"
12 imageName:@"send_32.tiff"
13 isDefault:YES];
14 item = [self addToolbarItemWithIdentifier:@"send_later"
15 label:@"Label_SendLater"
16 imageName:@"send_32.tiff"
17 isDefault:YES];
18 item = [self addToolbarItemWithIdentifier:@"draft"
19 label:@"Label_Draft"
20 imageName:@"create_32.tiff"
21 isDefault:YES];
22 item = [self addToolbarItemWithIdentifier:@"delete"
23 label:@"Label_Delete"
24 imageName:@"delete_32.tiff"
25 isDefault:YES];
26 item = [self addToolbarItemWithIdentifier:@"attach"
27 label:@"Label_Attach"
28 imageName:@"attach_32.tiff"
29 isDefault:YES];
30 item = [self addToolbarItemWithIdentifier:@"address"
31 label:@"Label_Address"
32 imageName:@"addresses_32.tiff"
33 isDefault:YES];
34 [item setTarget:controller];
35 [item setAction:@selector(showAddressBook)];
36 item = [self addToolbarItemWithIdentifier:@"edit_headers"
37 label:@"Label_Edit_Headers"
38 imageName:@"create_32.tiff"
39 isDefault:YES];
40 }
41 return self;
42 }
43
44 @end

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