summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Queue allow proper deleting of encoding queue items and proper ↵dynaflash2008-09-181-5/+12
| | | | | | deleting of previously cancelled items. Also fixed Pause. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1716 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue from 1703 where once done doing at least one encode, all ↵dynaflash2008-09-181-22/+25
| | | | | | | | subsequent jobs would require that you add to queue first, then hit start. - Now, even after encoding a queue is finished, you can just hit "Start" to add the currently loaded job in the GUI to the queue and start encoding right away. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1715 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix turbo two pass (thanks beelsebob and jkint for help ↵dynaflash2008-09-171-3/+9
| | | | | | | | troubleshooting it ) - also added a few more debugging messages to prepareJob until things cool down a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1714 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add some temporary activity log messages to try to debug the new queuedynaflash2008-09-171-4/+5
| | | | | | - with any luck I can get rid of these down the road git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1713 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix crash when selecting between target size and abr.dynaflash2008-09-171-3/+1
| | | | | | | - calculateBitrate shouldn't need nor can it any longer use prepareJob - should still verify proper calcs for target bitrate and abr, but better not to crash. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1711 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix chapter markers which were borked in 1703dynaflash2008-09-171-1/+1
| | | | | | -Note: this only fixed adding chapter markers. Custom chapter names are *not* fixed, if chapter markers checkbox is checked you will currently get 001, 002, etc. etc. for chapter names. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1708 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix subtitle scan which I broke in 1703dynaflash2008-09-171-3/+4
| | | | | | | - clean up some extra activity log messages -NOTE: As of this time chapter markers are still broken. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1707 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Resilient Queue: Initial Implementationdynaflash2008-09-161-440/+1386
| | | | | | | | | | | | | | | | - Completely overhauls how encodes are setup by the MacGui - All encodes are now stored in an NSMutableArray (QueueFileArray) and saved in a plist (~/Library/Application Support/HandBrake/Queue.plist) - A separate instance of libhb (fQueueEncodeLibhb) is used for queue processing (includes single encodes) - fHandle still takes care of all user intiated scans and encode parameters - libhb now only stores multiple passes for a single encode instead of storing the entire queue - If HB crashes, or if you stop encoding while there are still pending encodes in your queue, upon next launch you will be prompted to reload the previous queue from the Queue.plist - Removed the current encoding information at the top of the queue window to make room for a larger list as I thought it to be redundant - The queue list is now re-arrangeable via drag-n-drop (pending encodes only) - Known issues and bugs: -- If you delete a previously cancelled encode then try to restart with a new encode, nothing happens. Throw off the sync of the currently encoding job. -- Probably alot more since its a total overhaul of how the MacGui has handled encoding since titer originally wrote it :) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1703 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove legacy preferences since they are now controlled via the presets.dynaflash2008-08-041-21/+5
| | | | | | | | | | | - Remove the Chapter Markers preference - Remove the Set Deinterlace to on upon scan preference -- Note: this means that for custom presets that do not use picture filters, Deinterlace will not be used upon scan since there is no preference to use it anymore, otherwise the default preset will control it. - Remove the Use Picture Par upon scan -- Note: this means that for custom presets that do not use picture settings, Anamorphic will not be used upon scan since there is no preference to use it anymore, otherwise the default preset will control it. - Also correct the label for custom Decomb string to read Decomb instead of Deblock "duh" . git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1605 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Don't repopulate fVidRatePopUp in titlePopUpChanged. The framerates ↵ritsuka2008-07-301-31/+2
| | | | | | are always the same. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1595 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Do not disable the ui if there is no reason to do so. Removed unused ↵ritsuka2008-07-291-26/+5
| | | | | | include. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1589 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: cleanup updateUI methods. Removed white spaces, and an useless variable.ritsuka2008-07-281-38/+32
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1588 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: - Implement automatic extension switching for mp4/m4v.ritsuka2008-07-281-82/+75
| | | | | | | - Disable http mp4 checkbox when an ac3 track is present. - Disable autonaming if there is only one title in the source. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1587 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Use nil instead of NULL. Patch by blindjimmy. ↵ritsuka2008-07-281-150/+148
| | | | | | http://handbrake.djgraphite.com/r/33/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1586 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui; Fixed a crash when the chapters tableview is selected and a new ↵ritsuka2008-07-231-20/+13
| | | | | | | | source is being opened. Some whitespace cleaning too. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1574 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Much improved decomb filter. Totally different algorithm, with a temporal ↵jbrjake2008-07-111-1/+1
| | | | | | | | element, a block window, and a simple weighting decision for which deinterlacer to use. See code comments. The code isn't well optimized yet, and would probably benefit from -O3 (as opposed to the -Os optimization level currently used in macosx builds). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1566 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove scanned source framrate display from "Same as source" in the ↵dynaflash2008-07-101-18/+5
| | | | | | | | | fps popup. - Some feel this is misleading and shouldn't be there since same as source now uses true source frame durations. - made the fps and encoder popups narrower to fit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1561 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fixed a crash when dismissing the open window.ritsuka2008-07-021-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1551 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Replace MVMenuButton with standard controls. Thanks blindjimmy.ritsuka2008-06-251-16/+16
| | | | | | Replace plus and minus icons with apple's one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1537 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Replace valueForKey with objectForKey when accessing the ↵dynaflash2008-06-251-87/+86
| | | | | | NSDictionary in presets. Though this makes no functional difference, it is more consistent. Patch by blindjimmy. http://forum.handbrake.fr/viewtopic.php?f=4&t=6418 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1536 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove spurious NSString stringWithFormat calls in controller.mm ↵dynaflash2008-06-171-98/+98
| | | | | | Thanks blindjimmy for the extensive house cleaning. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1514 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix issues with audio in presetsdynaflash2008-06-061-8/+77
| | | | | | | | - Change audio track behavior so that presets only set the audio tracks it has stored, and removes any other previously selected audio tracks - Prevents a scenario whereby selecting the ATV preset then the iPod preset results in two identical audio tracks for the iPod - Fix an issue where certain mixdowns and bitrates contained in a preset may not be available depending on a source which resulted in no selection. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1499 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: implement constant frame rate encoding for all but same as source.dynaflash2008-06-051-0/+7
| | | | | | - implements svn rev 1496 in the macgui git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1497 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add "Auto" to audio sample rate selectionsdynaflash2008-06-041-16/+26
| | | | | | | | - Auto simply uses the input audio's sample rate - Built in presets updated to use Auto for all but device presets which still use 48. - prepareJob now uses the selectedIndex's tag from the sample rate NSPopUp instead of libhb's built in array of sample rates git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1495 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Implements a part of the NSTableView delegate in ChapterTitles so ↵ritsuka2008-06-041-0/+1
| | | | | | that pressing Return selects the next row and edits the chapter title so that the mouse or Mac OS X's full keyboard access is not required. Patch by bkiico517. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1492 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - support blu-ray, avchd & dvb x264van2008-05-311-5/+6
| | | | | | | - support video files handled by ffmpeg (avi, mkv, mp4, etc.) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1480 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add decomb setting to presetsdynaflash2008-05-291-2/+16
| | | | | | | - Even though currently in svn we allow for a custom setting, only observe Off and Default. So if a preset is created using "Custom" in the decomb NSPopUp the preset will actually use Default, so you will have to set it back to Custom manually. - This is temporary as the "Custom" setting *should* be deprecated at some point. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1472 b64f7644-9d1e-0410-96f1-a4d463321fa5
* git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1471 ↵jbrjake2008-05-291-15/+40
| | | | b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: For VFR set the frame rate to the title frame rate (Same as Source) ↵dynaflash2008-05-191-1/+6
| | | | | | and disable the frame rate popup. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1466 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Fix toolbar item leaks for main and preferences windows. Patch by ↵ritsuka2008-05-071-3/+2
| | | | | | blindjimmy. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1453 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Remove the "toolbar" variable from Controller. Patch by blindjimmy.ritsuka2008-04-261-13/+13
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1446 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Generate the Application Support path using API calls. Patch by ↵ritsuka2008-04-261-14/+14
| | | | | | blindjimmy. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1445 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Add a return type to controller's init method. Patch by blindjimmy.ritsuka2008-04-261-1/+6
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1444 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Remove last traces of "_" macro and TranslateString. Patch by ↵ritsuka2008-04-261-38/+20
| | | | | | blindjimmy. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1443 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: make sure to strip off any source file extensions from the output ↵dynaflash2008-04-251-19/+20
| | | | | | | | | file name. - Fixes an issue where a .mpg file would come out as "mymovie.mpg.mp4" in the destination field. - Also cleans up some formatting in my previous commit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1441 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Audio Tab - Make sure that selecting a subsequent audio track does ↵dynaflash2008-04-251-0/+28
| | | | | | not re-enable the sample rate, bitrate, and drc settings on a previously selected AC3 Passthru track. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1440 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: only enable audio tracks if the previous tracks have been chosen.dynaflash2008-04-241-3/+34
| | | | | | - prevents a scenario in which you could have track 1 and track 4 selected with 2 and 3 as "None". git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1435 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: replace handbrake.m0k.org references with handbrake.fr in the entire ↵dynaflash2008-04-151-1/+1
| | | | | | macosx/ directory git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1419 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix AC3 Passthru bitrate setting in audio tab when using a legacy ↵dynaflash2008-04-141-31/+33
| | | | | | | | | preset from the old audio system. - Now properly sets the source track input bitrate as the output bitrate in the NSPopUpButton so it displays correctly in the audio tab as well as the queue and allows you to make new presets from an older one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1414 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Get rid of some harmless warnings in Controller.mm during compiling.dynaflash2008-04-111-11/+18
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1403 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Do not call customSettingsUsed until we have an intelligent way to ↵dynaflash2008-04-101-1/+4
| | | | | | determine selected audio variables compared to presets so that presets stay selected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1399 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Implement per audio track drcdynaflash2008-04-081-19/+103
| | | | | | | | - Uses a small circular slider for each track - Stops on ticks for .25 granularity - Presets regress from global drc to apply it to all tracks if used in past custom preset. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1397 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix broken Add Preset function for adding custom presets.dynaflash2008-04-081-27/+36
| | | | | | - Was broken in rev 1385 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1396 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Sanity Check AC3 passthrough against any input audio that is not AC3.dynaflash2008-04-081-2/+2
| | | | | | - Previously only sanity checked against DTS. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1395 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Enhance Growl notifications and send to metaX so that each encode is ↵dynaflash2008-04-071-29/+32
| | | | | | | | handled as it comes off of the queue. - Previously only the last encode of a queue gave the finished growl notification and was sent to metaX. Now if specified by the user they happen as the encodes progress through the queue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1388 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix the DTS source audio mixdown for an attempted AC3 passthru audio ↵dynaflash2008-04-071-3/+26
| | | | | | | | | track - Since AC3 Passthru will not work with a DTS audio source track, we us mp3 dpl2 for avi and aac dpl2 for mkv and mp4. - Revert HandBrake.plist to pre 1385 as it was errantly checked in with that commit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1386 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Implement per track audio settings.dynaflash2008-04-071-472/+906
| | | | | | | | | | | | | | | | | | | | - Expands the number of audio tracks the macgui can encode to 4. - Everything except drc is now set on a per track basis - Be Gone self limiting "Codecs" PopUp ! - Can now use any audio codecs that the container will support in the same encode - The previous "AAC + AC3" bizarre hybrid is now deprecated and you simply set them up per track - Implement full audio list readout in the queue, tracks are now show one per line in a list like fashion - Queue is no longer hard coded for just two tracks. - Preset code updated to regress to handle previous presets that utilized the codecs popup to determine audio scheme to use - Preset code now handles everything except language selection. - The Format, Video Encoder and Audio codes are all now stored in the appropriate NSPopUp tags for very easy retrieval. - Crazy format, codecs struct is now gone as we get that from the tags. - AC3 Passthru properly shows the input bitrate and 48 khz samplerate in the appropriate popups - Added Theora video encoder to OGM container - Added libtheora to the libhb dylib - NOTE: The check against trying to use AC3 Passthru on a DTS track is broken on the encoder popup. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1385 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where a new encode would retain one audio track from the ↵dynaflash2008-04-021-1/+2
| | | | | | previous encode if there was one. Bug introduced in rev 1367. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1369 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix audio issue where both tracks would use the first source audio ↵dynaflash2008-04-021-4/+4
| | | | | | track regardless of what source track was chosen. Bug introduced in rev 1367 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1368 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Update to use the new audio layout.saintdev2008-04-011-159/+205
| | | | | | | This only updates the current interface, nothing new added. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1367 b64f7644-9d1e-0410-96f1-a4d463321fa5