diff options
author | dynaflash <[email protected]> | 2007-07-06 15:32:34 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-07-06 15:32:34 +0000 |
commit | c844ec634f42c7a2092fe0829cf4663ea836a276 (patch) | |
tree | 6f292af378ded60bf28e94601635099bfe860740 /macosx/PictureController.mm | |
parent | 57ccb9bd7ccd5431c2865de38862ac2ec8503059 (diff) |
MacGui: Add auto crop value to main window
- shows if you are using Auto or Custom cropping in the Video tab of the main window.
- Prepares controller.mm to better use custom/auto cropping values particularly with presets.
- Required since auto crop is not currently stored in a title or job variable, and proper use of cropping for presets requires the preset to know what cropping to actually use.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@651 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r-- | macosx/PictureController.mm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 96d0a2e81..902c71c13 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -87,7 +87,14 @@ static int GetAlignedSize( int size ) [fCropRightStepper setMaxValue: title->width/2-2]; [fDeinterlaceCheck setState: job->deinterlace ? NSOnState : NSOffState]; [fPARCheck setState: job->pixel_ratio ? NSOnState : NSOffState]; - + if ([fAutoCropMainWindow intValue] == 0) + { + [fCropMatrix selectCellAtRow: 1 column:0]; + } + else + { + [fCropMatrix selectCellAtRow: 0 column:0]; + } MaxOutputWidth = job->width; MaxOutputHeight = job->height; fPicture = 0; @@ -214,6 +221,7 @@ static int GetAlignedSize( int size ) [fCropBottomStepper setEnabled: !autocrop]; [fCropLeftStepper setEnabled: !autocrop]; [fCropRightStepper setEnabled: !autocrop]; + [fAutoCropMainWindow setStringValue: [NSString stringWithFormat:@"%d",autocrop]]; if( autocrop ) { memcpy( job->crop, fTitle->crop, 4 * sizeof( int ) ); |