2020-03-05 06:44:53 +00:00
|
|
|
#ifndef __qwaq_group_h
|
|
|
|
#define __qwaq_group_h
|
|
|
|
|
2020-03-06 02:27:31 +00:00
|
|
|
#include <Array.h>
|
2020-03-05 06:44:53 +00:00
|
|
|
#include "qwaq-view.h"
|
|
|
|
|
2020-03-06 02:27:31 +00:00
|
|
|
typedef BOOL condition_func (id object, void *data);
|
|
|
|
typedef BOOL condition_func2 (id object, void *anObject, void *data);
|
|
|
|
|
|
|
|
@interface Array (Group)
|
|
|
|
- (void) makeObjectsPerformSelector: (SEL)selector
|
|
|
|
if: (condition_func)condition
|
|
|
|
with: (void *)data;
|
|
|
|
- (void) makeObjectsPerformSelector: (SEL)selector
|
|
|
|
withObject: (void *)anObject
|
|
|
|
if: (condition_func2)condition
|
|
|
|
with: (void *)data;
|
|
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector;
|
|
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector
|
|
|
|
withObject: (void *)anObject;
|
|
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector
|
|
|
|
if: (condition_func)condition
|
|
|
|
with: (void *)data;
|
|
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector
|
|
|
|
withObject: (void *)anObject
|
|
|
|
if: (condition_func2)condition
|
|
|
|
with: (void *)data;
|
|
|
|
@end
|
2020-03-05 06:44:53 +00:00
|
|
|
|
|
|
|
@interface Group : View
|
|
|
|
{
|
|
|
|
Array *views;
|
|
|
|
int focused;
|
2020-03-06 08:25:19 +00:00
|
|
|
TextContext *buffer;
|
2020-03-05 06:44:53 +00:00
|
|
|
}
|
|
|
|
-insert: (View *) view;
|
|
|
|
-remove: (View *) view;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__qwaq_group_h
|