mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-23 06:20:47 +00:00
* Palettes/2Controls/GormMatrixAttributesInspector.m (revert:): update object in prototype matrix.
(ok:): implemented "Match Prototype" button action - recreates object's cells.
This commit is contained in:
parent
6722945719
commit
bcd8491262
1 changed files with 14 additions and 4 deletions
|
@ -125,8 +125,13 @@ NSUInteger colsStepperValue;
|
|||
}
|
||||
else if (sender == propagateSwitch)
|
||||
{
|
||||
//Nothing for the moment - must implement Prototype
|
||||
// item in the pull down menu
|
||||
for (int c = 0; c < [object numberOfColumns]; c++)
|
||||
{
|
||||
for (int r = 0; r < [object numberOfRows]; r++)
|
||||
{
|
||||
[object putCell: [object prototype] atRow:r column:c];
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (sender == selRectSwitch)
|
||||
{
|
||||
|
@ -234,7 +239,7 @@ NSUInteger colsStepperValue;
|
|||
}
|
||||
else
|
||||
{
|
||||
[prototypeMatrix putCell: [object prototype] atRow:0 column:0];
|
||||
[prototypeMatrix putCell: [object prototype] atRow:0 column:0];
|
||||
}
|
||||
|
||||
[super ok:sender];
|
||||
|
@ -265,10 +270,15 @@ NSUInteger colsStepperValue;
|
|||
|
||||
[backgroundColorWell setColorWithoutAction: [object backgroundColor]];
|
||||
[drawsBackgroundSwitch setState:
|
||||
([object drawsBackground]) ? NSOnState : NSOffState];
|
||||
([object drawsBackground]) ? NSOnState : NSOffState];
|
||||
|
||||
[modeMatrix selectCellWithTag: [(NSMatrix *)object mode]];
|
||||
|
||||
if ([object prototype] == nil)
|
||||
[prototypeMatrix putCell: [object cellAtRow:0 column:0] atRow:0 column:0];
|
||||
else
|
||||
[prototypeMatrix putCell: [object prototype] atRow:0 column:0];
|
||||
|
||||
[selRectSwitch setState:
|
||||
([object isSelectionByRect]) ? NSOnState : NSOffState];
|
||||
[[tagForm cellAtIndex: 0] setIntValue: [object tag]];
|
||||
|
|
Loading…
Reference in a new issue