1 // 2 // AppController.h 3 // PRICE 4 // 5 // Created by Riccardo Mottola on Thu Dec 12 2002. 6 // Copyright (c) 2002-2010 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 #import <AppKit/AppKit.h> 12 13 #import "PRPreviewController.h" 14 15 #define prefEnlargeWindowsKey @"auto enlarge windows" 16 #define prefClosePanelsKey @"close panels" 17 18 #define prefEnlargeWindowsDefault YES 19 #define prefClosePanelsDefault NO 20 21 @interface AppController : NSObject 22 { 23 IBOutlet NSPanel *prefPanel; 24 IBOutlet NSButton *closePanelsCheck; 25 IBOutlet NSButton *enlargeWindowsCheck; 26 27 PRPreviewController *previewController; 28 29 @private BOOL prefClosePanels; 30 @private BOOL prefEnlargeWindows; 31 } 32 33 - (IBAction) showPreferences:(id)sender; 34 - (IBAction) savePreferences:(id)sender; 35 - (IBAction) cancelPreferences:(id)sender; 36 37 - (PRPreviewController *) previewController; 38 39 - (BOOL) prefClosePanels; 40 - (BOOL) prefEnlargeWindows; 41 42 @end 43