Develop and Download Open Source Software

Browse CVS Repository

Annotation of /undmail/guiproto/PreferenceToolbarSource.m

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


Revision 1.4 - (hide annotations) (download)
Fri Nov 22 16:06:33 2002 UTC (21 years, 4 months ago) by footashida
Branch: MAIN
Changes since 1.3: +9 -0 lines
*** empty log message ***

1 footashida 1.1 //
2     // PreferenceToolbarSource.m
3     // undproto
4     //
5     //
6    
7     #import "PreferenceToolbarSource.h"
8    
9    
10     @implementation PreferenceToolbarSource
11     - (id)initWithController:(MainController *)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 footashida 1.2 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 footashida 1.4
39 footashida 1.3 item = [self addToolbarItemWithIdentifier:@"template_tab"
40     label:@"Label_Template"
41 footashida 1.4 imageName:@"GNUMail.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 footashida 1.3 imageName:@"GNUMail.tiff"
50     isDefault:YES];
51    
52     [item setTarget:controller];
53     [item setAction:@selector(selectPreferenceTab:)];
54 footashida 1.2
55 footashida 1.1 }
56     return self;
57     }
58    
59     @end

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