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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
//
// Lynkeos
// $Id: MyImageList.h 571 2014-02-22 20:26:04Z j-etienne $
//
// Created by Jean-Etienne LAMIAUD on Wed Sep 24 2003.
// Copyright (c) 2003-2014. 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.
//
/*!
* @header
* @abstract Definitions for the generic image list.
*/
#ifndef __MYIMAGELIST_H
#define __MYIMAGELIST_H
#import <Foundation/Foundation.h>
#include "LynkeosProcessing.h"
#include "LynkeosProcessableImage.h"
#include "MyImageListItem.h"
/*!
* @abstract Base model of a list of images to process
* @discussion The images in the list share a common goal (dark frame, flat
* field or object images).
* @ingroup Models
*/
@interface MyImageList : LynkeosProcessableImage <LynkeosImageList,NSCoding>
{
@protected
NSMutableArray* _list; //!< The list of images
}
/// \name Actions
//@{
// List data
/*!
* @abstract Add a new item to the list
* @param item A new image or movie
* @result Wether the document content has changed
*/
- (BOOL) addItem :(MyImageListItem*)item ;
/*!
* @abstract Deletes the given item from the list
* @param item The item to delete
* @result Wether the document content has changed
*/
- (BOOL) deleteItem :(MyImageListItem*)item ;
/*!
* @abstract Change the selection state of the given item
* @param item The item for which to change the selection state
* @param v The new selection state
* @result Wether the document content has changed
*/
- (BOOL) changeItemSelection :(MyImageListItem*)item value:(BOOL)v ;
/*!
* @abstract Set the parent object for parameters chain
* @param parent The parent of this item in the parameter chain
*/
- (void) setParametersParent :(LynkeosProcessingParameterMgr*)parent;
/*!
* @abstract Set the mode (image, dark frame, flat field) of the list
* @param mode The list mode
*/
- (void) setMode:(ListMode_t)mode ;
//@}
/// \name Initializers and constructors
//@{
/*!
* @abstract Initialize an instance with a given initial image list
* @param list An existing image list
* @result The initialized instance
*/
- (id) initWithArray :(NSArray*)list ;
/*!
* @abstract Convenience creator with a given initial image list
* @param list An existing image list
* @result The allocated and initialized instance
*/
+ (id) imageListWithArray :(NSArray*)list ;
//@}
@end
#endif
|