summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
Commit message (Collapse)AuthorAgeFilesLines
* "If one would give me six lines written by the hand of the most honest man, ↵jbrjake2008-03-221-10/+65
| | | | | | | | | | I would find something in them to have him hanged." - Banishes libdvdcss, removing DVD decryption from HandBrake's binaries. - For decrypttion, the MacGui and Mac CLI now will load at runtime VLC's dynamic library of dvdcss if the media player's available on the user's system. - Linux users can build with a statically linked lib of dvdcss by using ./configure --libdvdcss, which will download it from a remote third party (videolan.org). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1354 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Write version info the the activity log and activity windowdynaflash2008-03-171-0/+4
| | | | | | | - writes the Handbrake version number and build number to the activity window and log text file upon startup (this no longer occured out of libhb once we updated the update system to Sparkle) - Add writing the version info upon clearing of either the log file or the window, this way we have version info from users even if they have cleared the top of the logs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1344 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Clean up some formatting and errant comments left over from some of ↵dynaflash2008-03-071-17/+12
| | | | | | the snippets I robbed out of HBQueueController on the drag and drop preset commit. :) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1335 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Initial implementation of drag and drop in the presets drawer.dynaflash2008-03-071-6/+158
| | | | | | | | | | - Allows drag and drop arrangement of custom user presets - Does not allow reordering of built in presets. - Sorting of presets now done only by type ie. built in and custom user. - Provides functionality for future nested presets and drag and drop arranging. - Subclasses the presets outline view for better control over drag and drop behavior git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1334 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Presets - change the cursor highlighted color of the preset name to ↵dynaflash2008-03-061-1/+1
| | | | | | black, so when changing the name, you can see the letters. The old white made it almost impossible.... duh! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1331 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where renaming a preset does not reflect the new name ↵dynaflash2008-03-061-12/+5
| | | | | | | | | immediately in the preset drawer - call [fPresetsOutlineView reloadData]; - use "-sortPresets" method instead of sorting it in its own method git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1330 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: move the presets sorting into a new method "-sortPresets" so it can ↵dynaflash2008-03-061-5/+11
| | | | | | be done independently of adding a preset in preparation for drag and drop preset arranging capability. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1329 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where prepareJob was not sensing MKV in the Format popup ↵dynaflash2008-03-051-1/+1
| | | | | | | | | | | correctly. - Takes care of the no mkv chapter issues reported here: http://forum.handbrake.fr/viewtopic.php?f=12&t=5120 - Thanks for the diagnostic testing and bringing it to our attention simoncoul ! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1327 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Be Gone rotten 64-bit preferences check. Be Gone!dynaflash2008-02-211-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1312 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Un-Banish the 64 bit mp4 checkbox from the Siberia known as the ↵dynaflash2008-02-211-16/+4
| | | | | | | | preferences now that we have a device and a preset designed specifically for 64 bit mp4's. - Don't say it jbrjake :) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1310 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix and issue for auto adding the .m4v file extension for the aac + ↵dynaflash2008-02-211-9/+17
| | | | | | | | ac3 encoder for mp4 where reselecting mp4 format would reset the extension back to .mp4 and not .m4v - Moves this to a new method called codecsPopUpChanged: so it is easier to call form multiple methods git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1309 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where canceling the open source window, then re opening it ↵dynaflash2008-02-211-2/+2
| | | | | | | | and selecting a source or cancelling is could cause a crash. - Patch courtesy of Xeri git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1308 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Change Home Page, Forum, and Wiki links in the help menu to use ↵0.9.2dynaflash2008-02-191-3/+3
| | | | | | handbrake.fr git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1303 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: As per newer vfr implementation. No longer disable the framerate ↵dynaflash2008-02-191-7/+1
| | | | | | popup and no longer force it to 29.967 fps. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1295 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Sanity check the input codec is AC3 when selecting AC3 pass through to avoid ↵eddyg2008-02-181-1/+1
| | | | | | crash when it is mpega or lpcm etc. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1290 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Make sure that mp4's using ac3 passthru whether by itself or in ↵dynaflash2008-02-181-0/+9
| | | | | | combination with aac use the .m4v file extension as otherwise quicktime will not play it at all. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1286 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix DPL2 + AC3 mixdown crash if the input audio source is DTSdynaflash2008-02-171-1/+1
| | | | | | - Since DTS cannot pass thru AC3, revert to just DPL2 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1275 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Change aac/ ac3 hybrid to utilize the codecs popup and only offer ↵dynaflash2008-02-161-8/+25
| | | | | | | | | | one mixdown for each additional choice. - adds AVC h.264 / AAC + AC3 Audio and AVC h.264 / AC3 - First corresponds to the dpl2 + ac3 passthru mixdown - Second corresponds to the AC3 pass thru mixdown git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1272 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Mcdeint is broken, so avoid using it as a deinterlacer. No more "Slowest," ↵jbrjake2008-02-161-17/+26
| | | | | | "Slow" becomes yadif without spatial checks, "Slower" becomes yadif with spatial checks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1269 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Allow mac gui to select AC-3 + AAC at the same time, still needs CLI work ↵eddyg2008-02-161-4/+59
| | | | | | for the same. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1267 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Allow multiple output audio tracks from a single DVD audio track.eddyg2008-02-151-0/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1266 b64f7644-9d1e-0410-96f1-a4d463321fa5
* AC3 from DVD via HB converted to M4V for viewing on ATVeddyg2008-02-141-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1261 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: remove the preference to turn off verbose output in the activity window.dynaflash2008-02-131-4/+2
| | | | | | | | - non verbose output is of no use whatsoever to the macgui - uses "HB_DEBUG_ALL" for hb_init - removed preference from preferences window git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1259 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix picture sizing issue in presets where creating a preset using an ↵dynaflash2008-02-071-2/+13
| | | | | | HD source (ie. 960 x 544) and then using that preset on a smaller source (ie. dvd) would cause the smaller source to be upscaled to the larger size. Now preset is restricted to scale no larger than the current source regardless of size when it was created. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1252 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add the Forced subtitles checkbox to custom user presetsdynaflash2008-02-071-0/+5
| | | | | | | | - uses [preset setObject:[NSNumber numberWithInt:1] forKey:@"SubtitlesForced"] to turn the forced checkbox on in the preset - Not added to any built in presets - checkbox is unchecked for any preset that doesnt explicitly have it set. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1251 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix bug where switching titles with vfr on changes the framerate ↵dynaflash2008-01-231-4/+3
| | | | | | | | from 29.97 which is required by vfr. - Note: mostly cosmetic to the gui as libhb is pretty much ignoring the framerate specified by the gui when vfr is on anyway. But the gui should reflect as much as possible what libhb is doing behind the scenes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1233 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: comment out two unused variables from legacy update system to quell ↵dynaflash2008-01-221-2/+3
| | | | | | build warnings, will remove completely after 0.9.2 is released. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1229 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove one last section of code which generated the old update alert ↵dynaflash2008-01-221-14/+0
| | | | | | window, duh! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1226 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove deprecated -updateAlertDone method used in the old updating ↵dynaflash2008-01-221-31/+9
| | | | | | | | scheme - Deprecated due to the Sparkle updater implementation git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1225 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where selecting the chapter tab can crash the macgui if no ↵dynaflash2008-01-221-0/+4
| | | | | | | | valid source is selected - patch by travistex git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1222 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Make Legacy iPod presets truly backwards compatibledynaflash2008-01-221-6/+7
| | | | | | - Preset code now adds "level=30" to the advanced options string if the deprecated "x264 (h.264 iPod)" is detected as encoder in a legacy preset. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1221 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Be Gone x264 (h.264 iPod) encoder drop down!dynaflash2008-01-211-41/+44
| | | | | | | | | | | - Added an "Insert iPod Atom" checkbox right under "HTTP optimized" checkbox which sets job->ipod_atom = 1; in prepareJob if checked (Note: the name of the checkbox is currently up for debate, we are taking suggestions though the current name is most indicative of what it does). -Level is now handled in the advanced panel opt strings for x264 and width is no longer sanity checked by the gui. - Changed the remaining x264 (Main) to just x264 - Modified preset code to account for legacy presets from old dropdowns - Modified built in presets to include "level=30" for iPod / iPhone presets NOTE: Update your built in presets if you want the iPod and iPhone presets to be compatible. - Removed the "Reset Picture to 640 for x264 iPod" preference from the Preferences -> Picture panel. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1216 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: small tweak to check for duplicate output file before adding to the ↵dynaflash2008-01-171-1/+2
| | | | | | queue. patch courtesy of travistex. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1207 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Sparkle Updater initial implementationdynaflash2008-01-161-1/+5
| | | | | | | | | | | | | - Changed the call to hb_init to use "0" instead of the old check for updates at launch boolean value from the preferences - Added Sparkle.framework to the xcode project - Added "Check for updates..." menu item in the file menu - Check for updates at launch in the preferences window now binds to SUCheckAtStartup in Shared User Defaults - Macgui now checks for updates against our appcast at handbrake.fr/appcast.xml (this is specified in /macosx/HandBrake.plist as the value for the "SUFeedURL" which is added now. - To check for update Sparkle compares the number in the "CFBundleVersion" (which is our build number) against the "sparkle:version="xxx"" in the enclosure tag in the appcast to trigger an update alert - TO TEST: Change the CFBundleVersion in /macosx/HandBrake.plist to < 10101 (the dummy sparkle:version in the appcast right now) and build, upon launch you should get alerted of a new version available - NOTE: The entire Sparkle.framework directory is added to the svn in this commit. Its 2.4 mb, though it looks like some things (particularly a ton of localized nibs) could be removed to slim it down quite a bit. As its the initial implementation and I know its tested I am committing the whole thing for this rev. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1204 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fixes scanning progress bar, still uses indeterminate for single ↵dynaflash2008-01-141-18/+10
| | | | | | title only scans. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1196 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use weightb=0 for turbo 1st pass x264 options. This prevents frame count ↵jbrjake2008-01-141-1/+1
| | | | | | discrepancies between passes that can lead to a crash at the end of the 2nd pass. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1194 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Warn of duplicate output filenames when adding to the queue.dynaflash2008-01-141-0/+13
| | | | | | - Thanks travistex git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1192 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add some activity log messages pertaining to source scan selectiondynaflash2008-01-091-6/+10
| | | | | | | | - Add message telling if user tried to open a physical dvd, reports the volume name instead of path (like hb_scan does now). This should help us with support as it tells us from the log what commercial dvd the user is trying to scan directly in most cases. - Add message to tell us which title the user chose to scan for a title specific scan - Cosmetic changes: changed messages and macgui leader to all lowercase to blend in better with the rest of the libhb messages git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1180 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add preset name used (or custom) to the queue and activity logdynaflash2008-01-091-21/+29
| | | | | | | | | - Courtesy of travistex - Uses "Custom" if the settings do not reflect a preset - Changed some names of functions in HBQueueController and added some comments - The main controller now notifies the queue controller whenever jobs are added to libhb. This allows the queue to find out about such jobs without having to query libhb's job list periodically. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1179 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: establish the source display name in browseSourcesDone instead of ↵dynaflash2008-01-081-28/+35
| | | | | | | | | | showNewScan to alleviate using the same logic twice depending on source type - Also adds the ability to scan .dvdmedia packages - Also changes the xcode project to not report xib messages during building, which previously filled the screen with remedial alignment messages, etc. - .xib warnings and errors are still reported git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1177 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: modify writeToActivityLog to use vargsdynaflash2008-01-081-6/+15
| | | | | | | - thanks travistex - can now accept input like: [self writeToActivityLog: "trying to open a package at: %s", [path UTF8String]]; git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1176 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: Implement writeToActivityLog method with provides a simple way to ↵dynaflash2008-01-081-5/+12
| | | | | | | | send messages to the activity window and log much like hb_log including a time stamp. - example call : [self writeToActivityLog:"trying to open a package"]; git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1172 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: Change to using stderr to write to the activity window from within ↵dynaflash2008-01-071-6/+6
| | | | | | | | | the gui. - stdout works, but only when run from within xcode. not when hb is run by itself. - Duh! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1171 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Loose Anamorphic initial implementationdynaflash2008-01-031-53/+54
| | | | | | | | | | - Changes the PAR checkbox to an anamorphic NSPopUp Button with "None", "Strict", and "Loose". - Sanity checks against the ffmpeg encoder, until that gets fixed. - removed six unneeded outlets for picture sizing in Controller.mm. - Previous presets will gracefully degrade to us "Strict" if anamorphic is specified. - I know about the bug where the picture window changes size on the first width drop when resizing Loose Anamorphic, so dont ask ;) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1161 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: Enable opening up .eyetv packages directlydynaflash2007-12-311-12/+59
| | | | | | | | | | - check source to see if the chosen file is a package - if so, checks for the .eyetv extension - then finds the program stream in the package and opens it. - gui does not call hb_scan if source is identified as a package, but is not an .eyetv package to avoid scanning errant packages - very verbose activity log messages from the gui for packages, would likely comment out for release, mostly to verify in testing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1156 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Maintain Picture Filters state across sourcesdynaflash2007-12-261-2/+13
| | | | | | | - Picture filters no longer reset to their defaults when a new source is chosen (includes vfr as well setEnabled to the fps drop down in the main window). - Added a new method -setInitialPictureFilters to PictureController.m to setup the filters upon first scan instead of in -SetTitle which reset them every time a new title was accessed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1148 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: DRC slider modificationsdynaflash2007-12-191-9/+7
| | | | | | | - Use the float value field rounded to 100ths for the actual drc value passed to libhb (previously was using float down to millionths which was obscured from the user by the size of the value field). - move -audDRCSliderChanged method to where the other audio control methods are in controller.mm git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1136 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add outlets for the DRC descriptive labels and disable/enable along ↵dynaflash2007-12-181-1/+2
| | | | | | with the rest of the interface. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1132 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue Update - thanks travistexdynaflash2007-12-171-47/+27
| | | | | | | | | | | - The primary change is that HBJob now copies the relevant fields out of hb_job_s that it needs. It no longer keeps a pointer reference to libhb's job. - The only time the queue looks at libhb's jobs is when scanning the job list in order to build of the GUI queue display. - Removed all uses of hb_current_job(). - Canceled jobs now stay listed in the queue, with a canceled icon. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1130 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: HTTP optimized mp4 implementationdynaflash2007-12-141-18/+34
| | | | | | | | | - New checkbox to enable http optimized mp4's - Shows/Hides depending on the "format" selection - Presets use new objectForKey:@"Mp4HttpOptimize" - Also renamed the outlet for 64 bit mp4's to more descriptive "fDstMp4LargeFileCheck" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1127 b64f7644-9d1e-0410-96f1-a4d463321fa5