Diff for /chimera/BookmarksToolbar.mm between versions 1.2 and 1.3

version 1.2, 2002/04/16 07:26:07 version 1.3, 2002/04/17 07:38:31
Line 8 Line 8
   
 #import "BookmarksButton.h"  #import "BookmarksButton.h"
 #import "BookmarksToolbar.h"  #import "BookmarksToolbar.h"
   #import "BookmarksService.h"
   
 @implementation BookmarksToolbar  @implementation BookmarksToolbar
   
 - (id)initWithFrame:(NSRect)frame {  - (id)initWithFrame:(NSRect)frame {
   self = [super initWithFrame:frame];    self = [super initWithFrame:frame];
   if (self) {    if (self) {
    // Initialization code here.    mBookmarks = nsnull;
   }    }
   
   // Create a sample button.    // Create a sample button.
  BookmarksButton* testButton = [[[BookmarksButton alloc] initWithFrame: NSMakeRect(2, 1, 100, 17)] autorelease];/*  BookmarksButton* testButton = [[[BookmarksButton alloc] initWithFrame: NSMakeRect(2, 1, 100, 17)] autorelease];
   [testButton setTitle: @"Gamespot - Gaming Site"];    [testButton setTitle: @"Gamespot - Gaming Site"];
   [self addSubview: testButton];     [self addSubview: testButton]; 
     */
       
   return self;    return self;
 }  }
   
   -(void)initializeToolbar
   {
     // Initialization code here.
     mBookmarks = new BookmarksService(self);
     mBookmarks->AddObserver();
     mBookmarks->ConstructBookmarksToolbar();
   }
   
   -(void) dealloc
   {
     mBookmarks->RemoveObserver();
     delete mBookmarks;
     [super dealloc];
   }
   
 - (void)drawRect:(NSRect)aRect {  - (void)drawRect:(NSRect)aRect {
   // Fill the background with our background color.    // Fill the background with our background color.
 //  [[NSColor colorWithCalibratedWhite: 0.98 alpha: 1.0] set];  //  [[NSColor colorWithCalibratedWhite: 0.98 alpha: 1.0] set];

Removed from v.1.2  
changed lines
  Added in v.1.3


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