diff options
author | dynaflash <[email protected]> | 2011-05-26 16:17:13 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2011-05-26 16:17:13 +0000 |
commit | bc7983fdd633c46e2cb7aaaca5ca416b5e787b45 (patch) | |
tree | 1b784335e91178e39c7d7034dbe89476297fa6f5 /macosx/Controller.h | |
parent | e4683402a0d12ad84e3a3b7fc1a584a7491c5044 (diff) |
MacGui: Add -selectedPreset helper method
- Patch once again by blindjimmy.. thanks!
- This change consolidates all the calls in Controller.m of [fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]] to get the currently selected preset to use a new -selectedPreset accessor method. This is both easier to read and is better decomposition.
- as per https://reviews.handbrake.fr/r/85/
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4003 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.h')
-rw-r--r-- | macosx/Controller.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index 4b3b50fd1..9f411a5a3 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -361,7 +361,10 @@ BOOL fIsDragging; - (NSString *)outlineView:(NSOutlineView *)fPresetsOutlineView toolTipForCell:(NSCell *)cell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tc item:(id)item mouseLocation:(NSPoint)mouseLocation; - (void) checkBuiltInsForUpdates; /* We use this to actually select the preset and act accordingly */ -- (IBAction)selectPreset:(id)sender; +- (IBAction)selectPreset:(id)sender; + +@property (nonatomic, readonly) BOOL hasValidPresetSelected; +- (id)selectedPreset; /* Export / Import Presets */ - (IBAction) browseExportPresetFile: (id) sender; @@ -418,7 +421,6 @@ BOOL fIsDragging; returnCode: (int) returnCode contextInfo: (void *) contextInfo; + (unsigned int) maximumNumberOfAllowedAudioTracks; -@property (nonatomic, readonly) BOOL hasValidPresetSelected; - (IBAction) addAllAudioTracks: (id) sender; @end |