Skip to content
This repository
tree: 9c4eb3d604
Fetching contributors…

Cannot retrieve contributors at this time

file 48 lines (39 sloc) 1.912 kb
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
//
// ZPAttachmentCarouselDelegate.h
// ZotPad
//
// Created by Mikko Rönkkö on 25.6.2012.
// Copyright (c) 2012 Mikko Rönkkö. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "iCarousel.h"
#import "ZPCore.h"
#import "ZPPreviewSource.h"

extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_MODE_UPLOAD;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_MODE_DOWNLOAD;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_MODE_STATIC;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_MODE_FIRST_STATIC_SECOND_DOWNLOAD;

extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_SHOW_ORIGINAL;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_SHOW_MODIFIED;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_SHOW_FIRST_MODIFIED_SECOND_ORIGINAL;


extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_TAG_FILEIMAGE;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_TAG_ERRORLABEL;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_TAG_STATUSLABEL;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_TAG_PROGRESSVIEW;
extern NSInteger const ZPATTACHMENTICONGVIEWCONTROLLER_TAG_TITLELABEL;

@interface ZPAttachmentCarouselDelegate : NSObject <iCarouselDelegate, iCarouselDataSource, ZPAttachmentObserver, ZPItemObserver, ZPPreviewSource>{
    ZPZoteroItem* _item;
    NSArray* _attachments;
    NSInteger _selectedIndex;
}

@property (weak) IBOutlet UIBarButtonItem* actionButton;
@property (weak) IBOutlet iCarousel* attachmentCarousel;
@property (assign) NSInteger mode;
@property (assign) NSInteger show;
@property (readonly) NSInteger selectedIndex;
@property (weak) UIViewController* owner;

-(void) prepareForUnloading;
-(void) configureWithAttachmentArray:(NSArray*) attachments;
-(void) configureWithZoteroItem:(ZPZoteroItem*) item;
+(void) renderFileTypeIconForAttachment:(ZPZoteroAttachment*) attachment intoImageView:(UIImageView*) fileImage;

@end
Something went wrong with that request. Please try again.