mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-05-30 00:40:58 +00:00
* EOControl/EOAggregateEvent.h/m: New files with stub
implementations. * EOControl/GNUmakefile: Add EOAggregateEvent.h/m. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@25317 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
284bd4cdf8
commit
7a86463f81
4 changed files with 108 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-07-11 David Ayers <ayers@fsfe.org>
|
||||
|
||||
* EOControl/EOAggregateEvent.h/m: New files with stub
|
||||
implementations.
|
||||
* EOControl/GNUmakefile: Add EOAggregateEvent.h/m.
|
||||
|
||||
2007-05-05 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* EOInterface/EODisplayGroup.m (-deleteObjectAtIndex:):
|
||||
|
|
46
EOControl/EOAggregateEvent.h
Normal file
46
EOControl/EOAggregateEvent.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
/* -*-objc-*-
|
||||
EOAggregateEvent.h
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
|
||||
Date: July 2007
|
||||
|
||||
This file is part of the GNUstep Database Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef __EOControl_EOAggregateEvent_h__
|
||||
#define __EOControl_EOAggregateEvent_h__
|
||||
|
||||
#include <EOControl/EOEvent.h>
|
||||
|
||||
@class NSArray;
|
||||
@class NSMutableSet;
|
||||
|
||||
@interface EOAggregateEvent : EOEvent
|
||||
{
|
||||
NSMutableSet *_references;
|
||||
NSArray *_children;
|
||||
int _aggregateSignatureTag;
|
||||
}
|
||||
|
||||
- (void)addEvent:(EOEvent *)event;
|
||||
- (NSArray *)events;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
54
EOControl/EOAggregateEvent.m
Normal file
54
EOControl/EOAggregateEvent.m
Normal file
|
@ -0,0 +1,54 @@
|
|||
/* -*-objc-*-
|
||||
EOEditingContext.m
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
|
||||
Date: July 2007
|
||||
|
||||
This file is part of the GNUstep Database Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
#include "EOAggregateEvent.h"
|
||||
|
||||
@implementation EOAggregateEvent
|
||||
|
||||
- (id)init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
NSZone *zone = [self zone];
|
||||
_children = [[NSArray allocWithZone: zone] init];
|
||||
_references = [[NSMutableSet allocWithZone: zone] init];
|
||||
_aggregateSignatureTag = 0;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)addEvent:(EOEvent *)event
|
||||
{
|
||||
_children = RETAIN([_children arrayByAddingObject: event]);
|
||||
}
|
||||
|
||||
- (NSArray *)events
|
||||
{
|
||||
return _children;
|
||||
}
|
||||
|
||||
@end
|
|
@ -67,6 +67,7 @@ EONSAddOns.m \
|
|||
EOCheapArray.m \
|
||||
EOArrayDataSource.m \
|
||||
EOMultiReaderLock.m \
|
||||
EOAggregateEvent.m \
|
||||
EOEvent.m \
|
||||
EOEventCenter.m \
|
||||
EODebug.m \
|
||||
|
@ -96,6 +97,7 @@ EODataSource.h \
|
|||
EODetailDataSource.h \
|
||||
EOArrayDataSource.h \
|
||||
EOMultiReaderLock.h \
|
||||
EOAggregateEvent.h \
|
||||
EOEvent.h \
|
||||
EOEventCenter.h \
|
||||
EODebug.h \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue