summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritsuka <[email protected]>2013-02-01 19:48:33 +0000
committerritsuka <[email protected]>2013-02-01 19:48:33 +0000
commit7433cb189a1ec58a3fdcd625edb762cff5267277 (patch)
treedaca0c3239e0d900edd39d8f35b41c2db8b05e42
parent478574ed1d6161a49212d29ff3911dfad15da5f3 (diff)
MacGUI: make the control box in preview window 10 px larger to avoid splitting text on two lines, and expand the keyboard control to the still images.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5232 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/English.lproj/PicturePreview.xib49
-rw-r--r--macosx/HBPreviewController.m19
2 files changed, 38 insertions, 30 deletions
diff --git a/macosx/English.lproj/PicturePreview.xib b/macosx/English.lproj/PicturePreview.xib
index deb09e879..460057859 100644
--- a/macosx/English.lproj/PicturePreview.xib
+++ b/macosx/English.lproj/PicturePreview.xib
@@ -160,7 +160,7 @@
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string key="NSFrame">{{360, 11}, {59, 16}}</string>
+ <string key="NSFrame">{{370, 11}, {59, 16}}</string>
<reference key="NSSuperview" ref="385854969"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="700607930"/>
@@ -200,7 +200,7 @@
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string key="NSFrame">{{262, 11}, {92, 16}}</string>
+ <string key="NSFrame">{{272, 11}, {92, 16}}</string>
<reference key="NSSuperview" ref="385854969"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="141370142"/>
@@ -241,7 +241,7 @@
<object class="NSTextField" id="66510867">
<reference key="NSNextResponder" ref="385854969"/>
<int key="NSvFlags">289</int>
- <string key="NSFrame">{{98, 14}, {75, 11}}</string>
+ <string key="NSFrame">{{108, 14}, {75, 11}}</string>
<reference key="NSSuperview" ref="385854969"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="598619000"/>
@@ -275,7 +275,7 @@
<object class="NSPopUpButton" id="598619000">
<reference key="NSNextResponder" ref="385854969"/>
<int key="NSvFlags">289</int>
- <string key="NSFrame">{{177, 12}, {58, 15}}</string>
+ <string key="NSFrame">{{187, 12}, {58, 15}}</string>
<reference key="NSSuperview" ref="385854969"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="81685190"/>
@@ -362,7 +362,7 @@
<object class="NSSlider" id="396925210">
<reference key="NSNextResponder" ref="385854969"/>
<int key="NSvFlags">290</int>
- <string key="NSFrame">{{18, 39}, {400, 16}}</string>
+ <string key="NSFrame">{{18, 39}, {410, 16}}</string>
<reference key="NSSuperview" ref="385854969"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="798240356"/>
@@ -400,7 +400,7 @@
<object class="NSTextField" id="628196212">
<reference key="NSNextResponder" ref="385854969"/>
<int key="NSvFlags">290</int>
- <string key="NSFrame">{{15, 55}, {406, 20}}</string>
+ <string key="NSFrame">{{15, 55}, {420, 20}}</string>
<reference key="NSSuperview" ref="385854969"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="396925210"/>
@@ -424,7 +424,7 @@
<object class="NSTextField" id="245200984">
<reference key="NSNextResponder" ref="385854969"/>
<int key="NSvFlags">290</int>
- <string key="NSFrame">{{15, 77}, {406, 12}}</string>
+ <string key="NSFrame">{{15, 77}, {416, 12}}</string>
<reference key="NSSuperview" ref="385854969"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="628196212"/>
@@ -442,13 +442,13 @@
<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
</object>
</object>
- <string key="NSFrame">{{2, 2}, {436, 96}}</string>
+ <string key="NSFrame">{{2, 2}, {446, 96}}</string>
<reference key="NSSuperview" ref="92351498"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="245200984"/>
</object>
</object>
- <string key="NSFrame">{{21, 132}, {440, 100}}</string>
+ <string key="NSFrame">{{15, 132}, {450, 100}}</string>
<reference key="NSSuperview" ref="49161063"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="385854969"/>
@@ -505,7 +505,7 @@
<object class="NSSlider" id="886140787">
<reference key="NSNextResponder" ref="1068222891"/>
<int key="NSvFlags">290</int>
- <string key="NSFrame">{{16, 16}, {345, 21}}</string>
+ <string key="NSFrame">{{16, 16}, {355, 21}}</string>
<reference key="NSSuperview" ref="1068222891"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="964331174"/>
@@ -545,7 +545,7 @@
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string key="NSFrame">{{198, 43}, {36, 36}}</string>
+ <string key="NSFrame">{{205, 43}, {36, 36}}</string>
<reference key="NSSuperview" ref="1068222891"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="894608246"/>
@@ -583,7 +583,7 @@
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string key="NSFrame">{{155, 48}, {32, 26}}</string>
+ <string key="NSFrame">{{163, 48}, {32, 26}}</string>
<reference key="NSSuperview" ref="1068222891"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="102183813"/>
@@ -613,7 +613,7 @@
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string key="NSFrame">{{245, 48}, {32, 26}}</string>
+ <string key="NSFrame">{{251, 48}, {32, 26}}</string>
<reference key="NSSuperview" ref="1068222891"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="630042886"/>
@@ -643,7 +643,7 @@
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string key="NSFrame">{{338, 53}, {81, 16}}</string>
+ <string key="NSFrame">{{348, 53}, {81, 16}}</string>
<reference key="NSSuperview" ref="1068222891"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="886140787"/>
@@ -680,7 +680,7 @@
<object class="NSTextField" id="964331174">
<reference key="NSNextResponder" ref="1068222891"/>
<int key="NSvFlags">290</int>
- <string key="NSFrame">{{364, 19}, {57, 14}}</string>
+ <string key="NSFrame">{{364, 19}, {67, 14}}</string>
<reference key="NSSuperview" ref="1068222891"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
@@ -698,13 +698,13 @@
<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
</object>
</object>
- <string key="NSFrame">{{2, 2}, {436, 96}}</string>
+ <string key="NSFrame">{{2, 2}, {446, 96}}</string>
<reference key="NSSuperview" ref="700607930"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="897614796"/>
</object>
</object>
- <string key="NSFrame">{{20, 30}, {440, 100}}</string>
+ <string key="NSFrame">{{15, 30}, {450, 100}}</string>
<reference key="NSSuperview" ref="49161063"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1068222891"/>
@@ -749,7 +749,7 @@
<object class="NSProgressIndicator" id="196868285">
<reference key="NSNextResponder" ref="1067699710"/>
<int key="NSvFlags">1280</int>
- <string key="NSFrame">{{18, 26}, {336, 12}}</string>
+ <string key="NSFrame">{{18, 26}, {346, 12}}</string>
<reference key="NSSuperview" ref="1067699710"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="569473100"/>
@@ -775,7 +775,7 @@
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string key="NSFrame">{{361, 24}, {58, 16}}</string>
+ <string key="NSFrame">{{371, 24}, {58, 16}}</string>
<reference key="NSSuperview" ref="1067699710"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="92351498"/>
@@ -832,13 +832,13 @@
<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
</object>
</object>
- <string key="NSFrame">{{2, 2}, {436, 96}}</string>
+ <string key="NSFrame">{{2, 2}, {446, 96}}</string>
<reference key="NSSuperview" ref="768906858"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="986015194"/>
</object>
</object>
- <string key="NSFrame">{{20, 235}, {440, 100}}</string>
+ <string key="NSFrame">{{15, 235}, {450, 100}}</string>
<reference key="NSSuperview" ref="49161063"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1067699710"/>
@@ -1787,7 +1787,6 @@
<string>showMoviePreview:</string>
<string>showPictureSettings:</string>
<string>showPicturesPreview:</string>
- <string>showWindow:</string>
<string>toggleMoviePreviewPlayPause:</string>
<string>toggleScaleToScreen:</string>
</object>
@@ -1808,7 +1807,6 @@
<string>id</string>
<string>id</string>
<string>id</string>
- <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
@@ -1828,7 +1826,6 @@
<string>showMoviePreview:</string>
<string>showPictureSettings:</string>
<string>showPicturesPreview:</string>
- <string>showWindow:</string>
<string>toggleMoviePreviewPlayPause:</string>
<string>toggleScaleToScreen:</string>
</object>
@@ -1887,10 +1884,6 @@
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
- <string key="name">showWindow:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo">
<string key="name">toggleMoviePreviewPlayPause:</string>
<string key="candidateClassName">id</string>
</object>
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 20c5e07f6..ba664059b 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -1207,9 +1207,10 @@
/* fMovieView Keyboard controls */
- (void)keyDown:(NSEvent *)event
{
+ unichar key = [[event charactersIgnoringModifiers] characterAtIndex:0];
+
if (aMovie)
{
- unichar key = [[event charactersIgnoringModifiers] characterAtIndex:0];
if (key == 32)
{
if ([self isPlaying])
@@ -1244,8 +1245,22 @@
else
[super keyDown:event];
}
- else
+ else if (!fEncodeState)
+ {
+ if (key == NSLeftArrowFunctionKey)
+ {
+ [fPictureSlider setIntegerValue:fPicture > [fPictureSlider minValue] ? fPicture - 1 : fPicture];
+ [self pictureSliderChanged:self];
+ }
+ else if (key == NSRightArrowFunctionKey)
+ {
+ [fPictureSlider setIntegerValue:fPicture < [fPictureSlider maxValue] ? fPicture + 1 : fPicture];
+ [self pictureSliderChanged:self];
+ }
[super keyDown:event];
+ }
+
+ [super keyDown:event];
}
#pragma mark *** QTTime Utilities ***