File: MyImageListEnumerator.h

package info (click to toggle)
lynkeos.app 1.2-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,264 kB
  • ctags: 440
  • sloc: objc: 7,121; ansic: 709; sh: 50; makefile: 34
file content (78 lines) | stat: -rw-r--r-- 2,762 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//==============================================================================
//  Lynkeos 
//  $Id: MyImageListEnumerator.h,v 1.6 2005/01/27 23:06:34 j-etienne Exp $
//  Created by Jean-Etienne LAMIAUD on Tue Jul 27 2004.
//------------------------------------------------------------------------------
//  Copyright (c) 2003-2005. Jean-Etienne LAMIAUD
//------------------------------------------------------------------------------
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
//------------------------------------------------------------------------------

#ifndef __MYIMAGELISTENUM_H
#define __MYIMAGELISTENUM_H

#ifdef GNUSTEP
#else
#import <Cocoa/Cocoa.h>
#endif

#include "MyImageListItem.h"

/*!
 * @class MyImageListEnumerator
 * @abstract Enumerator on MyImageList
 * @discussion This enumerator scans all the MyImageListItem images in a 
 *    MyImageList. When the list contains a movie, it scans each MyMovieImage 
 *    inside the MyMovie instance.
 * @ingroup Models
 */
@interface MyImageListEnumerator : NSEnumerator
{
    NSArray*         _itemList;
    int              _listSize;
    int              _itemIndex;
    MyMovie*         _currentMovie;
    int              _movieSize;
    int              _movieIndex;
    int              _step;
    NSRecursiveLock  *_lock;
}

/*!
 * @method initWithImageList:startAt:directSense:
 * @abstract Base initializer
 * @param list The MyImageListItem array do scan
 * @param item The item to start with. If nil, the first or last (if reverse 
 *    enumerator) is taken
 * @param direct Direct or reverse enumerator
 * @discussion It initializes a MyImageListEnumerator whith a custom starting
 *    point and a custom scanning direction.
 */
- (id) initWithImageList :(NSArray*)list startAt:(id)item 
              directSense:(BOOL)direct;
/*!
 * @method initWithImageList:
 * @abstract Simplified initializer
 * @param list The MyImageListItem array do scan
 * @discussion It initializes a direct enumerator starting at the first item of
 *    the list.
 */
- (id) initWithImageList :(NSArray*)list ;

@end

#endif