Develop and Download Open Source Software

Browse CVS Repository

Annotation of /undmail/guiproto/ComposeToolbarSource.m

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


Revision 1.5 - (hide annotations) (download)
Sat Feb 15 05:21:40 2003 UTC (21 years, 2 months ago) by footashida
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +8 -0 lines
*** empty log message ***

1 footashida 1.1 #import "ComposeToolbarSource.h"
2     #import "MainController.h"
3    
4     extern NSToolbarItem * MakeToolbarItem(NSString *identifier, NSString *label, NSString *imageName);
5    
6     @implementation ComposeToolbarSource
7 footashida 1.4 - (id)initWithController:(id)controller{
8 footashida 1.1 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 footashida 1.5
15 footashida 1.1 item = [self addToolbarItemWithIdentifier:@"send_later"
16     label:@"Label_SendLater"
17     imageName:@"send_32.tiff"
18     isDefault:YES];
19 footashida 1.5
20 footashida 1.1 item = [self addToolbarItemWithIdentifier:@"draft"
21     label:@"Label_Draft"
22     imageName:@"create_32.tiff"
23     isDefault:YES];
24 footashida 1.5
25 footashida 1.1 item = [self addToolbarItemWithIdentifier:@"delete"
26     label:@"Label_Delete"
27     imageName:@"delete_32.tiff"
28     isDefault:YES];
29 footashida 1.5
30 footashida 1.1 item = [self addToolbarItemWithIdentifier:@"attach"
31     label:@"Label_Attach"
32     imageName:@"attach_32.tiff"
33     isDefault:YES];
34 footashida 1.5
35 footashida 1.1 item = [self addToolbarItemWithIdentifier:@"address"
36     label:@"Label_Address"
37     imageName:@"addresses_32.tiff"
38     isDefault:YES];
39 footashida 1.3 [item setTarget:controller];
40 footashida 1.4 [item setAction:@selector(showAddressBook:)];
41 footashida 1.5
42 footashida 1.2 item = [self addToolbarItemWithIdentifier:@"edit_headers"
43     label:@"Label_Edit_Headers"
44     imageName:@"create_32.tiff"
45     isDefault:YES];
46 footashida 1.5 [item setTarget:controller];
47     [item setAction:@selector(showSheet:)];
48 footashida 1.1 }
49     return self;
50     }
51    
52     @end

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