diff options
Diffstat (limited to 'macosx/HBPresetsViewController.h')
-rw-r--r-- | macosx/HBPresetsViewController.h | 34 |
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 |