mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Correction bug#16050.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@22639 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b17de24bf8
commit
f96739125d
2 changed files with 30 additions and 32 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-03-11 16:57 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Palettes/3Containers/GormTableViewEditor.m: Correction for
|
||||||
|
bug#16050.
|
||||||
|
|
||||||
2006-03-10 01:24 Gregory John Casamento <greg_casamento@yahoo.com>
|
2006-03-10 01:24 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* GormCore/GormViewEditor.m: Correction for bug#16049
|
* GormCore/GormViewEditor.m: Correction for bug#16049
|
||||||
|
|
|
@ -40,6 +40,30 @@ static NSText *_textObject;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation GormTableViewEditor
|
@implementation GormTableViewEditor
|
||||||
|
/**
|
||||||
|
* Initialize the table editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
- (id) initWithObject: (id)anObject inDocument: (id<IBDocuments>)aDocument
|
||||||
|
{
|
||||||
|
self = [super initWithObject: anObject inDocument: aDocument];
|
||||||
|
if(self != nil)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
- (void) setFrame: (NSRect)frame
|
||||||
|
{
|
||||||
|
if(tableView != nil)
|
||||||
|
{
|
||||||
|
[tableView deselectAll: self];
|
||||||
|
}
|
||||||
|
[super setFrame: frame];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decide whether an editor can accept data from the pasteboard.
|
* Decide whether an editor can accept data from the pasteboard.
|
||||||
*/
|
*/
|
||||||
|
@ -48,22 +72,6 @@ static NSText *_textObject;
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
- (void) setOpened: (BOOL) flag
|
|
||||||
{
|
|
||||||
if (flag)
|
|
||||||
{
|
|
||||||
[tableView select]; // setBackgroundColor: [NSColor whiteColor]];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
[tableView unselect];
|
|
||||||
}
|
|
||||||
|
|
||||||
[super setOpened: flag];
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Activate an editor - inserts it into the view hierarchy or whatever is
|
* Activate an editor - inserts it into the view hierarchy or whatever is
|
||||||
* needed for the editor to be able to provide its functionality.
|
* needed for the editor to be able to provide its functionality.
|
||||||
|
@ -341,9 +349,6 @@ static NSText *_textObject;
|
||||||
_currentHeaderCell = [tc headerCell];
|
_currentHeaderCell = [tc headerCell];
|
||||||
[_editedCell setStringValue: [[tc headerCell] stringValue]];
|
[_editedCell setStringValue: [[tc headerCell] stringValue]];
|
||||||
[_editedCell setEditable: YES];
|
[_editedCell setEditable: YES];
|
||||||
// [_editedCell setAlignment: NSLeftTextAlignment];
|
|
||||||
// [(NSTableHeaderCell *)_editedCell setTextColor: [NSColor blackColor]];
|
|
||||||
// [(NSTableHeaderCell *)_editedCell setBackgroundColor: [NSColor whiteColor]];
|
|
||||||
_textObject = [_editedCell setUpFieldEditorAttributes: t];
|
_textObject = [_editedCell setUpFieldEditorAttributes: t];
|
||||||
|
|
||||||
drawingRect = [th headerRectOfColumn: columnIndex];
|
drawingRect = [th headerRectOfColumn: columnIndex];
|
||||||
|
@ -363,18 +368,6 @@ static NSText *_textObject;
|
||||||
RELEASE(_editedCell);
|
RELEASE(_editedCell);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
- (NSArray*) selection
|
|
||||||
{
|
|
||||||
if (tableView == nil)
|
|
||||||
return [NSArray array];
|
|
||||||
else if (selected == nil)
|
|
||||||
return [NSArray arrayWithObject: tableView];
|
|
||||||
else
|
|
||||||
return [NSArray arrayWithObject: selected];
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
- (unsigned) draggingEntered: (id<NSDraggingInfo>)sender
|
- (unsigned) draggingEntered: (id<NSDraggingInfo>)sender
|
||||||
{
|
{
|
||||||
return [self draggingUpdated: sender];
|
return [self draggingUpdated: sender];
|
||||||
|
@ -425,6 +418,7 @@ static NSText *_textObject;
|
||||||
return NSDragOperationNone;
|
return NSDragOperationNone;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) performDragOperation: (id<NSDraggingInfo>)sender
|
- (BOOL) performDragOperation: (id<NSDraggingInfo>)sender
|
||||||
{
|
{
|
||||||
NSPasteboard *dragPb;
|
NSPasteboard *dragPb;
|
||||||
|
@ -482,5 +476,4 @@ static NSText *_textObject;
|
||||||
return [super windowAndRect: prect forObject: object];
|
return [super windowAndRect: prect forObject: object];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue