summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewController.m
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Remove logging line used for debugging previous commit.dynaflash2010-08-061-3/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3473 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Store live previews in a sub directory in "~/Library/Application ↵dynaflash2010-08-061-10/+15
| | | | | | | | | | Support/HandBrake/Previews" named by pidnum. - Allows multi-instances to encode live previews without overwriting the live preview for any other instance (since previously we assumed single instance so there was just one live preview file for each container. - Clean up of the previews directory when a single instance is laucnhed to make sure we do not build up a pile of old previews. - Removed old code for live previews which handled the deprecated avi and ogm containers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3472 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Disable preview hud controls during new source scans.dynaflash2010-08-051-0/+22
| | | | | | | - Fixes a crash where trying to get a preview image when a new source is being loaded will cause a crash - Mirrors enableUI in the main window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3471 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Do not call pictureSliderChanged in windowWillClose in ↵dynaflash2010-08-051-1/+0
| | | | | | | | HBPreviewController.m as it causes a crash when quitting the macgui without a source loaded up. - Thanks Sean_McG for spotting the bug! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3470 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add separate method for cancelling a Live Preview encode.dynaflash2010-08-041-5/+32
| | | | | | - Also replace deprecated removeFileAtPath:handler: with removeItemAtPath:error: in HBPreviewController git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3469 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Set the hud control panels origin based on the size of the actual ↵dynaflash2010-06-021-7/+9
| | | | | | | | | preview window anchored at the bottom instead of setting it at the middle of the window. - Should not block the actual preview as much. - Move the origin setting code from -SetTitle into -displayPreview so that it is recalculated any time a new preview is generated, which includes changing encode size. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3349 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Live Preview HUD Overlay playback controller initial implementationdynaflash2010-05-181-25/+326
| | | | | | | | | | | | | | | | | | | - Fixes current issue where a live preview with the display res larger than storage res would not show the built in QTKit control bar. - Replaces the stock QTKit movie controller. - Adds playback time code information to HUD display. - Allows frame by frame scrubbing via keyboard arrow keys. -- Methods exist for frame by frame step through but buttons are not on the HUD overlay yet. Known Bugs: - If movie is playing, first click on the scrubber bar can cause the movie to jump to beginning or end unless scrubber is held and dragged. - Probably some others I haven't seen yet. To Do (not that it ever will get done): - Replace the current crappy stock buttons with some decent ones. - Display accurate frame number hopefully though QTKit offers little documentation to get that exact info. - Add a volume slider and remember the volume setting in the prefs. - Add a subtitle control widget hopefully so that users can see what the subtitles would look like. Other small changes include adding some tooltips to the hud overlay controller widgets to hopefully make it a bit more intuitive. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3300 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add call to hb_global_close() upon application termination as per ↵dynaflash2010-03-261-0/+2
| | | | | | | | changes in rev 3170 - Also added a missing call to hb_close for the live preview encoding instance git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3171 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: More Preview Window changes.dynaflash2010-03-051-83/+162
| | | | | | | | | | | - Refactor more code and reduce calls to setViewSize even more. - Correctly show the gray storage size - display size area in both windowed and scale to screen. - Restore 85% max windowed size which was changed in 3124 (unless in scale to screen mode). - Correct Live Preview movie size when in scale to screen. - Depending on window resizing and screen constraints repositioning of window after resize is a bit wonky. - Known issue with live preview, when the movie is the full size of the window, the controller bar does not show during live preview playback, however the movies plays fine. Needs to rescale to allow for the 15 px increase in height for controller bar or better yet, implement hud movie controls. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3151 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: In preview only set the origin of the hud control panel for the ↵dynaflash2010-02-201-5/+6
| | | | | | | | preview window when setting the title, after that the origin will animate much smoother along with the window. - Avoids the nasty resetting of the hud controller when the preview window resizes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3128 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Preview replace a method that was hastily removed in 3125 when ↵dynaflash2010-02-191-1/+52
| | | | | | removing Full Screen. Fixes broken window scaling. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3126 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Removie Full Screen preview mode as its largely redundant when we ↵dynaflash2010-02-191-192/+15
| | | | | | have 100 percent full screen scaling in windowed mode. Removes a lot of code that is really not needed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3125 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Preview ... Allow the preview to use 100% of the the avaialable ↵dynaflash2010-02-191-13/+3
| | | | | | | | screen if it needs it. - Removes the 85% hard cap. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3124 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Preview, use screens visibleFrame instead of frame to get better ↵dynaflash2010-02-181-11/+21
| | | | | | | | scale to screen effect and clear the dock, etc. - Some other code additions to troubleshoot initial window scaling where there shouldn't be any. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3122 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Preview fixes and changesdynaflash2010-02-181-40/+45
| | | | | | | | - Better scaling for windowed mode - Re postion hud control panel so top is at 50% window y axis - Other small enhancements git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3121 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Preview Window resizing bug fixes. Patch from BradleyS.dynaflash2010-02-111-31/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3112 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Renamed HBPreviewController.mm to HBPreviewController.m to enable ↵ritsuka2009-08-291-0/+1325
the new clang static analyzer goodness, there was no reason for this file to use Objective-C++ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2788 b64f7644-9d1e-0410-96f1-a4d463321fa5