summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsMenuBuilder.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-24 18:01:43 +0100
committerDamiano Galassi <[email protected]>2017-11-24 18:01:43 +0100
commit68c7758a7cf0a397b6dfc584792a8958ddd01322 (patch)
tree14babe731d94d2ace06e2b1058e13cf8e0221581 /macosx/HBPresetsMenuBuilder.h
parentb73dabc600420663a5962d3da5decdd8c3a7bbd1 (diff)
MacGui: add a popup button to select the preset in the main window.
Diffstat (limited to 'macosx/HBPresetsMenuBuilder.h')
-rw-r--r--macosx/HBPresetsMenuBuilder.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/macosx/HBPresetsMenuBuilder.h b/macosx/HBPresetsMenuBuilder.h
new file mode 100644
index 000000000..d7b66aa04
--- /dev/null
+++ b/macosx/HBPresetsMenuBuilder.h
@@ -0,0 +1,23 @@
+//
+// HBPresetsMenuBuilder.h
+// HandBrake
+//
+// Created by Damiano Galassi on 24/11/2017.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@import HandBrakeKit;
+
+@interface HBPresetsMenuBuilder : NSObject
+
+@property (nonatomic, readonly) NSMenu *menu;
+
+- (instancetype)initWithMenu:(NSMenu *)menu action:(SEL)action size:(CGFloat)size presetsManager:(HBPresetsManager *)manager;
+
+/**
+ * Adds the presets list to the menu.
+ */
+- (void)build;
+
+@end