2014-08-09 17:10:45 +00:00
|
|
|
/* HBPresetsViewController.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. */
|
2014-08-07 13:54:14 +00:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@class HBPresetsManager;
|
|
|
|
@class HBPreset;
|
|
|
|
|
2017-11-30 16:52:38 +01:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2014-08-07 13:54:14 +00:00
|
|
|
@protocol HBPresetsViewControllerDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)selectionDidChange;
|
|
|
|
- (void)showAddPresetPanel:(id)sender;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2015-05-16 07:08:39 +00:00
|
|
|
@interface HBPresetsViewController : NSViewController <NSUserInterfaceValidations>
|
2014-08-07 13:54:14 +00:00
|
|
|
|
|
|
|
- (instancetype)initWithPresetManager:(HBPresetsManager *)presetManager;
|
|
|
|
|
2015-08-06 09:48:39 +00:00
|
|
|
@property (nonatomic, readwrite, assign) id<HBPresetsViewControllerDelegate> delegate;
|
2014-08-07 13:54:14 +00:00
|
|
|
|
2018-02-01 13:15:21 -05:00
|
|
|
- (IBAction)setDefault:(id)sender;
|
2018-02-01 01:37:58 -05:00
|
|
|
- (IBAction)deletePreset:(id)sender;
|
|
|
|
|
2015-05-16 07:08:39 +00:00
|
|
|
- (IBAction)exportPreset:(id)sender;
|
|
|
|
- (IBAction)importPreset:(id)sender;
|
|
|
|
|
2017-11-10 12:41:07 +01:00
|
|
|
- (IBAction)insertCategory:(id)sender;
|
2014-08-07 13:54:14 +00:00
|
|
|
|
2017-12-20 22:06:38 +01:00
|
|
|
@property (nonatomic, readwrite) HBPreset *selectedPreset;
|
2014-08-07 13:54:14 +00:00
|
|
|
|
2015-01-10 08:33:07 +00:00
|
|
|
@property (nonatomic, readwrite, getter=isEnabled) BOOL enabled;
|
2024-02-27 19:38:06 +01:00
|
|
|
@property (nonatomic, readwrite) BOOL showHeader;
|
2015-01-10 08:33:07 +00:00
|
|
|
|
2014-08-07 13:54:14 +00:00
|
|
|
@end
|
2017-11-30 16:52:38 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|