mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Correction to table column handling when table isn't selected.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@22668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a05c71fae7
commit
270338574f
2 changed files with 43 additions and 35 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-03-16 06:33 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormViewWithContentViewEditor.m: Correction related to
|
||||
bug#16049. There was an issue with moving a table column while the
|
||||
table was selected.
|
||||
|
||||
2006-03-11 20:40 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormViewWithContentViewEditor.m: Minor formatting changes.
|
||||
|
|
|
@ -556,42 +556,44 @@
|
|||
|
||||
if ([selection count] == 1)
|
||||
{
|
||||
[[selection objectAtIndex: 0]
|
||||
setFrameOrigin:
|
||||
NSMakePoint(NSMaxX([self bounds]),
|
||||
NSMaxY([self bounds]))];
|
||||
[superview display];
|
||||
|
||||
r = oldMovingFrame;
|
||||
r.origin.x += xDiff;
|
||||
r.origin.y += yDiff;
|
||||
r.origin.x = (int) r.origin.x;
|
||||
r.origin.y = (int) r.origin.y;
|
||||
r.size.width = (int) r.size.width;
|
||||
r.size.height = (int) r.size.height;
|
||||
oldMovingFrame = r;
|
||||
|
||||
//case guideLine
|
||||
if ( _followGuideLine )
|
||||
id obj = [selection objectAtIndex: 0];
|
||||
if([obj isKindOfClass: [NSView class]])
|
||||
{
|
||||
suggestedFrame = [[selection objectAtIndex: 0]
|
||||
_displayMovingFrameWithHint: r
|
||||
andPlacementInfo: gpi];
|
||||
[[selection objectAtIndex: 0]
|
||||
setFrameOrigin:
|
||||
NSMakePoint(NSMaxX([self bounds]),
|
||||
NSMaxY([self bounds]))];
|
||||
[superview display];
|
||||
|
||||
r = oldMovingFrame;
|
||||
r.origin.x += xDiff;
|
||||
r.origin.y += yDiff;
|
||||
r.origin.x = (int) r.origin.x;
|
||||
r.origin.y = (int) r.origin.y;
|
||||
r.size.width = (int) r.size.width;
|
||||
r.size.height = (int) r.size.height;
|
||||
oldMovingFrame = r;
|
||||
|
||||
//case guideLine
|
||||
if ( _followGuideLine )
|
||||
{
|
||||
suggestedFrame = [obj _displayMovingFrameWithHint: r
|
||||
andPlacementInfo: gpi];
|
||||
}
|
||||
else
|
||||
{
|
||||
suggestedFrame = NSMakeRect (NSMinX(r),
|
||||
NSMinY(r),
|
||||
NSMaxX(r) - NSMinX(r),
|
||||
NSMaxY(r) - NSMinY(r));
|
||||
}
|
||||
|
||||
[obj setFrame: suggestedFrame];
|
||||
[obj setNeedsDisplay: YES];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
suggestedFrame = NSMakeRect (NSMinX(r),
|
||||
NSMinY(r),
|
||||
NSMaxX(r) - NSMinX(r),
|
||||
NSMaxY(r) - NSMinY(r));
|
||||
}
|
||||
|
||||
[[selection objectAtIndex: 0] setFrame:
|
||||
suggestedFrame];
|
||||
[[selection objectAtIndex: 0] setNeedsDisplay: YES];
|
||||
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
enumerator = [selection objectEnumerator];
|
||||
while ((subview = [enumerator nextObject]) != nil)
|
||||
|
@ -610,7 +612,7 @@
|
|||
[subview setNeedsDisplay: YES];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Flush any drawing performed for this event.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue