mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Color well allows modification of tableview background color.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19141 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5fa41f5b0c
commit
633963751f
4 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-04-17 13:11 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/3Containers/inspectors.m: Added code to the
|
||||
GormTableViewInspector update the background color when
|
||||
the user changes it in the inspector.
|
||||
* Palettes/3Containers/GormNSTableViewInspector.gorm: added
|
||||
color well to allow changing of the background color.
|
||||
|
||||
2004-04-17 12:52 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormObjectEditor.m: [GormObjectEditor mouseDown:] check
|
||||
|
|
|
@ -150,7 +150,8 @@
|
|||
optionMatrix,
|
||||
rowsHeightForm,
|
||||
selectionMatrix,
|
||||
verticalScrollerSwitch
|
||||
verticalScrollerSwitch,
|
||||
backgroundColor
|
||||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
|
|
Binary file not shown.
|
@ -403,6 +403,7 @@
|
|||
id rowsHeightForm;
|
||||
id optionMatrix;
|
||||
id tagField;
|
||||
id backgroundColor;
|
||||
}
|
||||
|
||||
- (void) _getValuesFromObject: (id)anObject;
|
||||
|
@ -492,7 +493,6 @@
|
|||
[object sizeToFit];
|
||||
[object tile];
|
||||
}
|
||||
|
||||
else if (control == optionMatrix)
|
||||
{
|
||||
flag = ([[control cellAtRow: 0 column: 0] state] == NSOnState) ? YES : NO;
|
||||
|
@ -506,7 +506,11 @@
|
|||
{
|
||||
[object setTag:[[tagField cellAtIndex:0] intValue]];
|
||||
}
|
||||
|
||||
else if( control == backgroundColor )
|
||||
{
|
||||
[object setBackgroundColor: [backgroundColor color]];
|
||||
}
|
||||
|
||||
[scrollView setNeedsDisplay: YES];
|
||||
|
||||
}
|
||||
|
@ -565,6 +569,9 @@
|
|||
if ([anObject gormAllowsColumnReordering])
|
||||
[optionMatrix selectCellAtRow: 2 column: 0];
|
||||
[[tagField cellAtIndex:0] setIntValue:[anObject tag]];
|
||||
|
||||
// set the background color into the inspector...
|
||||
[backgroundColor setColor: [anObject backgroundColor]];
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
|
Loading…
Reference in a new issue