Develop and Download Open Source Software

Browse CVS Repository

Diff of /undmail/guiproto/MainController.m

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

revision 1.1 by footashida, Mon Nov 11 15:40:37 2002 UTC revision 1.2 by footashida, Sun Nov 17 03:58:21 2002 UTC
# Line 1  Line 1 
1  #import "MainController.h"  #import "MainController.h"
2  #import "DummyOutlineDataSource.h"  #import "DummyOutlineDataSource.h"
3  #import "ToolbarItemSource.h"  #import "MainToolbarSource.h"
4  #import "IconedCell.h"  #import "IconedCell.h"
5  #import "ComposeToolbarItemSource.h"  #import "ComposeToolbarSource.h"
6    
7  @implementation MainController  @implementation MainController
8  -(void)awakeFromNib{  -(void)awakeFromNib{
9      DummyOutlineDataSource *ds;      DummyOutlineDataSource *ds;
10      NSToolbar *toolbar;      NSToolbar *toolbar;
11      ToolbarItemSource *toolbarItemSource;      MainToolbarSource *mainToolbarSource;
12      ComposeToolbarItemSource *composeToolbarItemSource;      ComposeToolbarSource *composeToolbarSource;
13            
14      ds = [[DummyOutlineDataSource alloc] init];      ds = [[DummyOutlineDataSource alloc] init];
15      [folderTree setDataSource:ds];      [folderTree setDataSource:ds];
16    
17      toolbar = [[NSToolbar alloc] initWithIdentifier:@"myToolBar"];      toolbar = [[NSToolbar alloc] initWithIdentifier:@"myToolBar"];
18      toolbarItemSource = [[ToolbarItemSource alloc] initWithController:self];      mainToolbarSource = [[MainToolbarSource alloc] initWithController:self];
19      [toolbar setDelegate:toolbarItemSource];      [toolbar setDelegate:mainToolbarSource];
20      [window setToolbar:toolbar];      [window setToolbar:toolbar];
21      [toolbar release];      [toolbar release];
22            
23      toolbar = [[NSToolbar alloc] initWithIdentifier:@"componentToolBar"];      toolbar = [[NSToolbar alloc] initWithIdentifier:@"componentToolBar"];
24      composeToolbarItemSource = [[ComposeToolbarItemSource alloc] initWithController:self];      composeToolbarSource = [[ComposeToolbarSource alloc] initWithController:self];
25      [toolbar setDelegate:composeToolbarItemSource];      [toolbar setDelegate:composeToolbarSource];
26      [composeWindow setToolbar:toolbar];      [composeWindow setToolbar:toolbar];
27      [toolbar release];      [toolbar release];
28            
# Line 42  Line 42 
42  -(IBAction)findMessage:(id)sender{  -(IBAction)findMessage:(id)sender{
43      [searchWindow makeKeyAndOrderFront:nil];      [searchWindow makeKeyAndOrderFront:nil];
44  }  }
45    -(IBAction)showPreference:(id)sender{
46        [preferenceWindow makeKeyAndOrderFront:nil];
47    }
48    
49  @end  @end

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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