summaryrefslogtreecommitdiffstats
path: root/macosx/NSWindow+HBAdditions.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-03-16 11:03:25 +0100
committerDamiano Galassi <[email protected]>2017-03-16 11:03:25 +0100
commitcdf2b1d0efe8265b66df05f428cf01ff67bb4621 (patch)
tree81ff681ab24a40415a3c8bbfa5ffc73eb937db87 /macosx/NSWindow+HBAdditions.h
parent1f54807178d50df83d9643e8ca05370f1b7f73a5 (diff)
MacGui: end the textfields editing before adding a job to queue or creating a preset, so all the current job settings will be saved.
Diffstat (limited to 'macosx/NSWindow+HBAdditions.h')
-rw-r--r--macosx/NSWindow+HBAdditions.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/macosx/NSWindow+HBAdditions.h b/macosx/NSWindow+HBAdditions.h
index e8ceb3c04..caaeaf982 100644
--- a/macosx/NSWindow+HBAdditions.h
+++ b/macosx/NSWindow+HBAdditions.h
@@ -1,10 +1,8 @@
-//
-// NSWindow+HBAdditions.h
-// HandBrake
-//
-// Created by Damiano Galassi on 25/04/16.
-//
-//
+/* NSWindow+HBAdditions.h
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr/>.
+ It may be used under the terms of the GNU General Public License. */
#import <Cocoa/Cocoa.h>
@@ -15,11 +13,23 @@
*/
- (void)HB_resizeToBestSizeForViewSize:(NSSize)viewSize center:(NSPoint)center animate:(BOOL)performAnimation;
-
/**
* Calculates and returns the center point of the window
*/
- (NSPoint)HB_centerPoint;
+/**
+ End editing on the field editor
+ and keep the current first responder.
+
+ @return success
+ */
+- (BOOL)HB_endEditing;
+
+/**
+ Force end editing.
+ */
+- (void)HB_forceEndEditing;
+
@end