summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsViewController.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-08-07 13:54:14 +0000
committerritsuka <[email protected]>2014-08-07 13:54:14 +0000
commit1d7ed1a09e7796b672175d50bc8491b29c22ad96 (patch)
tree59ea3a867f42733a595853de4a4d915cd57673b4 /macosx/HBPresetsViewController.h
parent91b032d618bf897200f3e50e52e97fe94d7c5623 (diff)
MacGui: improved the presets management
Added a class to manage the presets (HBPresetsManager) and moved the presets drawer code to a new view controller (HBPresetsViewController). Removed the limitation of two nested folders and added a way to add to custom folders. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6273 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPresetsViewController.h')
-rw-r--r--macosx/HBPresetsViewController.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/macosx/HBPresetsViewController.h b/macosx/HBPresetsViewController.h
new file mode 100644
index 000000000..b0e78034c
--- /dev/null
+++ b/macosx/HBPresetsViewController.h
@@ -0,0 +1,34 @@
+//
+// HBPresetsViewController.h
+// PresetsView
+//
+// Created by Damiano Galassi on 14/07/14.
+// Copyright (c) 2014 Damiano Galassi. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import "HBViewValidation.h"
+
+@class HBPresetsManager;
+@class HBPreset;
+
+@protocol HBPresetsViewControllerDelegate <NSObject>
+
+- (void)selectionDidChange;
+- (void)showAddPresetPanel:(id)sender;
+
+@end
+
+@interface HBPresetsViewController : NSViewController <HBViewValidation>
+
+- (instancetype)initWithPresetManager:(HBPresetsManager *)presetManager;
+
+@property (nonatomic, readwrite, assign) id<HBPresetsViewControllerDelegate> delegate;
+
+- (void)deselect;
+- (void)selectDefaultPreset;
+
+@property (nonatomic, readonly) HBPreset *selectedPreset;
+@property (nonatomic, readonly) NSUInteger indexOfSelectedItem;
+
+@end