aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
Commit message (Collapse)AuthorAgeFilesLines
* Bunch of improvements to the query console, including:stuconnolly2009-11-141-1/+2
| | | | | | | | | | | | | - New connection column (been meaning to add this for a while) - Display table view column headers - Enable table view text cell line truncating - Allow table view columns to be re-ordered - The table view now respects the display table view vertical grid lines preference - Support for including the connection when saving messages to a file - Support for showing/hiding the connection column - Increase table view row height to match that of all others - Display message time stamps using the user's system wide medium time format
* Add SPConnectionDelegate as a category of TableDocument to split out all ↵stuconnolly2009-11-131-93/+3
| | | | connection delegate methods into a single file.
* Move query mode constants to SPConstants.h.stuconnolly2009-11-131-4/+4
|
* In an aid to split up the functionality of the TableDocument class as well ↵stuconnolly2009-11-131-233/+32
| | | | as reducing the overall size of DBView, split out the server variables sheet into it's own controller and XIB in the same way as the new server processes sheet is implemented.
* - New server processes panel, accessible via the 'Database' menu and ↵stuconnolly2009-11-121-4/+32
| | | | | | | | alt+cmd+P. Includes the ability to kill queries and connections as well as live filtering support and the ability to save all processes or the current filtered set to a file. Implements issue #458. - Reorganise 'Database' menu. - Give 'Flush Privileges' key equivalent of shift+cmd+F.
* Change the main window's non-connected/connecting state title to 'Sequel ↵stuconnolly2009-11-111-3/+29
| | | | Pro' and only change it to 'Connecting...' when we are actually trying to establish a connection. Fixes issue #456.
* The framework shouldn't be displaying dialogs, get the delegate to do it.stuconnolly2009-11-111-0/+9
|
* During an import, before entering the loop to execute the current batch of ↵stuconnolly2009-11-111-4/+3
| | | | queries, check that the current connection is active and if not bail from the method.
* Validate the the 'Clear Console' menu item in TableDocument in addition to ↵stuconnolly2009-11-101-1/+5
| | | | SPQueryController as it will never be called in SPQueryController if the console isn't visible.
* Implement a more reliable way of updating the show/hide console menu item.stuconnolly2009-11-101-7/+5
|
* - Fix an issue when switching databases - allow the table selection to be ↵rowanbeentje2009-11-101-13/+70
| | | | | | | cleared/reset as necessary - Move the task progress layer to a child window, which can then be faded in - smooths the visual appearance and fixes drawing artifacts
* Set keyboard shortcut for Delete button in alert dialogs to command D.avenjamin2009-11-091-1/+2
| | | | Set keyboard shortcut for Truncate button in alert dialog to command T
* - Wrap SPF restoreSession: call in a task, using the new nested task ↵rowanbeentje2009-11-091-2/+16
| | | | support to fix issue #452
* - Support nested task levels to allow tasks to overlaprowanbeentje2009-11-081-29/+84
| | | | | | | - Thread history loading, thus using the nested task elvels and fixing history interaction in recent builds - Thread initial database loads - Improve progress indicator slightly
* - Alter query start/stop notifications to apply to only the originating ↵rowanbeentje2009-11-051-16/+4
| | | | window, regardless of key state, by passing in and looking for the table document instance
* • Finish off implementation to set the default selection view mode. Issue #249avenjamin2009-11-021-4/+22
|
* • Initial work to set the default view mode when connecting. Issue #249avenjamin2009-11-021-0/+10
| | | | • Organize constants into groups
* - Fix a crash when opening .spfs caused by an autorelease - revert to ↵rowanbeentje2009-11-011-1/+9
| | | | | | | manual memory management instead of r1455 approach, but fix leaks - Fix an exception caused by closing .spf windows while "Connecting..." windows were open
* Enable the display of vertical grid lines in the table relations table view.stuconnolly2009-11-011-0/+1
|
* Got rid of a crash when using the User Manager and closing last Table ↵mltownsend2009-10-291-10/+3
| | | | Document. May be leaking now, not sure. Still needs some work.
* Replace the multiple occurrences of hard coded toolbar identifiers for the ↵stuconnolly2009-10-281-56/+57
| | | | main toolbar with constants.
* Fix incorrectly named preference constant.stuconnolly2009-10-271-1/+1
|
* - When performing threaded data loads, no longer disable the tables and ↵rowanbeentje2009-10-271-2/+0
| | | | instead prevent selection/editing/sorting in code; this prevents the tableviews from going grey during the load and minimises flicker and loss of focussed elements.
* - Set up TableSource to respond to task notifications to prepare for ↵rowanbeentje2009-10-271-2/+10
| | | | | | | threaded queries - Alter task notifications to pass the TableDocument as the notification object so that only the current window responds to the notification, allowing other windows to be fully used while a window is performing a task
* Don't run the add new database sheet modally, thus blocking the main thread. ↵stuconnolly2009-10-261-104/+109
| | | | Part of issue #357.
* - Improve table and task redrawing during threaded table content loadsrowanbeentje2009-10-221-3/+3
| | | | | - Correctly update the table content count when duplicating a row, and cancelling the add. This addresses issue #440.
* - Display the user accounts manager as a sheetstuconnolly2009-10-211-2/+6
| | | | | - Tidy up a bunch of interface controls and bahaviour
* Other than the custom query item, disable all the main toolbar items when ↵stuconnolly2009-10-211-0/+5
| | | | something other than a table or view is currently selected.
* - Improve responsiveness/speed when loading table content by not forcing ↵rowanbeentje2009-10-211-1/+1
| | | | table redraw on new data, and increase the accuracy of the determinate progress as forced redraws are no longer an issue
* Initial work on threaded task, with an implementation of Table Content view ↵rowanbeentje2009-10-201-3/+128
| | | | | | | | | data loading: - Removal of AMIndeterminateProgressIndicatorCell, and addition of a custom fork of YRKSpinningProgressIndicator which fixes bugs, adds threaded drawing, and adds a determinate mode. - Addition of a task system within TableDocument, triggering display of a large central progress indicator and stopping the window from being interacted with in any way that would cause a query while the task is running. - Add threaded TableContent content fetching, including use of the new task system and determinate progress bar; make fixes to improve threading stability and interaction.
* Attempt to fix connection problemmltownsend2009-10-201-1/+1
|
* Replace the use of hard coded preference keys with constants to prevent ↵stuconnolly2009-10-171-32/+33
| | | | issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
* • SPF file: remember/restore 'connectionEncoding' and 'toolbar visibility'Bibiko2009-10-151-1/+11
|
* • added AppleScript support for "make new document"Bibiko2009-10-141-0/+4
| | | | • fixed validation of the main menu item "Print" - only enabled if one table is selected (otherwise it throws an exception)
* • some minor code cleaning and simplificationBibiko2009-10-071-296/+305
|
* • added main menu item: "Open “<file>” in New Window" ⌥⌘O as ↵Bibiko2009-10-061-0/+25
| | | | | | alternated menu item bound to "Open…" - this action opens the current file-based connection in a new window by reading <file> again
* • changed routine for opening SPF filesBibiko2009-10-061-12/+47
| | | | | | | | | - if no passwords are stored inside the SPF file try to retrieve the passwords from the KeyChain - for that purpose store the key 'kcid' in the SPF file if available - changed the accessory view: 'auto_connect' is always enabled (even no pw will be saved due to new routine) • fixed issue for Open Recent of SQL files • add a saved SPF file to Open Recent list if the user saved an Untitled doc or saved an open SPF file under an other name
* More export redesign work. CSV data generation is currently working using ↵stuconnolly2009-10-061-12/+9
| | | | the old non-streaming code, but does not yet write to any files. Please note that this is still very much a work in progress.
* Add the ability to copy the selected server variable(s), either as name = ↵stuconnolly2009-10-041-17/+103
| | | | value pairs, just the variable or just the variable value.
* Improve Growl interaction to reduce general Growl spammage and improve ↵rowanbeentje2009-10-031-3/+7
| | | | | | | | | | functionality: - Growls are now only shown by default if they are not fired from the frontmost window - Long-running tasks (>3 secs) will still Growl - Clicking on a Growl will now bring the associated window to the front This addresses the original concerns of Issue #98.
* • fixed "Open Recent" for 10.6:Bibiko2009-10-031-1/+1
| | | | | | since 10.6 that list expects a clean file URL created via [NSURL fileURLWithPath:path] (having the suffix file://localhost/....) Note: should be tested for Leopard.
* • first implementation of a Content Filter EditorBibiko2009-10-011-52/+73
| | | | | | | | | | | | | | - 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
* - Add copy create syntax button to the create syntax sheet.stuconnolly2009-10-011-0/+21
| | | | | | - Fix the Growl notification prefs message as well as making the dialog a sheet. - Re-run genstrings to update localizable.strings and also remove use of multiple comments for a single string.
* - Replace the create syntax transparent HUD panel with a standard sheet, ↵stuconnolly2009-10-011-46/+99
| | | | | | | | | which displays the create syntax in the same non-editable version of the custom query editor. Addresses issue #411. - Add the ability to save the displayed create syntax to a file on disk. - Change the 'Show Create Syntax' shortcut from shift+cmd+S (its already in use) to alt+cmd+S. - Make both the create syntax and server variables sheets not run application modally and thus prevent them from blocking the main thread. Part of issue #351.
* • while a connection will be initialized via a SPF file disable the ↵Bibiko2009-09-231-0/+5
| | | | possibility to choose an other connection from the favorites' list; otherwise the SPF file could run out of sync
* Forgot to assign the back/forward history menu item's tags resulting in ↵stuconnolly2009-09-121-1/+1
| | | | incorrect navigation and menu item validation.
* Add back/forward history menu items to the view menu with the assigned ↵stuconnolly2009-09-121-4/+32
| | | | shortcuts of cmd+[ and cmd+].
* • improved behavior while closing a document windowBibiko2009-09-041-4/+23
| | | | | | | - if not connected close it without any checks - if an Untitled document contains stored query favorites - What should be done? - up to now it saves them to the global prefs • header in query favorites list keep visible while filtering • code cleaning
* • implementation of a new history controllerBibiko2009-09-041-15/+20
| | | | | | | | | | | | | - each history is doc-based even if you have opened not only one instance of the same spf file - for each SPF file identified by its file URL SP remembers each history item regardless from which doc instance it comes from internally ( to make sure that after closing the last instance of a doc all executed queries are saved in that file - if the user wants to change that s/he has to save that file under a different name ) - the history list for each Untitled doc will be initialized by the items stored in the global SP's prefs - the history list for each SPF doc will be initialized by the items stored in the SPF file unless an instance of the same file is already open - then the new instance inherits the history list from the opened one(s) - all history items executed in any Untitled docs will be added to SP's prefs - in other words SP's global prefs plist is the historyrepository for each new Untitled doc - if the user saves an untitled doc or rename an opened SPF file the _current_ history list for that doc will be saved to the chosen file unless an other doc instance is still open - all history lists are saved automatically if SP quits or the user closes a doc window Note: This should be tested for any logical pitfalls - each desired logic can be implemented :)
* • renamed SPQueryConsole to SPQueryController since it controls not only ↵Bibiko2009-09-031-20/+20
| | | | | | the query console but also query favorites and history application-wide - accessible via: [SPQueryController sharedQueryController]