summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Remove the VFR checkbox in the Picture Settings window.dynaflash2008-09-241-45/+25
| | | | | | | - Use vfr if the framerate popup is "Same as source" and Detelecine is checked in Picture Settings. - Otherwise framerate works as in the past. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1752 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: implement a slider for deblock.dynaflash2008-09-231-9/+20
| | | | | | | | - Slider goes from "Off" and then ranges from 5-15. - Update preset code to handle the old bool for deblock where we convert "yes" to a value of 5. - Note: though the deblock filter actually has a setting of 0, for the macgui we use an integer of 0, which shows up in the interface as "Off" to indicate not to load the filter at all. Made presets etc, easier to modify. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1750 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: upon reloading a previous queue at launch, open up the queue window.dynaflash2008-09-231-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1746 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: When reloading a previous queue at launch, as well as pending ↵dynaflash2008-09-231-24/+77
| | | | | | | | | | | encodes also reload a queue item marked previously as "encoding" if it exists. - An item marked as encoding in the qeueu at launch indicates that either we crashed during that encode, or that the user shut down during that encode. - If the user chooses to reload, we change the status back to pending. Note: the encode will be at the top of the queue after launch. - Change the queue reload alert window to tell the user how many pending jobs they have as well as if there was an encoding job. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1745 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Re-enable deleting encodes with the delete key if hilighted.dynaflash2008-09-221-4/+4
| | | | | | | - Currently one at a time, multiple selections are shut off for queue sync reasons . - Note: To delete a finished encode, click on it and hit your delete key ( since the action icon is an "open file in finder" magnifying glass) as this is the only way currently to delete a finished encode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1744 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix sleep/shutdown warning so it only comes up once right when ↵dynaflash2008-09-221-4/+5
| | | | | | starting encoding instead of every time the queue starts the next encode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1743 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add encoding status readout to the queue windowdynaflash2008-09-221-3/+14
| | | | | | - is fed info from controller.mm instead of the old setup which had another NSTimer polling libhb just for the queue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1742 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: End of encode/queue alerts and actions changesdynaflash2008-09-211-33/+52
| | | | | | | - Growl alerts and "Send to MetaX" actions occur as each encode comes finishes in the queue. - The standard alert window, computer sleep and computer shutdown all occur at the end of encoding the entire queue, specifically when the encoding is done, and there aren't any other pending encodes to process. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1739 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: upon launch, if pending items are still in the queue, if you choose ↵dynaflash2008-09-211-2/+3
| | | | | | to reload them, you are not presented with the browse source window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1738 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Custom chapter names restored (borked in 1703)dynaflash2008-09-191-5/+49
| | | | | | | - The chapter names are now stored in the queue as the key "ChapterNames" which has an array of names as its value and are re-applied to the job when the queue goes to that encode if applicable. - As with all things, should save some work if you use a lot of custom chapter names and you have to shut down during a long queue encode and restart later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1730 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: "Stop" command modificationsdynaflash2008-09-181-11/+32
| | | | | | | | | | | - Clicking on the "stop" icon in the toolbar now produces a different alert window with three choices - " Continue Encoding " default, just dismisses the window and continues on its merry way. - " Cancel Current and Stop " Cancels the current encode and stops the queue - " Cancel Current and Continue " Cancels the current encode and moves to the next pending encode (if there is one). - Also fixed an issue with deleting a canceled encode at the top of the queue list. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1718 b64f7644-9d1e-0410-96f1-a4d463321fa5
* 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