Diff for /chimera/MyBrowserView.mm between versions 1.14 and 1.18

version 1.14, 2002/02/11 03:43:12 version 1.18, 2002/02/13 01:58:55
Line 40  static const char* ioServiceContractID = Line 40  static const char* ioServiceContractID =
   [browserView loadURI:[NSURL URLWithString:[urlbar stringValue]] flags:NSLoadFlagsNone];    [browserView loadURI:[NSURL URLWithString:[urlbar stringValue]] flags:NSLoadFlagsNone];
 }  }
   
   -(void)disconnectView
   {
       urlbar = nil;
       status = nil;
       progress = nil;
       progressSuper = nil;
       mIsPrimary = NO;
       [[NSNotificationCenter defaultCenter] removeObserver:self];
       
       //[browserView setActive: NO];
   }
   
   - (id)initWithFrame:(NSRect)frameRect
   {
       [super initWithFrame: frameRect];
        browserView = [[[NSBrowserView alloc] initWithFrame:[self bounds]] autorelease];
       [self addSubview:browserView];
       [browserView setContainer:self];
       [browserView addListener:self];
       mIsBusy = NO;
       return self;
   }
   
 -(void)makePrimaryBrowserView: (NSTabViewItem*)tab urlbar: (id)aUrlbar status: (id)aStatus  -(void)makePrimaryBrowserView: (NSTabViewItem*)tab urlbar: (id)aUrlbar status: (id)aStatus
     progress: (id)aProgress windowController: aWindowController      progress: (id)aProgress windowController: aWindowController
 {  {
Line 50  static const char* ioServiceContractID = Line 73  static const char* ioServiceContractID =
   progressSuper = [aProgress superview];    progressSuper = [aProgress superview];
   mWindowController = aWindowController;    mWindowController = aWindowController;
       
  [progress retain];  if (!mIsBusy) {
  [progress removeFromSuperview];    [progress retain];
    [progress removeFromSuperview];
   }
   
   defaultStatus = NULL;    defaultStatus = NULL;
   loadingStatus = DOCUMENT_DONE_STRING;    loadingStatus = DOCUMENT_DONE_STRING;
   [status setStringValue:loadingStatus];    [status setStringValue:loadingStatus];
       
   mIsBusy = NO;  
   mIsPrimary = YES;    mIsPrimary = YES;
     
   browserView = [[[NSBrowserView alloc] initWithFrame:[self bounds]] autorelease];  
   [self addSubview:browserView];  
   [browserView setContainer:self];  
   [browserView addListener:self];  
   
   nsCOMPtr<nsIIOService> ioService(do_GetService(ioServiceContractID));    nsCOMPtr<nsIIOService> ioService(do_GetService(ioServiceContractID));
   if (!ioService)    if (!ioService)
     return;      return;
Line 77  static const char* ioServiceContractID = Line 96  static const char* ioServiceContractID =
         selector:@selector(offlineModeChanged:)          selector:@selector(offlineModeChanged:)
         name:@"offlineModeChanged"          name:@"offlineModeChanged"
         object:nil];          object:nil];
           
     // Update the URL bar.
     [mWindowController updateLocationFields:[self getCurrentURLSpec]];
     
     //[browserView setActive: YES];
   }
   
   -(NSString*)getCurrentURLSpec
   {
     return [browserView getCurrentURLSpec];
 }  }
   
 - (void)awakeFromNib   - (void)awakeFromNib 
Line 111  static const char* ioServiceContractID = Line 140  static const char* ioServiceContractID =
   [status setStringValue:loadingStatus];    [status setStringValue:loadingStatus];
   
   mIsBusy = YES;    mIsBusy = YES;
     [mTab setLabel: LOADING_STRING];
     
   if (mWindowController)    if (mWindowController)
     [mWindowController updateToolbarItems];      [mWindowController updateToolbarItems];
 }  }
Line 215  static const char* ioServiceContractID = Line 246  static const char* ioServiceContractID =
     if (title && ![title isEqualToString:@""])      if (title && ![title isEqualToString:@""])
         [mTab setLabel:title];          [mTab setLabel:title];
     else      else
        [mTab setLabele:@"Untitled"];        [mTab setLabel:@"Untitled"];
 }  }
   
 - (void)offlineModeChanged: (NSNotification*)aNotification  - (void)offlineModeChanged: (NSNotification*)aNotification

Removed from v.1.14  
changed lines
  Added in v.1.18


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>