aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
Commit message (Collapse)AuthorAgeFilesLines
...
* • finished implementation of SPChooseMenuItemDialogBibiko2010-12-061-129/+105
| | | | | • simplified bundle command handling and handling for bundle commands which have the same key equivalent to be able to group similar bundle commands • minor code improvements
* • further work on the choosMenuItem [not yet working]Bibiko2010-12-031-78/+89
|
* • preparations for handling issue if user assigned the same keyboard ↵Bibiko2010-12-031-7/+46
| | | | short-cut on different Bundle commands; if so show a kind of a context menu to pick up one item; this will be done via the new SPChooseMenuItem class which will display a borderless window with a context menu at a passed location
* • improved Bundle key equivalent handling and enabled to display all ↵Bibiko2010-12-031-4/+105
| | | | short-cuts in menuItem even there're same short-cuts are assigned
* • Bundle CommandsBibiko2010-12-011-2/+22
| | | | | - make sure that each HTML output window will be released - if a triggered command will outputs its result in an HTML window invoke it only if the HTML output window is already open; this enables the user to "switch on/off" such a trigger
* • progress on trigger support for Bundle commandsBibiko2010-12-011-0/+15
|
* • improve error handling for url scheme commandsBibiko2010-12-011-0/+13
|
* • added chance to cancel an activity - up to now a running Bundle command ↵Bibiko2010-12-011-12/+19
| | | | | | - from the Activities pane (toggable via double-clicking at Table Information header); it's still tentative and the correct cancel icon will follow asap • added notification system for updating the activities pane (SPActivitiesUpdateNotification)
* • Bundle commandsBibiko2010-11-301-1/+1
| | | | | | - before closing a db doc window kill all commands associated to this doc - suppress an error message if a bash command was killed via code 9 - added a temporary and preliminary table view to display command activities (double-click at TABLE INFO header to toggle and refresh it - only for testing purposes - it shows all commands started from that db doc and a General command names)
* • Bundle commandsBibiko2010-11-291-1/+58
| | | | | - register running commands for each SPDatabaseDocument or if the command runs via 'General' for NSApp delegate - kill all running commands before SP will be terminated
* - Fix issues right-clicking in the empty table area ( http://spbug.com/l/1726 )rowanbeentje2010-11-271-1/+1
| | | | | | | - Improve 10.5 compatibility when clearing menus ( http://spbug.com/l/1508 , http://spbug.com/l/1829 , http://spbug.com/l/1818 ) - Fix a possible crash when updating database lists - Update localisable strings
* • improved installing procedure of spBundle filesBibiko2010-11-261-1/+83
| | | | - SP asks for Update a bundle if a bundle with the same UUID is already installed
* • Bundle Command supportBibiko2010-11-261-2/+15
| | | | | | - added shell var SP_ICON_FILE - a bundle command which outputs its result as HTML window will write the data in the same window, ie it won't be create each time a new window; the window will be identified by the bundle's uuid - fixed issue while saving a short-cut in keybinding.dict format, now it ignores possible diacritics - maybe bug in ShortcutRecorder for method [aRecorder keyCharsIgnoringModifiers] since in the objectValue it's set correctly
* • Bundle EditorBibiko2010-11-251-2/+4
| | | | - some GUI improvements and tooltips for outline view
* • Bundle EditorBibiko2010-11-231-3/+17
| | | | | | | - fixed gui arragement - suppress error message if no ouptut key found in command.plist • added sequelpro://ID@/passToDoc/SelectTableRows/1/3/4/.. scheme command which selects given rows in current table if a SPCopyTable is the first responder; not valid given rows are ignored • added SP_SELECTED_ROW_INDICES as passed shell variable for Data Table scope
* • Bundle EditorBibiko2010-11-231-11/+155
| | | | | | | - bailed out from approach to assign more than one scope to Bundle commands; now there're three scopes available: Input Field (incl. Query Editor since it only differs in current_query and insert_as_snippet which falls back to current_line and tooltip message), Data Table, and General (which means that these commands are available app-wide) - moved "Disable Command" to scope popup menu since it's related - Input Field and Data Table commands will be shown as submenus in the Bundles main menu; all General commands will be added without creating a special submenu (only Category submenus will be generated) - fixed and simplified several issues
* - Abstract SPDatabaseDocument's Connection/.spf saving/loading ↵rowanbeentje2010-11-231-3/+36
| | | | | | | | | | functionality into state setting and getting functions, and refactor old commands to use them - Fix restoring of content sort column order and selected indexes - Add menu items for duplicating current tab (as an alternate), opening selected table in a new tab, or opening selected database in a new tab - Clean up file menu by making Connection/Session "Save as..." menu items alternates - Update localisable strings
* * enabled sequel:// url scheme commands from inside the Bundle HTML output ↵Bibiko2010-11-221-2/+5
| | | | window
* • sequelpro url scheme supportBibiko2010-11-221-0/+10
| | | | | | | • added commands: SelectDocumentView, ReloadContentTableWithWHEREClause • fixed typos • tried to queue incoming commands
* • Bundle EditorBibiko2010-11-191-2/+2
| | | | | | | - minor fixes - command textView is now a SPEditSheetTextView for better undo behaviour and font storing in the Prefs if changed - if Bundle Editor is already opened ^⌥⌘B brings it to the front • the installation of spTheme and spBundle files (via eg double-clicking at them in Finder) now moves the files to SP's application folder (if successful)
* • further work on Bundle EditorBibiko2010-11-181-2/+2
| | | | • generalised [NSString runBashCommand...]
* • further work on Bundle EditorBibiko2010-11-171-1/+1
|
* • Bundle supportBibiko2010-11-161-2/+5
| | | | | | - further simplifications and centralizations - runBashCommandWithEnvironment: now it can execute each script command whose first line begins with #!/... natively - added some more shell variables
* • Bundle supportBibiko2010-11-161-3/+5
| | | | | - added skeleton for scope datatable support - removed unnecessary code
* • Bundle supportBibiko2010-11-151-5/+96
| | | | | | - started to populate the main menu item Bundles [still hidden] - enabled key equivalents for NSTextViews - distinguishes between Query Editor scope and text input scope via menu item validation inside main menu Bundles
* • Bundle supportBibiko2010-11-151-6/+120
| | | | | | | - outsourced code to SPAppController to centralise Bundle support and make it available for different scopes (query editor, input text fields, data tables etc.) - store bundle info scope-based - added input text field support - made usage of constants
* • added skeleton for Bundle EditorBibiko2010-11-121-0/+14
| | | | - not yet visible
* Remove debug from previous commit.stuconnolly2010-11-111-3/+0
|
* Make sure the root favorite has a name key and value. Also, update string files.stuconnolly2010-11-111-0/+3
|
* More work on the new favorites controller, including loading and saving as ↵stuconnolly2010-11-111-1/+3
| | | | well as the method to migrate existing favorites data. Currently not yet active.
* • added to Bundle shell command these variables:Bibiko2010-11-111-0/+9
| | | | | | | | | | SP_ALL_DATABASES, SP_ALL_TABLES, SP_ALL_VIEWS, SP_ALL_FUNCTIONS, SP_ALL_PROCEDURES, SP_RDBMS_VERSION, SP_RDBMS_TYPE [hard-coded yet ;)] • some minor improvements to editor Bundle support • fixed issue while running a bash command that the SP GUI doesn't block • added first sequelpro url scheme functionality - sequelpro://$SP_PROCESS_ID/passToDoc/SelectTable/a_name - sequelpro://$SP_PROCESS_ID/passToDoc/SelectDatabase/a_db_name - sequelpro://$SP_PROCESS_ID/passToDoc/SelectDatabase/a_db_name/a_table_name
* • some improvements for sequelpro://process_id/command/param1/param2 url ↵Bibiko2010-11-111-1/+47
| | | | | | scheme support - introduced an unique process ID for each called bash command which will be set for the current SPDatabaseDocument and passed as environment shell variable SP_PROCESS_ID to ensure that such a scheme command will be executed by the correct SPDatabaseDocument, to avoid security issues ie one can authenticate such a sheme command, to enable url scheme process communication based on file shake-hands etc.
* • improved Bundle support; now it the passed input string will be saved as ↵Bibiko2010-11-101-0/+17
| | | | | | | temp file SP_BUNDLE_INPUT_FILE since stdin and shell vars are difficult to handle for a large amount of data • fixed AppleScript class definition since it was renamed • added support for the URL scheme 'sequel' to allow to interact with Sequel Pro eg via bash: open 'sequelpro://executequery=select%205' [not yet implemented ;)]
* Minor dealloc change.stuconnolly2010-11-091-3/+3
|
* • further preparations for user-definable bundle supportBibiko2010-11-091-1/+31
|
* • added spBundle file extensionBibiko2010-11-091-0/+3
|
* • disable "New Connection Tab" ⌘T menu item if a sheet is ordered outBibiko2010-11-011-1/+5
|
* Considering nearly every class uses constants, import it via the prefix header.stuconnolly2010-10-191-1/+0
|
* Split out AppleScript support into a category of SPAppController.stuconnolly2010-10-141-103/+5
|
* • fixed AppleScript crash after calling 'open' without any parameterBibiko2010-08-311-8/+29
| | | | | | | | - this should fix the issues 108, 1398, 226 , 1157, 1473 • added AppleScript support for command 'print' - it prints the active view • renamed SP classes in sequel-pro.scriptSuite • AppleScript command 'make new document' opens a new window and connects to default automatically if set
* • added SPFileManagerAdditionsBibiko2010-08-191-1/+7
| | | | | | | | - [(NSString*)applicationSupportDirectoryForSubDirectory:error:] Return the application support folder of the current application for 'subDirectory'. If this folder doesn't exist it will be created. If 'subDirectory' == nil it only returns the application support folder of the current application. • added SPThemesSupportFolder constant
* • double-click in Finder on a 'spTheme' file installs this theme in SP's ↵Bibiko2010-08-191-4/+31
| | | | | | support folder • fixed opening of other file types by checking lower cased strings
* - Expose a number of help menu items and help buttons to use localisable ↵rowanbeentje2010-07-181-6/+6
| | | | | | | | strings - Tweak MySQL help search to include a localisable language code for results in requested languages This addresses Issue #743
* - When a window is first opened, tell the tab it has become frontmost after ↵rowanbeentje2010-07-091-1/+2
| | | | the window has drawn. This addresses odd Exposé artifacts when first setup (Issue #758), as well as toolbar drawing issues when a tab is dragged into a new window.
* Rename TableDump to SPDataImport and fix export selected tables functionality.stuconnolly2010-07-061-1/+1
|
* - Fix tab bars in windows with only one tab not disappearing after dragging ↵rowanbeentje2010-07-031-1/+15
| | | | | | | a tab past/through them, by using PSMTabBar notifications instead of our own notifications; also fix PSMTabBar notification ordering. - When a tab drag starts, reorder all windows in front of other applications
* • after opening spfs file reset tabBar by looking at setting for ↵Bibiko2010-07-011-1/+5
| | | | | | | | | SPAlwaysShowWindowTabBar • fixed CSV Import file display in NSPathControl if SP runs localized - the problem is very likely a bug in [NSPathControl setURL:]; that's why create a new temporary NSPathControl and set the GUI's NSPathControl via [NSPathControl setPathComponentCells:[tempPathControl pathComponentCells]] - this should fix i751 • resized some components in CSV Import sheet to fit for localizations a bit better
* • save window's vertical divider position in spf files in order to be able ↵Bibiko2010-06-291-0/+12
| | | | | | | | | to restore it • do not save tabs or a single window if connectionController is shown • added comments • added to SPTableContent method "tablesListWidth" to retrieve tablesList's view width
* • made SP more robust against fast closing of tabs and windowsBibiko2010-06-291-0/+1
| | | | • setHideForSingleTab:YES after opening spfs session
* • Open Session fileBibiko2010-06-291-0/+3
| | | | | | - set [tabbar setHideForSingleTab:NO] if window has more than one tab in order to avoid issues while animated fading-in of the tabbar - assign initial keyboard short-cut ^⌥⌘S for Save Session (needs to be discussed) - still hidden