aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.m
Commit message (Collapse)AuthorAgeFilesLines
* Manually set the delegate of the anchored button bars in the content filter ↵stuconnolly2009-11-181-9/+10
| | | | editor and query favorites editor as you can't do it in IB.
* Set keyboard shortcut for Remove button in alert dialogs to command R.avenjamin2009-11-101-2/+2
| | | | Fix method declaration type mismatch warning for sheetDidEnd.
* Set keyboard shortcut for Delete button in alert dialogs to command D.avenjamin2009-11-091-9/+11
| | | | Set keyboard shortcut for Truncate button in alert dialog to command T
* Tidy up.stuconnolly2009-11-071-0/+3
|
* Replace the use of hard coded preference keys with constants to prevent ↵stuconnolly2009-10-171-16/+12
| | | | issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
* • first implementation of a Content Filter EditorBibiko2009-10-011-11/+11
| | | | | | | | | | | | | | - user-defined content filter can be saved globally (Prefs) or in SPF files - BETA - further tests are needed due to complexity - SPQueryController now handles the local user-defined content filters - tooltips are now generated automatically if not defined explicitly (incl. if $BINARY placeholder was used) • if user added local query favorites or content filters to an Untitled document and s/he wants to close it the standard sheet will be displayed (Don't Save - Cancel - Save) - due to that changed old [TableDocument displayName] to 'displaySPName' to be conform with Cocoa • changed behavior while importing query favorites - now they will append at the list (not inserted after selected row - makes more sense) • introduced to history filter dict the key 'menuLabel' which will be set to [TableContent tableFilterString] for displaying the history menu title and simplified the SPHistoryController logic for that • minor code changes
* • further progress on the Content Filter EditorBibiko2009-09-301-0/+3
| | | | | • fixed issue for "Add" a new favorite in SPQueryFavoriteManager: - save pending changes in the query textView in beforehand
* • removed leaks in QueryFavoriteManagerBibiko2009-09-071-2/+2
| | | | • prepared QueryController for future steps
* • Query Favorite ManagerBibiko2009-09-071-22/+51
| | | | | - disabled sorting by clicking at table headers - added drag&drop support of multiple selected items
* • after "Apply Changes" in a Query Favorite Manager update the Query ↵Bibiko2009-09-071-9/+25
| | | | | | Favorites of all opened documents to synchronize changes in global favorites • "Import Favorites" in the Query Favorite Manager adds the imported favorites after the last selected item, if no selected item is found it adds them
* • updated SPQueryFavoriteManager to mange document-based and global query ↵Bibiko2009-09-071-231/+224
| | | | | | | favorites • disabled "Select Active Query" in CMTextView if shown in the favorite manager • code cleaning and simplifications
* • fixes for Query Favorite Manager:Bibiko2009-09-011-2/+20
| | | | | | - renamed "Save" button to "Apply Changes" to make it clear what will be done by clicking at it - suppress context menu and selection while right-clicking at a header - while in cell editing ESC will abort the editing (not close the sheet)
* • query favorite managerBibiko2009-09-011-63/+356
| | | | | | | | - first step to allow to manage global favs (stored in the prefs) and connection-based (not yet implemented - will be stored in ApplicationSupport/SequelPro) - fav table is now a grouped table à la Table List - second column in fav table will be used soon ;) - now the sheet has two buttons "Save" and "Cancel" in order to be able to dismiss changes - enabled table view inline editing of query names
* • improved Query Favorite ManagerBibiko2009-08-281-24/+131
| | | | | | | | | | | | - tableView is now a SPTableView for right-click selects item first - corrected tooltips for all buttons and menu items - added short-cut ⌘D for duplicate, ⌫ for remove, and ⌥⎋ for gear menu (which could be the standard for all gear menus?) - remove selected favorite(s) asks the user first - added chance to select and remove more than one favorite - added chance to export selected favorites as SPF file The file structure (format 'query favorites') goes conform with the SPF 'connection' format. To be discussed: Should we add a separate Import Favorites menu or should we do that via the general "Open…" menu item since the SPF format tells SP what to do with that file?
* • fixed/improved several things for the SPQueryFavoriteManager:Bibiko2009-08-261-2/+20
| | | | | | | | - allow favorites with the same name (it's the user's responsibility) - fixed removing of all menu items (beginning from the end) - "Save Query to Favorites" will save the selected text, or if no selection the CURRENT query, or if no current query can be detected the entire textView string (since the tooltip says '...or save the current query...) - ensure after editing the favorites ALL changes will be saved first before closing the sheet
* Remove unused methods.stuconnolly2009-08-261-57/+0
|
* Completely redesigned query favorite manager, including:stuconnolly2009-08-261-0/+415
- The ability to name query favorites - The ability to edit query favorites using the same editor in the cutom query view - The ability to save your query favorites to a file Note that any already saved query favorites will be upgraded to accommodate the new format, that is including a name associated with the query. The default name is the first 32 chars of the query with '...' appended. Also, added menu item validation to the 'Save Query to Favorites' menu item.