OSDN Git Service

MacGui: Preview Window scale to screen initial implementation
[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
14
15 //#define HB_NUM_HBLIB_PICTURES      20   // # of preview pictures libhb should generate
16
17 @interface PictureController : NSWindowController
18 {
19     hb_handle_t              * fHandle;
20     hb_title_t               * fTitle;
21
22     HBController             *fHBController;
23     PreviewController        *fPreviewController;        // reference to HBController
24     IBOutlet NSWindow        * fPictureWindow;
25     NSMutableDictionary      * fPicturePreviews;        // NSImages, one for each preview libhb creates, created lazily
26     int                        fPicture;
27
28
29     IBOutlet NSBox           * fPictureSizeBox;
30     IBOutlet NSBox           * fPictureCropBox;
31     IBOutlet NSBox           * fPictureFilterBox;
32     IBOutlet NSTextField     * fWidthField;
33     IBOutlet NSStepper       * fWidthStepper;
34     IBOutlet NSTextField     * fHeightField;
35     IBOutlet NSStepper       * fHeightStepper;
36     IBOutlet NSButton        * fRatioCheck;
37     IBOutlet NSMatrix        * fCropMatrix;
38     IBOutlet NSTextField     * fCropTopField;
39     IBOutlet NSStepper       * fCropTopStepper;
40     IBOutlet NSTextField     * fCropBottomField;
41     IBOutlet NSStepper       * fCropBottomStepper;
42     IBOutlet NSTextField     * fCropLeftField;
43     IBOutlet NSStepper       * fCropLeftStepper;
44     IBOutlet NSTextField     * fCropRightField;
45     IBOutlet NSStepper       * fCropRightStepper;
46     IBOutlet NSPopUpButton   * fDeinterlacePopUp;
47     IBOutlet NSButton        * fDecombCheck;
48         IBOutlet NSButton        * fDetelecineCheck;
49     IBOutlet NSButton        * fDeblockCheck;
50     IBOutlet NSTextField     * fDeblockField;
51     IBOutlet NSSlider        * fDeblockSlider;
52         IBOutlet NSPopUpButton   * fDenoisePopUp;
53         IBOutlet NSPopUpButton   * fAnamorphicPopUp;
54     IBOutlet NSSlider        * fPictureSlider;
55     IBOutlet NSTextField     * fInfoField;
56         
57     IBOutlet NSButton        * fPreviewOpenButton;
58         
59     int     MaxOutputWidth;
60     int     MaxOutputHeight;
61     BOOL    autoCrop;
62     BOOL    allowLooseAnamorphic;
63     
64     int output_width, output_height, output_par_width, output_par_height;
65     int display_width;
66     
67     /* used to track the previous state of the keep aspect
68     ratio checkbox when turning anamorphic on, so it can be
69     returned to the previous state when anamorphic is turned
70     off */
71     BOOL    keepAspectRatioPreviousState; 
72     
73     struct {
74         int     detelecine;
75         int     deinterlace;
76         int     decomb;
77         int     denoise;
78         int     deblock;
79     } fPictureFilterSettings;
80
81
82 }
83 - (id)init;
84
85 - (void) SetHandle: (hb_handle_t *) handle;
86 - (void) SetTitle:  (hb_title_t *)  title;
87 - (void)setHBController: (HBController *)controller;
88 - (IBAction) showPictureWindow: (id)sender;
89 - (IBAction) showPreviewWindow: (id)sender;
90
91 - (void) setInitialPictureFilters;
92
93
94 - (IBAction) SettingsChanged: (id) sender;
95
96
97
98 - (BOOL) autoCrop;
99 - (void) setAutoCrop: (BOOL) setting;
100
101 - (BOOL) allowLooseAnamorphic;
102 - (void) setAllowLooseAnamorphic: (BOOL) setting;
103 - (IBAction) deblockSliderChanged: (id) sender;
104 - (int) detelecine;
105 - (void) setDetelecine: (int) setting;
106 - (int) deinterlace;
107 - (void) setDeinterlace: (int) setting;
108 - (int) decomb;
109 - (void) setDecomb: (int) setting;
110 - (int) denoise;
111 - (void) setDenoise: (int) setting;
112 - (int) deblock;
113 - (void) setDeblock: (int) setting;
114
115 - (IBAction)showPreviewPanel: (id)sender forTitle: (hb_title_t *)title;
116
117
118 - (void) setToFullScreenMode;
119 - (void) setToWindowedMode;
120
121
122 @end
123