summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.m
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: fixy a crash when opening an external SRT file.Rodeo2014-01-191-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5985 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: update to the new preset getter API.Rodeo2013-11-081-8/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5884 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Denoise (hqdn3d) syntax change: accept settings for individual chroma channels.Rodeo2013-11-081-6/+6
| | | | | | | Patch by BradleyS. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5880 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: validate the toolbars items after a scan. This used to be done but ↵ritsuka2013-11-051-1/+2
| | | | | | got lost somewhere along the way. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5877 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Refactor HBPreviewController. Rename the actual class to ↵ritsuka2013-11-041-3/+8
| | | | | | HBPreviewController, and move the image and video creation code to a separate HBPreviewGenerator class. Update the preview duration list as Rodeo suggested. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5874 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: refactor PictureController. kill a bit of dead code (~500 lines), ↵ritsuka2013-11-021-22/+7
| | | | | | switch some ivars to properties, hide the private methods and rework the deinterlace logic. Plus UI alignment. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5869 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Varius warnings fixes:ritsuka2013-10-251-216/+221
| | | | | | | | | | - NSUInteger and NSInteger instead of int (where the Cocoa 64bit api uses them). - Cast to int when needed because NSInteger on 64bit is defined as long. - NSURL instead of NSString when possible. - Replaced some deprecated methods/functions. - numberWithInteger instead of numberWithInt. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5854 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: fixed a number of leaks/null-deferences/dead-code found by clang ↵ritsuka2013-10-151-59/+29
| | | | | | static analyzer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5838 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Replace deprecated NSWorkspace API calls. Patch by Alexander Zautke.ritsuka2013-09-281-26/+27
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5817 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: use FSEvent api to create a FSEventStream to keep track of when a ↵ritsuka2013-08-191-28/+101
| | | | | | | | file inside the Queue folder is update. Move Queue.plist inside a folder because FSEvent can only track changes at folder level, so we have a folder with just a file inside. Whenever something happens inside the Queue folder, HandBrake reload Queue.plist. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5720 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add hb_video_quality_get_limits and hb_video_quality_get_name to libhb API.Rodeo2013-07-131-51/+74
| | | | | | | | Includes a MacGui implementation. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5647 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: improve previous commit a bit.Rodeo2013-07-011-2/+13
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5631 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix a silly Logic bug in logging code.sr552013-07-011-6/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5630 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add experimental avformat muxer for mkv and mp4jstebbins2013-06-301-3/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5620 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb/common: improve fallback mechanism.Rodeo2013-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | API changes: - added hb_global_init(), must be called before any other libhb function - removed (somewhat pointless) hb_mixdown_t.internal_name - some hb_*_get_from_name() functions now return 0 instead of -1. Instead of hardcoded fallbacks, list items now have a specific fallback, and a generic ID for when the specific fallback is unavailable. Encoder availability is checked at runtime (hb_global_init calling hb_common_global_init) and the item's value/fallback is sanity-checked and updated if necessary. See https://reviews.handbrake.fr/r/506/ for more detailed information. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5547 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Patch -Replace some deprecated API Calls ↵sr552013-06-011-36/+40
| | | | | | https://reviews.handbrake.fr/r/504/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5543 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't expose rate, mixdown, dither and encoder arrays to the UIs.Rodeo2013-05-301-166/+194
| | | | | | | | | | | | | | | | | | | | - instead, make these lists available through enumerators: --> hb_*_get_next(<type> *last); - this should give us more flexibility to populate the lists at runtime, using the implementation(s) of our choice, whether they use arrays or not, without requiring UI modifications - use consistent naming for getters --> hb_get_best_foo() becomes hb_foo_get_best(), and so on - hb_*_get_from_name() and hb_*_ sanitize_name() sanitize the requested value to a supported one if it's unavailable - adds an additional, passthru-specific fallback mechanism - adds a list of video containers git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5526 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Make initialization of vfr filter work as I intended.jstebbins2013-05-281-10/+14
| | | | | | | Also fix signalling of framerate in output file when PFR is used. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5522 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix a bug where the iPod 5G checkbox would be disabled for x264 in MP4.Rodeo2013-05-121-16/+13
| | | | | | | | | | This would happen when switching from MKV with a Theora encoder to MP4: the encoder would be reset to x264, but we failed to detect the change of encoder and therefore didn't call videoEncoderPopUpChanged. Also, don't needlessly call twoPassCheckboxChanged after videoEncoderPopUpChanged since the latter calls the former. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5452 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: refactor handling on chapter titles.Rodeo2013-05-111-13/+1
| | | | | | | | job->list_chapters is reset by any call to hb_job_reset(), so store chapter titles in an NSArray instead. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5451 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: harmonize audio configuration code in prepareJob and prepareAudioForJob.Rodeo2013-04-281-21/+25
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5422 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: bugfix: set video framerate mode (vfr, pfr, cfr) when editing queue ↵Rodeo2013-04-281-15/+29
| | | | | | items. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5416 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: simplify queue display code.Rodeo2013-04-121-11/+34
| | | | | | | | | | | | | Add detailed summaries to the queue item dictionary and use them in HBQueueController. This helps remove a lot of duplicate logic. Uses existing methods pictureSettingsSummary, pictureFiltersSummary and new muxerOptionsSummary. Also add a few height rows for long lines that often wrap to a second row. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5398 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: main and queue window improvements.Rodeo2013-04-121-112/+153
| | | | | | | | | | | | | | | | Merge fPictureSizeField and fPictureCroppingField into fPictureSettingsField (fits on a single line). Rename fVideoFiltersField to fPictureFiltersField. Move the two text fields closer to each other now that there is more room. Also align their contents using tabs. This should look better overall. Add pictureSettingsSummary and pictureFiltersSummary to generate the text summaries used in the fields above. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5395 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: rename a variable.Rodeo2013-04-121-13/+13
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5393 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix loading preset which specify an advanced options string (rather ↵Rodeo2013-04-121-70/+87
| | | | | | | | | | | | than using the x264 preset system). Also miscellaneous cleanup and improvement. The issue was introduced in SVN revision 5388. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5392 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: when switching from the x264 system to the advanced panel, populate ↵Rodeo2013-04-091-11/+17
| | | | | | | | | | | | the advanced panel's options string with the unparsed x264 system options. Also, don't reset the x264 system widgets, so that the x264 system settings are not lost when switching back. When loading a preset whic uses the advanced panel, do reset the x264 system widgets, however. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5388 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix a bug when saving a preset, the x264 system is used but the ↵Rodeo2013-04-091-2/+9
| | | | | | unparsed string is empty (all defaults). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5387 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix an issue where the advanced panel's widgets were not being ↵Rodeo2013-04-071-0/+3
| | | | | | populated in time, if the default preset used the x264 system. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5385 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Update the in-app icons to the new graphicssr552013-03-181-15/+15
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5342 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_system_sleep: refactoring.Rodeo2013-03-181-9/+9
| | | | | | | | | | | | Also: - release power assertions before freeing them - actually free the power assertions in hb_close() (previously unused) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5340 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: improve hb_system_sleep support.Rodeo2013-03-181-22/+44
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5338 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_system_sleep: allow/prevent sleep from the UI rather than libhb.Rodeo2013-03-181-0/+3
| | | | | | | | | | The code that sets/unsets the "power assertions" is still in libhb. Patch by Jérôme Lacube. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5336 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix external SRT subtitles after last commit.Rodeo2013-03-131-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5326 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: only show the global default preset in bold.Rodeo2013-03-041-3/+3
| | | | | | | | Previously, if there were 2 default presets (HB and user), both names would be displayed in bold. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5305 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add a TODO.Rodeo2013-03-041-0/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5298 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI, MacGui: cosmetics.Rodeo2013-03-011-11/+22
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5277 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve scan progress granularityjstebbins2013-03-011-11/+30
| | | | | | | | We were only updating progress after completely processing each title. Now progress is updated as we generate previews as well. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5276 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: open the URL to a specific, known version of libdvdcss.Rodeo2013-02-271-1/+1
| | | | | | | | Latest version may not have a macosx/ subdirectory or even a .pkg installer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5274 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: re enable deinterlaced still preview images when deinterlace is ↵dynaflash2013-02-041-1/+1
| | | | | | | | | | selected. - Also add a deinterlaced preview still image when decomb is selected as libhb does not notice decomb for still previews. Do a quick shell game when decomb is selected only to grab a deinterlaced preview. - As a side note, remove some extremely vestigial code from controller.m as far as a min preview size. - fwiw, lingui already apparently does this. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5239 b64f7644-9d1e-0410-96f1-a4d463321fa5
* x264 preset system: miscellaneous improvements.Rodeo2013-01-301-21/+18
| | | | | | | | See https://reviews.handbrake.fr/r/421/ for details. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5225 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove extra space in encoding status line string for 1 pass encodes.dynaflash2013-01-281-1/+9
| | | | | | | - Patch by sanmarcos Thanks! - Addresses https://reviews.handbrake.fr/r/422/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5215 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add missing tooltips . Align and fix issues.dynaflash2013-01-271-0/+5
| | | | | | | - Patch by sanmarcos … Thanks! - Detail addressed here https://reviews.handbrake.fr/reviewboard.fcgi/r/423/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5214 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix a null placeholder upon launch in the x264 unparse string.dynaflash2013-01-271-3/+10
| | | | | | | - Patch by sanmarcos Thanks! - Explained here https://reviews.handbrake.fr/r/426/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5213 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Only show the warning about copy proteciton once.sr552013-01-271-52/+13
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5210 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: sync built-in presets with the other UIs.Rodeo2013-01-261-22/+48
| | | | | | | | Also make handling of max width/height more robust. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5207 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: cosmetics: re-indent.Rodeo2013-01-231-5/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5198 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacUI: Fix crash caused by double free of advanced_optsjstebbins2013-01-231-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5197 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: retain the current storage width and height and use it when ↵Rodeo2013-01-161-6/+15
| | | | | | | | | | unparsing the x264 options. This is done in calculatePictureSizing as it is called whenever width or height change. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5175 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: free(NULL) is perfectly safe.Rodeo2013-01-061-10/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5165 b64f7644-9d1e-0410-96f1-a4d463321fa5