Change background color of object view.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26045 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-02-09 17:15:43 +00:00
parent 930b3ded83
commit 87874e0737
4 changed files with 20 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2008-02-09 12:15-EST Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormClassEditor.m
* GormCore/GormGenericEditor.m
* GormCore/GormObjectEditor.m: Change background color of
object view.
2008-01-10 Nicola Pero <nicola.pero@meta-innovation.com>
* GNUmakefile.postamble (LN_S_RECURSIVE): For

View file

@ -71,10 +71,10 @@ NSImage *browserImage = nil;
NSRect scrollRect = [classesView frame]; // = {{0, 0}, {340, 188}};
NSRect mainRect = NSMakeRect(20,0,scrollRect.size.width-20,
scrollRect.size.height);
NSColor *salmonColor = [NSColor colorWithCalibratedRed: 0.850980
green: 0.737255
blue: 0.576471
alpha: 1.0 ];
NSColor *color = [NSColor colorWithCalibratedRed: 0.850980
green: 0.737255
blue: 0.576471
alpha: 1.0 ];
NSTableColumn *tableColumn;
// setup the view...
@ -114,7 +114,7 @@ NSImage *browserImage = nil;
[outlineView setAttributeOffset: 30];
[outlineView setRowHeight: 18];
[outlineView setMenu: [(id<Gorm>)NSApp classMenu]];
[outlineView setBackgroundColor: salmonColor];
[outlineView setBackgroundColor: color];
// add the table columns...
tableColumn = [(NSTableColumn *)[NSTableColumn alloc] initWithIdentifier: @"classes"];
@ -163,7 +163,6 @@ NSImage *browserImage = nil;
[browserView setRefusesFirstResponder:YES];
[browserView loadColumnZero];
// observe certain notifications...
[nc addObserver: self
selector: @selector(handleNotification:)

View file

@ -151,7 +151,7 @@
document = aDocument;
closed = NO;
activated = NO;
resourceManager = nil;
resourceManager = nil;
}
return self;
}

View file

@ -316,6 +316,10 @@ static NSMapTable *docMap = 0;
if (self != nil)
{
NSButtonCell *proto;
NSColor *color = [NSColor colorWithCalibratedRed: 0.850980
green: 0.737255
blue: 0.576471
alpha: 1.0 ];
document = aDocument;
@ -332,6 +336,9 @@ static NSMapTable *docMap = 0;
[self setDoubleAction: @selector(raiseSelection:)];
[self setTarget: self];
// set the background color.
[self setBackgroundColor: color];
objects = [[NSMutableArray alloc] init];
proto = [[NSButtonCell alloc] init];
[proto setBordered: NO];