mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
Added new column title field to the inspector.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@25558 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
079e761dc5
commit
88eba73015
8 changed files with 20 additions and 44 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2007-11-05 18:20-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormViewEditor.m: Removed commented out code.
|
||||
* Palettes/3Containers/GormNSTableColumnInspector.gorm
|
||||
* Palettes/3Containers/GormTableColumnAttributesInspector.h
|
||||
* Palettes/3Containers/GormTableColumnAttributesInspector.m
|
||||
* Palettes/3Containers/GormTableViewEditor.m: Added new column title
|
||||
field to the inspector so that the title can be edited there instead
|
||||
of directly.
|
||||
|
||||
2007-11-05 01:56-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormViewEditor.m: Change code to use drawRect: instead
|
||||
|
|
|
@ -1417,34 +1417,6 @@ static BOOL currently_displaying = NO;
|
|||
withObject: self];
|
||||
}
|
||||
|
||||
/*
|
||||
- (void) displayIfNeededInRectIgnoringOpacity: (NSRect) rect
|
||||
inContext: (NSGraphicsConext *)gc
|
||||
{
|
||||
if (currently_displaying == NO)
|
||||
{
|
||||
[[self window] disableFlushWindow];
|
||||
currently_displaying = YES;
|
||||
[super displayIfNeededInRectIgnoringOpacity: rect
|
||||
inContext: gc];
|
||||
[self lockFocus];
|
||||
[self postDraw: rect];
|
||||
[self unlockFocus];
|
||||
[[self window] enableFlushWindow];
|
||||
[[self window] flushWindow];
|
||||
currently_displaying = NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
[super displayIfNeededInRectIgnoringOpacity: rect
|
||||
inContext: gc];
|
||||
[self lockFocus];
|
||||
[self postDraw: rect];
|
||||
[self unlockFocus];
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
- (void) drawRect: (NSRect) rect
|
||||
{
|
||||
if (currently_displaying == NO)
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
titleAlignmentMatrix,
|
||||
cellTable,
|
||||
defaultButton,
|
||||
setButton
|
||||
setButton,
|
||||
columnTitle
|
||||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -52,6 +52,7 @@
|
|||
NSButton *setButton;
|
||||
NSButton *defaultButton;
|
||||
NSTableView *cellTable;
|
||||
NSTextField *columnTitle;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -202,6 +202,12 @@
|
|||
[[object tableView] setNeedsDisplay: YES];
|
||||
[self setObject: [self object]]; // reset...
|
||||
}
|
||||
else if (sender == columnTitle)
|
||||
{
|
||||
[[object headerCell] setStringValue:
|
||||
[columnTitle stringValue]];
|
||||
[[[object tableView] headerView] setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
[super ok:sender];
|
||||
}
|
||||
|
@ -259,6 +265,7 @@
|
|||
}
|
||||
|
||||
[identifierTextField setStringValue: [(NSTableColumn *)object identifier]];
|
||||
[columnTitle setStringValue: [[(NSTableColumn *)object headerCell] stringValue]];
|
||||
|
||||
/* options */
|
||||
if ([object isResizable])
|
||||
|
|
|
@ -40,21 +40,6 @@ static NSText *_textObject;
|
|||
@end
|
||||
|
||||
@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)
|
||||
|
|
Loading…
Reference in a new issue