summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.h
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: recover when the xpc service crashes.Damiano Galassi2019-08-111-1/+1
|
* MacGui: refactor the queue and implement part of the new queue ui.Damiano Galassi2019-07-191-23/+4
|
* MacGui: set the minimum deployment target to 10.10. Remove Growl and use ↵Damiano Galassi2018-06-081-2/+1
| | | | macOS standard notifications. Remove deprecated API usage and code that doesn't compile anymore (QTKit).
* MacGui: annotate the type of some arrays, and check the count of the input ↵Damiano Galassi2015-10-281-1/+1
| | | | jobs in HBQueueController addJobsFromArray:, so we don't add an empty undo command.
* MacGui: improved queue with undo/redo support for adding/removing jobs, and ↵Damiano Galassi2015-10-191-0/+2
| | | | added a icon for failed encode.
* MacGui: second part of the previous commitritsuka2015-08-061-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7392 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: various queue improvements, including:ritsuka2015-07-221-1/+0
| | | | | | | | | - multiple items drag & drop - "reset job" in contextual menu item to reset the job state - a toolbar item to select the action to perform when the queue is done - useless animations. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7358 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add nullability annotations to the headers and use weak where is ↵ritsuka2015-05-301-2/+7
| | | | | | possible. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7244 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove the "Reload queue" alert. The queue is always reloaded and ↵ritsuka2015-04-221-0/+2
| | | | | | the queue window is shown if there are pending jobs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7113 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: convert the mac gui to Objective-C ARC.ritsuka2015-03-171-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: refactor the stderr/stdout redirect code to be more modular.ritsuka2015-02-201-1/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6927 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: move the application delegate to its own class. Removed the "Open ↵ritsuka2015-01-221-0/+4
| | | | | | Source (Title Specific)" menu item, now integrated in the standard open panel. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6784 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: rename cancel: to cancelRip: so it won't be automatically called ↵ritsuka2015-01-201-1/+1
| | | | | | when the esc key is pressed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6778 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: moved the queue code from HBController to HBQueueController, ↵ritsuka2015-01-191-7/+22
| | | | | | reworked the way the queue synchronise itself between multiple instances to be more resilient (hopefully). Modified HBCore to take callback blocks instead of notifications. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6770 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: change the queue to work with serialized HBJob objects, remove the ↵ritsuka2014-12-271-9/+3
| | | | | | NSDictionary job representation and the duplicate prepareJob method. Implement NSCopying protocol in HBJob. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6655 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: moved the HBQueueOutlineView class to its own file.ritsuka2014-11-231-29/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6539 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: general clean up of HBQueueController: removed unused UI elements ↵ritsuka2014-08-181-102/+1
| | | | | | and code, moved the toolbar to the xib, update the obj-c syntax. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6306 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: fixed a number of leaks/null-deferences/dead-code found by clang ↵ritsuka2013-10-151-1/+8
| | | | | | static analyzer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5838 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix compil<tion with clang.Rodeo2013-09-201-1/+1
| | | | | | | Implementing a protocol is not enough, we need to actually tell the compiler that we are doing it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5788 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix how we get the current instances pid number since ↵dynaflash2010-07-191-0/+1
| | | | | | | | | | NSRunningApplication is a 10.6 only api and therefore breaks 10.5 compatibility (which also borked the nightly build). - Many thanks to ritsuka for pointing this out. - Also adds ability to get the full path to each running instance if we need it in the future. - Note: Adds additional logging to hbInstances which can be removed when we see fit. But for now imho could be useful since we are early in multi-instance queue encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3450 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Initial implementation of new queue sync code which allows ↵dynaflash2010-07-171-3/+3
| | | | | | | | | | | | | | | | | | multi-instance encoding. This allows more than one instances of HandBrake.app to run off of the same queue file. In the case of multi-instance use these changes occur in the queue window: - The delete icon for a given queue item does not exist in the queue window if another instance is doing the encoding. - The encoding icon does not spin if another instance is doing the encoding. - As before if the queue window is for the instance doing the encoding on that item it will be animated and "spins". - The queue window status readout now also includes the output file name for the file being encoded for that instance. Known bugs: - Drag and Drop queue reordering is somwehat borked. Doesn't corrupt queue but can not allow a drop in some instances. - I have tested this over 20 multi instance encodes and not once had an issue, but anytime more than one instance is writing to the same external file anything can happen. Beware! - The session activity log will of course be full of activity log info from all instances in a multi instance scenario. Individual encode logs are unaffected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3443 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queued item editing initial implementation.dynaflash2010-01-211-0/+1
| | | | | | | | | - Sends a chosen queued item back to the main window for reload ( and rescan ) via contextual menu (right click) - Deletes queued item from queue after being reloaded to main window ( after editing or whatever, send back to queue via Add To Queue Button same as a new source). - New queue window contextual menu also includes delete and show options previously only available via separate icons. - Note: Needs testing particularly in the subtitle area, which is not to say there aren't other bugs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3080 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue - Fix drag'n drop so that when dragging over an item, it ↵dynaflash2008-09-261-2/+1
| | | | | | | | | doesn't auto expand. - Also fix some really hosed up formatting - Remove the unused moveObjectsInQueueArray method from HBQueueController ( we moved that to Controller.mm back in 1703 but left it "just in case"). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1778 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add encoding status readout to the queue windowdynaflash2008-09-221-1/+1
| | | | | | - 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: Resilient Queue: Initial Implementationdynaflash2008-09-161-183/+40
| | | | | | | | | | | | | | | | - 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: Some small enhancements and clean ups in HBQueueController ritsuka2008-08-071-8/+8
| | | | | | | | - Removed white spaces and hard tabs. - Changed all the enumerators to use the new fast enumerators available in objective-c 2. - Changed intValue to integerValue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1613 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: convert HBQueueController to be a subclass of NSWindowController - ↵dynaflash2008-06-171-5/+3
| | | | | | kudos again to blindjimmy git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1515 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: Forgot a file in my previous commit.ritsuka2008-04-081-4/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1394 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Implement per track audio settings.dynaflash2008-04-071-2/+3
| | | | | | | | | | | | | | | | | | | | - 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: Update to use the new audio layout.saintdev2008-04-011-0/+2
| | | | | | | This only updates the current interface, nothing new added. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1367 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Adds Loose Anamorphic information to the queue displaydynaflash2008-01-291-1/+5
| | | | | | - patch by travistex git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1238 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Warn of duplicate output filenames when adding to the queue.dynaflash2008-01-141-1/+4
| | | | | | - Thanks travistex git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1192 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add preset name used (or custom) to the queue and activity logdynaflash2008-01-091-13/+43
| | | | | | | | | - 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: Queue Update - thanks travistexdynaflash2007-12-171-15/+78
| | | | | | | | | | | - 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: Queue Enhancements courtesy of travistexdynaflash2007-10-091-13/+60
| | | | | | | | | - Encodes now stick around in the queue's displayed after they have been completed. They are marked with a check mark icon. - The "active" encode is shown with a chasing arrows icon. - Completed encodes have a spotlight icon by them to allow you to show in finder - Support for reordering encodes in the queue via drag and drop. Currently #define'd out because there's currently no easy way to reorder hblib's job list. But some day maybe... git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1017 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue update adds auto wrap to detail lines so that detail does not ↵dynaflash2007-09-241-19/+71
| | | | | | | | get truncated. - Also deletes some unused icons from the xcode project as well as from the svn including some from rev 984 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@985 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue improvements from travistexdynaflash2007-09-171-1/+2
| | | | | | | | | - Detail info for each pass has been cleaned up. Each pass only displays info relevant to its pass. No line wrapping yet. :-( - In the gui, "subtitle scan" changed to "in-depth scan". Is that what we want to call it? - Fixed cases where single pass jobs were identified incorrectly in the queue. - Removed incessant updating of the queue gui. The gui now only updates when something changes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@968 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: New Queue Enhancements courtesy of travistexdynaflash2007-09-141-4/+20
| | | | | | | | | - New hierarchical queue view. - New Start/Cancel and Pause/Resume buttons in Queue toolbar to match those in the main window. - When canceling a job, you now have the option to delete all pending jobs. - This one is the real deal! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@963 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: New queue enhancementsdynaflash2007-09-111-7/+15
| | | | | | | | | | | | | | - clean up work related to starting and stopping of jobs to make sure the behavior is the same in both the queue window and the main window - No longer adds jobs to queue when you've hit Start but then canceled the overwrite warning. - Added overwrite alert when doing an Add to Queue. Was only happening previously when you did a Start. - Stopping a job from either the Queue window or the Main window now goes through the same code path and so the behavior will be identical. - In the main window, the Start button now changes to Start Queue once you've added things to the queue. This helps clear up any ambiguity about what that button will do - Cancel button now named Stop. Recommended by BradleyS and/or hawkman I think because this button no longer cancels everything in the queue, just the current job. Wording in the stop warning dialog has been improved (mentions job title). - The "Show Alert When Done" options now work when you have started the queue from the Queue window. - Uses the term "passes" in main window - Added unique icons for each pass type. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@949 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue Improvements from travistexdynaflash2007-09-071-3/+10
| | | | | | | | | | | | | | | | | | | - Add view selection widget to choose "encode by encode" or "pass by pass" view - Add "Show Detail" button to toggle detailed view on/off - Removed #define JOB_GROUPS. You can now control this in the UI and show either "encodes" or "passes". - Revamped the progress strings to give you exact progress. - New terminology (encodes and passes) - New toolbar in queue window (not complete, icons need work) - New files, added to project: Encodes.png EncodesPressed.png Info.png JobPassLarge.png JobPassSmall.png Passes.png PassesPressed.png git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@931 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: New Active Queue implementation courtesy of travistexdynaflash2007-09-051-0/+62
- Thanks travistex! - queue is now in a separate window - queue currently shows jobs grouped together as one encode, which is configurable - queue now shows currently encoding job, which is independently cancellable without losing the rest of the queue. - can start and pause encoding in the queue window - queue uses its own nib - progress status needs work - This has a way to go, but needed to get checked in as it changes the current xcode project structure. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@925 b64f7644-9d1e-0410-96f1-a4d463321fa5