mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Correction for minor bug.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20981 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
71299b7722
commit
10a906ca42
4 changed files with 32 additions and 15 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-03-27 06:24 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassEditor.m: Added addAttributeToClass here. Also
|
||||
added a check to prevent changing the outline row count.
|
||||
* GormOutlineView.m: Removed addAttributeToClass from here.
|
||||
* GormPrivate.h: Moved addAttributeToClass to class editor.
|
||||
|
||||
2005-03-26 10:18 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* install-windows.sh: Installation script for windows.
|
||||
|
|
|
@ -30,6 +30,11 @@
|
|||
|
||||
NSString *GormClassPboardType = @"GormClassPboardType";
|
||||
|
||||
@interface GormOutlineView (PrivateMethods)
|
||||
- (void) _addNewActionToObject: (id)item;
|
||||
- (void) _addNewOutletToObject: (id)item;
|
||||
@end
|
||||
|
||||
@implementation GormClassEditor
|
||||
|
||||
- (GormClassEditor*) initWithDocument: (GormDocument*)doc
|
||||
|
@ -474,6 +479,25 @@ NSString *GormClassPboardType = @"GormClassPboardType";
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
- (void) addAttributeToClass
|
||||
{
|
||||
if (_isEditing == YES)
|
||||
{
|
||||
if (_edittype == Actions)
|
||||
{
|
||||
[self _addNewActionToObject: _itemBeingEdited];
|
||||
}
|
||||
if (_edittype == Outlets)
|
||||
{
|
||||
if([classManager isCustomClass: _itemBeingEdited])
|
||||
{
|
||||
[self _addNewOutletToObject: _itemBeingEdited];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
- (void) handleNotification: (NSNotification *)notification
|
||||
{
|
||||
|
|
|
@ -633,21 +633,6 @@ static NSColor *darkGreyBlueColor = nil;
|
|||
return _edittype;
|
||||
}
|
||||
|
||||
- (void) addAttributeToClass
|
||||
{
|
||||
if (_isEditing == YES)
|
||||
{
|
||||
if (_edittype == Actions)
|
||||
{
|
||||
[self _addNewActionToObject: _itemBeingEdited];
|
||||
}
|
||||
if (_edittype == Outlets)
|
||||
{
|
||||
[self _addNewOutletToObject: _itemBeingEdited];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void) editColumn: (int) columnIndex
|
||||
row: (int) rowIndex
|
||||
withEvent: (NSEvent *) theEvent
|
||||
|
|
|
@ -184,6 +184,7 @@ extern NSString *GormResizeCellNotification;
|
|||
- (BOOL) currentSelectionIsClass;
|
||||
- (void) editClass;
|
||||
- (void) createSubclass;
|
||||
- (void) addAttributeToClass;
|
||||
- (void) deleteSelection;
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue