diff options
author | Bradley Sepos <[email protected]> | 2018-02-01 13:15:21 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2018-03-17 17:01:55 -0400 |
commit | 2d9ffb3bbf05eea7371effff9ceac0d98895a1d8 (patch) | |
tree | ee81864e1cb64630e7e92ad979edf7a329de1ace /macosx | |
parent | b2db11b483e36864e786c8997f1a151d9ad8a806 (diff) |
MacGUI: Add Make Default Preset item to Presets menu.
Move Set Default Preset directly above the presets list for clarity and to avoid confusion between get/set.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/English.lproj/MainMenu.xib | 17 | ||||
-rw-r--r-- | macosx/HBController.m | 5 | ||||
-rw-r--r-- | macosx/HBPresetsViewController.h | 1 |
3 files changed, 17 insertions, 6 deletions
diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib index 6f468a964..be6b5f151 100644 --- a/macosx/English.lproj/MainMenu.xib +++ b/macosx/English.lproj/MainMenu.xib @@ -337,17 +337,14 @@ <action selector="insertCategory:" target="-1" id="JL7-bI-H97"/> </connections> </menuItem> - <menuItem isSeparatorItem="YES" tag="-1" id="ymY-bE-5EP"> + <menuItem isSeparatorItem="YES" tag="-1" id="1954"> <modifierMask key="keyEquivalentModifierMask" command="YES"/> </menuItem> - <menuItem title="Select Default Preset" tag="-1" id="2421"> + <menuItem title="Make Default Preset" tag="-1" id="frQ-v5-pRa" userLabel="Make Default Preset"> <connections> - <action selector="selectDefaultPreset:" target="-1" id="2eH-zk-T3n"/> + <action selector="setDefaultPreset:" target="-1" id="adZ-ic-MKn"/> </connections> </menuItem> - <menuItem isSeparatorItem="YES" tag="-1" id="1954"> - <modifierMask key="keyEquivalentModifierMask" command="YES"/> - </menuItem> <menuItem title="Delete Preset" tag="-1" id="CN3-Rh-gVf"> <connections> <action selector="deletePreset:" target="-1" id="ZGV-Ji-MGc"/> @@ -373,6 +370,14 @@ <action selector="addFactoryPresets:" target="6lr-Yy-GMc" id="5Ga-rb-ORy"/> </connections> </menuItem> + <menuItem isSeparatorItem="YES" tag="-1" id="ymY-bE-5EP"> + <modifierMask key="keyEquivalentModifierMask" command="YES"/> + </menuItem> + <menuItem title="Select Default Preset" tag="-1" id="2421"> + <connections> + <action selector="selectDefaultPreset:" target="-1" id="2eH-zk-T3n"/> + </connections> + </menuItem> <menuItem isSeparatorItem="YES" tag="-1" id="wgI-bc-Ors"> <modifierMask key="keyEquivalentModifierMask" command="YES"/> </menuItem> diff --git a/macosx/HBController.m b/macosx/HBController.m index 94ab56306..98be9cda9 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -1524,6 +1524,11 @@ fPresetsView.selectedPreset = presetManager.defaultPreset; } +- (IBAction)setDefaultPreset:(id)sender +{ + [fPresetsView setDefault:sender]; +} + - (IBAction)deletePreset:(id)sender { HBPreset *preset = [sender representedObject]; diff --git a/macosx/HBPresetsViewController.h b/macosx/HBPresetsViewController.h index 8f5824a8e..3f2fd6bf3 100644 --- a/macosx/HBPresetsViewController.h +++ b/macosx/HBPresetsViewController.h @@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, readwrite, assign) id<HBPresetsViewControllerDelegate> delegate; +- (IBAction)setDefault:(id)sender; - (IBAction)deletePreset:(id)sender; - (IBAction)exportPreset:(id)sender; |