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:
Gregory John Casamento 2005-03-27 11:16:36 +00:00
parent 71299b7722
commit 10a906ca42
4 changed files with 32 additions and 15 deletions

View file

@ -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.

View file

@ -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
{

View file

@ -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

View file

@ -184,6 +184,7 @@ extern NSString *GormResizeCellNotification;
- (BOOL) currentSelectionIsClass;
- (void) editClass;
- (void) createSubclass;
- (void) addAttributeToClass;
- (void) deleteSelection;
@end