1 /* $Id: PictureController.h,v 1.6 2005/04/14 20:40:05 titer Exp $
3 This file is part of the HandBrake source code.
4 Homepage: <http://handbrake.m0k.org/>.
5 It may be used under the terms of the GNU General Public License. */
7 #include <Cocoa/Cocoa.h>
10 #include "PictureGLView.h"
12 @interface PictureController : NSObject
14 hb_handle_t * fHandle;
24 IBOutlet NSPanel * fPicturePanel;
26 IBOutlet HBPictureGLView * fPictureGLView;
27 IBOutlet NSBox * fPictureGLViewArea;
28 IBOutlet NSTextField * fWidthField;
29 IBOutlet NSStepper * fWidthStepper;
30 IBOutlet NSTextField * fHeightField;
31 IBOutlet NSStepper * fHeightStepper;
32 IBOutlet NSButton * fRatioCheck;
33 IBOutlet NSMatrix * fCropMatrix;
34 IBOutlet NSTextField * fCropTopField;
35 IBOutlet NSStepper * fCropTopStepper;
36 IBOutlet NSTextField * fCropBottomField;
37 IBOutlet NSStepper * fCropBottomStepper;
38 IBOutlet NSTextField * fCropLeftField;
39 IBOutlet NSStepper * fCropLeftStepper;
40 IBOutlet NSTextField * fCropRightField;
41 IBOutlet NSStepper * fCropRightStepper;
42 IBOutlet NSPopUpButton * fDeinterlacePopUp;
43 IBOutlet NSButton * fDetelecineCheck;
44 IBOutlet NSPopUpButton * fDenoisePopUp;
45 IBOutlet NSButton * fPARCheck;
46 IBOutlet NSButton * fEffectsCheck;
47 IBOutlet NSButton * fPrevButton;
48 IBOutlet NSButton * fNextButton;
49 IBOutlet NSTextField * fInfoField;
55 /* used to track the previous state of the keep aspect
56 ratio checkbox when turning anamorphic on, so it can be
57 returned to the previous state when anamorphic is turned
59 BOOL keepAspectRatioPreviousState;
65 } fPictureFilterSettings;
69 - (id)initWithDelegate:(id)del;
71 - (void) SetHandle: (hb_handle_t *) handle;
72 - (void) SetTitle: (hb_title_t *) title;
73 - (void) Display: (int) anim;
75 - (IBAction) SettingsChanged: (id) sender;
76 - (IBAction) PreviousPicture: (id) sender;
77 - (IBAction) NextPicture: (id) sender;
78 - (IBAction) ClosePanel: (id) sender;
81 - (void) setAutoCrop: (BOOL) setting;
84 - (void) setDetelecine: (int) setting;
86 - (void) setDeinterlace: (int) setting;
88 - (void) setDenoise: (int) setting;
90 - (void)showPanelInWindow: (NSWindow *)fWindow forTitle: (hb_title_t *)title;
91 - (BOOL) loadMyNibFile;
94 @interface NSObject (PictureControllertDelegateMethod)
95 - (void)pictureSettingsDidChange;