OSDN Git Service

MacGui: Adds a popup menu item for Hadamard-transformed exhaustive motion estimation...
[handbrake-jp/handbrake-jp-git.git] / macosx / PictureController.h
1 /* $Id: PictureController.h,v 1.6 2005/04/14 20:40:05 titer Exp $
2
3    This file is part of the HandBrake source code.
4    Homepage: <http://handbrake.fr/>.
5    It may be used under the terms of the GNU General Public License. */
6
7 #import <Cocoa/Cocoa.h>
8
9 #include "hb.h" 
10
11 @class HBController;
12 @class PreviewController;
13 @class PictureFilterController;
14
15
16 //#define HB_NUM_HBLIB_PICTURES      20   // # of preview pictures libhb should generate
17
18 @interface PictureController : NSWindowController
19 {
20     hb_handle_t              * fHandle;
21     hb_title_t               * fTitle;
22
23     HBController             *fHBController;
24     PreviewController        *fPreviewController;        // reference to HBController
25     PictureFilterController  *fPictureFilterController;
26     
27     IBOutlet NSWindow        * fPictureWindow;
28     NSMutableDictionary      * fPicturePreviews;        // NSImages, one for each preview libhb creates, created lazily
29     int                        fPicture;
30
31
32     IBOutlet NSBox           * fPictureSizeBox;
33     IBOutlet NSBox           * fPictureCropBox;
34     IBOutlet NSTextField     * fWidthField;
35     IBOutlet NSStepper       * fWidthStepper;
36     IBOutlet NSTextField     * fHeightField;
37     IBOutlet NSStepper       * fHeightStepper;
38     IBOutlet NSButton        * fRatioCheck;
39     IBOutlet NSMatrix        * fCropMatrix;
40     IBOutlet NSTextField     * fCropTopField;
41     IBOutlet NSStepper       * fCropTopStepper;
42     IBOutlet NSTextField     * fCropBottomField;
43     IBOutlet NSStepper       * fCropBottomStepper;
44     IBOutlet NSTextField     * fCropLeftField;
45     IBOutlet NSStepper       * fCropLeftStepper;
46     IBOutlet NSTextField     * fCropRightField;
47     IBOutlet NSStepper       * fCropRightStepper;
48
49         IBOutlet NSPopUpButton   * fAnamorphicPopUp;
50     IBOutlet NSTextField     * fSizeInfoField;
51         
52     IBOutlet NSButton        * fPreviewOpenButton;
53     IBOutlet NSButton        * fPictureFiltersOpenButton;
54         
55     int     MaxOutputWidth;
56     int     MaxOutputHeight;
57     BOOL    autoCrop;
58     BOOL    allowLooseAnamorphic;
59     
60     int output_width, output_height, output_par_width, output_par_height;
61     int display_width;
62     
63     /* used to track the previous state of the keep aspect
64     ratio checkbox when turning anamorphic on, so it can be
65     returned to the previous state when anamorphic is turned
66     off */
67     BOOL    keepAspectRatioPreviousState;
68 }
69 - (id)init;
70
71 - (void) SetHandle: (hb_handle_t *) handle;
72 - (void) SetTitle:  (hb_title_t *)  title;
73 - (void)setHBController: (HBController *)controller;
74 - (IBAction) showPictureWindow: (id)sender;
75 - (IBAction) showPreviewWindow: (id)sender;
76 - (IBAction) showFilterWindow: (id)sender;
77
78
79
80 - (IBAction) SettingsChanged: (id) sender;
81
82 - (NSString*) getPictureSizeInfoString;
83 - (void)reloadStillPreview;
84
85 - (BOOL) autoCrop;
86 - (void) setAutoCrop: (BOOL) setting;
87
88 - (BOOL) allowLooseAnamorphic;
89 - (void) setAllowLooseAnamorphic: (BOOL) setting;
90
91 - (IBAction)showPreviewPanel: (id)sender forTitle: (hb_title_t *)title;
92
93
94 - (void) setToFullScreenMode;
95 - (void) setToWindowedMode;
96
97
98 @end
99