diff options
author | rowanbeentje <rowan@beent.je> | 2013-03-31 23:05:36 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-03-31 23:05:36 +0000 |
commit | cca030a98637bec8e8a731efb7ad15b3f458b115 (patch) | |
tree | d2573148088d98d3ab7e765bf8933499169cc119 /Source/SPConstants.m | |
parent | fb59ce3e1a183c8406912b9b21c5b5621497d54e (diff) | |
download | sequelpro-cca030a98637bec8e8a731efb7ad15b3f458b115.tar.gz sequelpro-cca030a98637bec8e8a731efb7ad15b3f458b115.tar.bz2 sequelpro-cca030a98637bec8e8a731efb7ad15b3f458b115.zip |
Combine the "Run All" and "Run Current/Previous/Selection" buttons into a single button with dropdown menu with ability to change the default action:
- Create a new SPComboPopupButton class; this subclasses NSPopupButton to retain the ability to show the popup menu, but only when the right-hand side of the button is pressed, allowing the rest of the button to perform the click action
- Combine the previous two "Run" buttons on the Custom Query view into a new SPComboPopupButton
- Move the Run menu items from the gear menu into the Run button popup menu so they can be discovered more easily (and the shortcuts seen more easily)
- Add a menu item to switch the button's default action, which also swaps all associated shortcuts
- Clean up associated logic
This implements Issue #1569
Diffstat (limited to 'Source/SPConstants.m')
-rw-r--r-- | Source/SPConstants.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPConstants.m b/Source/SPConstants.m index cad10d95..a5683cbf 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -212,6 +212,7 @@ NSString *SPQueryFavorites = @"queryFavorites"; NSString *SPQueryFavoriteReplacesContent = @"QueryFavoriteReplacesContent"; NSString *SPQueryHistory = @"queryHistory"; NSString *SPQueryHistoryReplacesContent = @"QueryHistoryReplacesContent"; +NSString *SPQueryPrimaryControlRunsAll = @"QueryPrimaryControlRunsAll"; NSString *SPQuickLookTypes = @"QuickLookTypes"; NSString *SPTableChangedNotification = @"SPTableSelectionChanged"; NSString *SPTableInfoChangedNotification = @"SPTableInformationChanged"; |