summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
Commit message (Collapse)AuthorAgeFilesLines
* 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
* MacGui: Presets (code cleanup)dynaflash2007-12-121-254/+248
| | | | | | - Remove unneeded conditional in -selectPreset used to test if the old NSTableView was enabled or not. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1120 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Presets Drawer improvementsdynaflash2007-12-121-6/+7
| | | | | | | | | - Get rid of useless NSTabView - Rearrange NSOutlineView so full size is visible, also make 100 px taller - Also made changing the drc slider change the Output from the preset name to Custom, like the other controls do. - Moved -audioDRCSliderChanged from the video controls to the "GUI Controls Changed" section of controller.mm git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1119 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Dynamic Range Control implemented in the audio tab of the main window.dynaflash2007-12-121-5/+21
| | | | | | | | | | - represented by a slider indicating value from 1.0 to 4.0 - Defaults to 1.0 - Granularity of 1/100 - Implemented in presets - If key for drc is not present, preset will automatically return it to its default of 1.0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1118 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Update Presets to use NSOutlineView and change the associated ↵dynaflash2007-12-101-156/+173
| | | | | | | | | | methods to support the NSOutlineView delegate required methods. - Change necessary to move to nested presets. - Layout still to be determined - Method to actually change the setting for the preset changed from -tableViewSelected to more appropriate -presetSelected in Controller.mm git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1115 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix a bracket on same line screw up from the last commit.dynaflash2007-12-071-45/+47
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1105 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix issue in which picture settings filters in presets would'nt set ↵dynaflash2007-12-071-30/+76
| | | | | | | | to "off" if the preset didnt have the key for that filter. - If a filter is not detected in the preset, the preset will assume it should be set to Off or None as the case may be. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1104 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Built-In Presets moved to new class: HBPresetsdynaflash2007-12-051-1193/+12
| | | | | | | | - Built In Presets are now created and defined in the methods in HBPresets.h and HBPresets.m - May move other preset methods here in the future as well. - Updated Jamfile as appropriate git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1098 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Scanning progress bar now shows as indeterminate (barber pole) as ↵dynaflash2007-12-041-13/+13
| | | | | | | | for some reason its progress is not reported since moving to leopard. - Also added a new scanning message right when we call hb_scan for quicker feedback, especially when opening a new source while encoding another one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1097 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Increase size of main window by 200 px wide and 50 px high.dynaflash2007-12-031-9/+17
| | | | | | | | - This should offer more room as we desperately need it. - Should still offer compatibility with 1280 x 1024 display with the presets drawer open and a dock on either the bottom or side - Also added more granularity to the Constant Quality slider, now can choose any whole percentage instead of just even. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1096 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Split Picture settings for new preset up into Size and Filters and ↵dynaflash2007-11-291-49/+112
| | | | | | | | | | add VFR to presets - New Add preset Panel - Now can specify how preset uses picture sizing (includes height, width, keep ar, anamorphic and cropping) separately from whether or not it uses Picture Filters (currently includes Deinterlace, Detelecine, VFR, Denoise, and Deblock (pp7) ) - Allows for greater flexibility in setting up your presets git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1086 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix some warnings for compiling in 10.5dynaflash2007-11-281-6/+6
| | | | | | | - Fix NSMenuItem warnings in -audioPopupChanged in Controller.mm - Fix cString warning in HBDVDDetectore.m git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1082 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix open last used source directory. broken in rev. 1067dynaflash2007-11-211-6/+9
| | | | | | - Fix issue since 1067 where open the browse window to scan a new source would just default to "/" instead of the last chosen source directory. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1073 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add "Open Source (Specify Title)" featuredynaflash2007-11-191-64/+144
| | | | | | | | | | - Optional way to open your source and specify scanning a specific title only ala the cli. - Should help with sources that tend to crash the macgui while scanning the entire source - Only available via the file menu as an additional menu item - All other open source methods are left untouched so to the average user the gui behaves as before. - In the process eliminated unnecessary -showSourceScanPanel method which simply called -browseSources, now all gui widgets call -browseSources directly git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1067 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Minor preset changes:jbrjake2007-11-151-8/+8
| | | | | | | | | | - Removes chapter markers from PS3 - Moves the high profile presets to 16 B-frames (adaptive) - Gets rid of erroneous audio bitrate and samplerate during ac3 pass-thru - Removes 8x8dct from the QuickTime preset - Drops Film to 1800kb/s git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1062 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Move app support directory check to -init in controller.mmdynaflash2007-11-151-47/+59
| | | | | | | | - Makes ~/Library/Application Support/HandBrake available to HBOutputPanelController immediately - Elimates duplicate code to check for app support directory for both the presets as well as the activity log (as well as any other future features that will require this directory) - Also fixed issue where clicking "Discard" in the update alert closes the main window and won't let it come back (this will be totally unnecessary once the Sparkle update system is implemented). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1061 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: VFR controls initial implementationdynaflash2007-11-101-1/+28
| | | | | | | | | - Adds a vfr checkbox next to the detelecine filter in the Picture Settings Window - Tuns on detelecine and disables its checkbox - Sets Framerate in the main window to 29.967 and disables it - Sets job->vfr = 1 if vfr is checked in -prepareJob git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1052 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: change -PrepareJob to -prepareJob to match cocoa coding conventionsdynaflash2007-11-091-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1048 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add Deblock to the presets systemdynaflash2007-11-071-1/+9
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1047 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Added Deblock to filters in Picture Preview Windowdynaflash2007-11-071-2/+18
| | | | | | - Currently uses a checkbox that enables pp7 (default settings) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1046 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Reorganize Controller.mm methodsdynaflash2007-11-021-1141/+1206
| | | | | | | - Try to divide into logical sections via pragma marks - move preset code to the bottom as its typically accessed less often git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1042 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue Enhancements courtesy of travistexdynaflash2007-10-091-15/+9
| | | | | | | | | - 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: Remove the sanity check for 23.976 framerate and detelecinedynaflash2007-10-091-5/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1015 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Rename iPhone preset to iPhone / iPod Touch0.9.1dynaflash2007-10-081-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1009 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where Source is display with the volume id (ie. disk1) ↵dynaflash2007-09-281-3/+4
| | | | | | instead of the volume name if source is a physical dvd. This bug was introduced pre 0.9.0 with the integrated source scan controller. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@997 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add the auto detected framerate to the "Same as source" item in the ↵dynaflash2007-09-271-4/+66
| | | | | | | | "Frame Rate" popup button. - Note: presets still use "Same as source" if applicable for backwards compatibility. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@994 b64f7644-9d1e-0410-96f1-a4d463321fa5
* A line went missing from Controller.mm in the reorg of that file, youeddyg2007-09-261-0/+5
| | | | | | | | must tell the first pass of a two pass to not participate in the subtitle auto select. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@991 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Various little code cleanup and small alignment fixes in the nib.ritsuka2007-09-231-141/+85
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@983 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: don't reset codecs popup when changing format, if the new format ↵ritsuka2007-09-221-0/+6
| | | | | | supports the specified codecs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@977 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add conditional to 6 channel vorbis to remove < 192 bitrates from ↵dynaflash2007-09-181-0/+11
| | | | | | popup, since vorbis crashes in a fiery wreck. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@972 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Enable 6-channel Vorbis audiodynaflash2007-09-181-1/+2
| | | | | | - bitrate checking is not modified, so uses existing minbitrate = 48, maxbitrate = 384 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@971 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Use the parent folder if VIDEO_TS is chosen as a source for display ↵dynaflash2007-09-141-13/+19
| | | | | | | | as well as default output movie name. Move some icon files into Resources/icons folder in the Xcode proj file. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@964 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: New Queue Enhancements courtesy of travistexdynaflash2007-09-141-2/+19
| | | | | | | | | - 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