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.5 - (show annotations) (download)
Sat Feb 15 05:21:40 2003 UTC (21 years, 1 month ago) by footashida
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +8 -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:(id)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
15 item = [self addToolbarItemWithIdentifier:@"send_later"
16 label:@"Label_SendLater"
17 imageName:@"send_32.tiff"
18 isDefault:YES];
19
20 item = [self addToolbarItemWithIdentifier:@"draft"
21 label:@"Label_Draft"
22 imageName:@"create_32.tiff"
23 isDefault:YES];
24
25 item = [self addToolbarItemWithIdentifier:@"delete"
26 label:@"Label_Delete"
27 imageName:@"delete_32.tiff"
28 isDefault:YES];
29
30 item = [self addToolbarItemWithIdentifier:@"attach"
31 label:@"Label_Attach"
32 imageName:@"attach_32.tiff"
33 isDefault:YES];
34
35 item = [self addToolbarItemWithIdentifier:@"address"
36 label:@"Label_Address"
37 imageName:@"addresses_32.tiff"
38 isDefault:YES];
39 [item setTarget:controller];
40 [item setAction:@selector(showAddressBook:)];
41
42 item = [self addToolbarItemWithIdentifier:@"edit_headers"
43 label:@"Label_Edit_Headers"
44 imageName:@"create_32.tiff"
45 isDefault:YES];
46 [item setTarget:controller];
47 [item setAction:@selector(showSheet:)];
48 }
49 return self;
50 }
51
52 @end

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