Diff for /chimera/MainController.mm between versions 1.38 and 1.44

version 1.38, 2002/04/09 17:17:11 version 1.44, 2002/04/17 07:38:31
Line 73  static const char* ioServiceContractID = Line 73  static const char* ioServiceContractID =
     [mSplashScreen close];      [mSplashScreen close];
   
     [mBookmarksMenu setAutoenablesItems: NO];      [mBookmarksMenu setAutoenablesItems: NO];
    mMenuBookmarks = new BookmarksService(nil);    mMenuBookmarks = new BookmarksService((BookmarksDataSource*)nil);
     mMenuBookmarks->AddObserver();      mMenuBookmarks->AddObserver();
     mMenuBookmarks->ConstructBookmarksMenu(mBookmarksMenu, nsnull);      mMenuBookmarks->ConstructBookmarksMenu(mBookmarksMenu, nsnull);
     BookmarksService::gMainController = self;      BookmarksService::gMainController = self;
Line 155  static const char* ioServiceContractID = Line 155  static const char* ioServiceContractID =
         [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:url];          [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:url];
         // ----------------------          // ----------------------
         NSWindow* keyWindow = [mApplication keyWindow];          NSWindow* keyWindow = [mApplication keyWindow];
        if (keyWindow)        if (keyWindow) {
            return [[keyWindow windowController] loadURL: url];          [[keyWindow windowController] loadURL: url];
           [[[[keyWindow windowController] getMyBrowserView] getBrowserView] setActive: YES];
         }
         else          else
            [self openBrowserWindowWithURL: url];          [self openBrowserWindowWithURL: url];
     }      }
 }  }
   
Line 232  static const char* ioServiceContractID = Line 234  static const char* ioServiceContractID =
   [mFindDialog showWindow:self];    [mFindDialog showWindow:self];
 }  }
   
   
   //
   // -findAgain
   //
   // Called in response to "Find Again" in edit menu. Tells the find controller
   // to find the next occurrance of what's already been found.
   //
 -(IBAction) findAgain:(id)aSender  -(IBAction) findAgain:(id)aSender
 {  {
    NSWindow* keyWindow = [mApplication keyWindow];  if ( mFindDialog )
    if (keyWindow)    [mFindDialog findAgain:aSender];
      [[keyWindow windowController] findAgain];  else
     NSBeep();
 }  }
   
 -(IBAction) goBack:(id)aSender  -(IBAction) goBack:(id)aSender
Line 297  static const char* ioServiceContractID = Line 307  static const char* ioServiceContractID =
 {  {
     NSWindow* keyWindow = [mApplication keyWindow];      NSWindow* keyWindow = [mApplication keyWindow];
     if (keyWindow)      if (keyWindow)
      [[keyWindow windowController] addBookmark];      [[keyWindow windowController] addBookmarkExtended: YES];
 }  }
   
 -(IBAction) openMenuBookmark:(id)aSender  -(IBAction) openMenuBookmark:(id)aSender
Line 311  static const char* ioServiceContractID = Line 321  static const char* ioServiceContractID =
     BookmarksService::OpenMenuBookmark([keyWindow windowController], aSender);      BookmarksService::OpenMenuBookmark([keyWindow windowController], aSender);
 }  }
   
   -(IBAction)manageBookmarks: (id)aSender
   {
     NSWindow* keyWindow = [mApplication keyWindow];
     if (!keyWindow) {
       [self openBrowserWindowWithURLString: @"about:blank"];
       keyWindow = [mApplication keyWindow];
     }
   
     [[keyWindow windowController] manageBookmarks: aSender];
   }
   
 - (MVPreferencesController *)preferencesController  - (MVPreferencesController *)preferencesController
 {  {
     if (!preferencesController) {      if (!preferencesController) {
Line 343  static const char* ioServiceContractID = Line 364  static const char* ioServiceContractID =
           
 }  }
   
   - (IBAction)biggerTextSize:(id)aSender
   {
     NSWindow* keyWindow = [mApplication keyWindow];
     if (keyWindow)
       [[keyWindow windowController] biggerTextSize];
   }
   
   - (IBAction)smallerTextSize:(id)aSender
   {
     NSWindow* keyWindow = [mApplication keyWindow];
     if (keyWindow)
       [[keyWindow windowController] smallerTextSize];
   }
   
   - (IBAction)toggleSmoothText:(id)aSender
   {
     // XXXdwh Grab the prefs service and just set the pref directly.
     
   }
   
   
 @end  @end

Removed from v.1.38  
changed lines
  Added in v.1.44


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