summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsManager.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-08-09 17:10:45 +0000
committerritsuka <[email protected]>2014-08-09 17:10:45 +0000
commit666e210efe202dc13273dd32de1b1901e194e4ce (patch)
tree95e3c1886f10552e023a517aee569866df806219 /macosx/HBPresetsManager.h
parentd4e3de96a998ba90f61d31045d5c725428cd030d (diff)
MacGui: added the list of the presets at the bottom of the preset menu and a “New Folder” menu item. Removed the “delete built-in presets” item because it takes just two clicks to remove them manually.
Refactored part of HBPreset to a separate HBTreeNode class. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6278 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPresetsManager.h')
-rw-r--r--macosx/HBPresetsManager.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/macosx/HBPresetsManager.h b/macosx/HBPresetsManager.h
index d7dc1efbf..74427f550 100644
--- a/macosx/HBPresetsManager.h
+++ b/macosx/HBPresetsManager.h
@@ -1,4 +1,4 @@
-/* HBPresets.h $
+/* HBPresetsManager.h $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.fr/>.
@@ -9,15 +9,20 @@
@class HBPreset;
/**
+ * Posted when a preset is changed/added/deleted.
+ */
+extern NSString *HBPresetsChangedNotification;
+
+/**
* HBPresetManager
* Manages the load/save of presets to an in memory tree.
*/
@interface HBPresetsManager : NSObject
/**
- * The root array of presets.
+ * The root of the presets tree.
*/
-@property (nonatomic, readonly, retain) NSMutableArray *contents;
+@property (nonatomic, readonly) HBPreset *root;
/**
* defaultPreset and its index path in the tree
@@ -68,7 +73,9 @@
*/
- (NSIndexPath *)indexPathOfPreset:(HBPreset *)preset;
+/**
+ * Adds back the built in presets.
+ */
- (void)generateBuiltInPresets;
-- (void)deleteBuiltInPresets;
@end