1 // 2 // PRPreviewController.h 3 // PRICE 4 // 5 // Created by Riccardo Mottola on 2/19/10. 6 // Copyright 2010-2014 Carduus. All rights reserved. 7 // 8 // This application 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. 9 // 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. 10 11 12 #import <AppKit/AppKit.h> 13 14 #import "PRImageView.h" 15 #import "PRFilterController.h" 16 #import "PRCProgress.h" 17 18 @interface PRPreviewController : NSObject <FilterProgress> 19 { 20 IBOutlet NSPanel *previewWindow; 21 IBOutlet NSButton *buttContinuous; 22 IBOutlet PRImageView *view; 23 IBOutlet NSPopUpButton *scalePopUp; 24 25 PRFilterController *filterController; 26 27 IBOutlet NSProgressIndicator *progressBar; 28 IBOutlet NSTextField *activityDescription; 29 } 30 31 - (void)setFilterController: (PRFilterController *)filterController; 32 33 - (void)showPreview; 34 - (void)hidePreview; 35 36 - (BOOL)continuous; 37 - (void)setContinuous :(BOOL)flag; 38 39 - (IBAction)cleanPreview:(id)sender; 40 - (IBAction)updatePreview:(id)sender; 41 42 - (IBAction)scaleFromMenu:(id)sender; 43 44 45 @end 46