aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.m
Commit message (Collapse)AuthorAgeFilesLines
* Fix a crash that could happen when exiting fullscreen mode on 10.11Max2015-10-181-4/+30
| | | | (backport of d4641ec90fe1b50fca0256e26338d955290fd8b7)
* Move some duplicate code into a new classMax2015-02-141-5/+2
| | | | (This also affects PSMSequelProTabStyle, but see the comment there why it is left unchanged)
* Fix one case of "SSH input fields cut off"Max2015-02-081-0/+6
| | | | | | When the last selected favorite was "Quick Connect" with SSH, on the next launch SSH would be re-selected, but the fields other than SSH Host would be cut off. This was caused by a race condition between our window setup code and Cocoas window restoration code. Solved by disabling window restoration for now (didn't really work for us anyway).
* Addition to commit 2735e15bMax2015-01-041-1/+1
|
* Replace some "magic numbers" with constantsMax2015-01-041-2/+2
|
* Remove a private API in PSMTabBarCellXu Jie2014-12-011-1/+1
| | | | | | Directly assigning to _controlView of a NSActionCell is private and not allowed by Mac App Store. An _customControlView is used to replace _controlView in PSMTabBarCell to avoid direct assigning to _controlView. This should be the last private API to remove before going to Mac App Store.
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-261-1/+1
|
* Remove SVN property placeholder.Stuart Connolly2014-01-261-2/+0
|
* * This change adds basic tab coloring support for favorites - ** POC / NEEDS ↵dmoagx2013-10-231-0/+1
| | | | | | | | | REVIEW ** Known issues: * There might be additional colors be shown when dragging tabs between windows * The color set might need fine tuning * Coloring of items in the favorite outline view is not yet handled
* - Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to ↵rowanbeentje2013-05-211-0/+1
| | | | enable some more
* Remove useless init and dealloc method comments and perform general tidy up.stuconnolly2013-01-221-3/+0
|
* Window controller tidy up.stuconnolly2013-01-211-89/+132
|
* - Call the NSWindow super implementation of validateMenuItem: in SPWindow, ↵rowanbeentje2013-01-051-1/+53
| | | | | | | | fixing Show Toolbar/Hide Toolbar menu item title not being updated correctly - addresses Issue #1521 - When the toolbar is hidden, draw a line in the window to cover up the bottom border of the window's title bar, improving appearance - Improve tab appearance when toolbar is hidden
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-12/+20
|
* Silence static analyzer warnings.stuconnolly2012-06-261-5/+3
|
* Add SPWindowControllerDelegate category.stuconnolly2012-04-091-374/+2
|
* PSMTabBar improvements:rowanbeentje2012-04-021-0/+3
| | | | | | | - Add a new -destroyAnimations method to the tab bar and call it when tearing down the parent SPWindowController; this prevents animations redrawing the document after window close, fixing a number of crashes. - Improve the logic for collapsing and uncollapsing the tab bar as tabs are added and removed, fixing height calculation errors leading to Issue #1082 - Improve tab bar draw when animating in the Sequel Pro tab style
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-3/+3
| | | | | | | | | | | | exceptions as database structure retrieval is currently missing! Further work on SPMySQLFramework integration: - Improve SPMySQL framework build settings including correct ppc builds and a Distribution configuration for the build distributions to match - Add new convenience querying and result methods to the framework - Amend Sequel Pro source to use the new SPMySQL.framework methods everywhere, replacing MCPKit methods where they differ and improving some functions - Remove MCPKit from the source - Fix a number of warnings on Release-style builds
* - Lion compatibility improvement: add support for fullscreen windows, on ↵rowanbeentje2011-08-161-0/+26
| | | | | | | | | | | the main window only; hide SSH/SSL status when entering fullscreen mode, to prevent drawing issues - Lion compatibility improvement: update tab colours under 10.7 to match system styles - Lion compatibility improvement: fix issues dragging tabs out of windows and into other tab bars - Lion compatibility improvement: fix QuickLook issues under 10.7, including windows which couldn't be closed, fullscreened, or crashes - Fix exceptions in the bundle controller when using tab switching keys - Lion compatibility improvement: use overlay scrollers where possible
* Add Sparkle to credits.stuconnolly2011-07-101-16/+12
|
* Add the ability to double click a tab to duplicate the connection in a new ↵stuconnolly2011-05-091-3/+17
| | | | tab (equivalent to the 'Open Database in New Tab' menu item). Implements issue #1040.
* Add tab context menu.stuconnolly2011-05-081-2/+16
|
* - Fix more compiler warningsrowanbeentje2011-03-151-5/+6
| | | | | - Tweak README
* fixed compiler warningssqlprodev2011-03-011-1/+3
|
* Add a new category to SPDatabaseDocument, allowing code cleanup and moving ↵rowanbeentje2010-11-031-1/+1
| | | | | | | | | | | central functionality out of SPTablesList: - Centralise control over table loading, moving it away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Centralise control over the main tab view, moving control away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Simplify and clean up view loading logic - Improve thread safety - Update localisable strings
* Considering nearly every class uses constants, import it via the prefix header.stuconnolly2010-10-191-2/+2
|
* More work on tab creation target and actionavenjamin2010-09-151-3/+3
|
* Add ability to double click the empty area of the tab bar to create a new tab.avenjamin2010-09-151-0/+1
| | | | - Slightly limited in that the addTabButton's target and action must be set for it to work.
* • made usage of SPBeginWaitingAlertSheet while closing a spf file for ↵Bibiko2010-08-191-4/+8
| | | | | | | readability of that spf file • suppress if a window with one tab will be closed that [... parentTabShouldClose] method will be called twice via closeTab: - this issue could be the reason for recent crashes/exception esp. of the NSNavigator (should be investigated further)
* - Fix menu item and window close issues after a tab is dragged to a new ↵rowanbeentje2010-08-031-1/+2
| | | | window, including for single tabs in windows moved by their tabs
* Improve tab dragging:rowanbeentje2010-08-031-1/+2
| | | | | | - Fix toolbar issues when the last tab is dragged "out of" a window (eg a window is moved via the only tab left inside it) - Fix window positioning flicker when dragging a tab out of its window
* - Fix tab bars in windows with only one tab not disappearing after dragging ↵rowanbeentje2010-07-031-5/+2
| | | | | | | 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
* Improve tab functionality, behaviour and interaction.rowanbeentje2010-06-301-14/+41
| | | | | | | | | | | | | | | | | | | | | PSMTabBar general improvements: - Fix a phantom tab appearing in windows a tab was just dragged out of - Add support for a new control usersSafariStyleDragging property; this causes tabs being dragged inside a tab bar to snap to the tab bar, be drawn at full transparency (also no longer darkening the placeholder position), and alters tab ordering within the tab bar to be based on the tab position rather than the mouse position, for a more Mac-like reordering feel. - Add support for dragging items onto the menubar to cancel the drag - Alter the image of the dragged tab to use a tab drawn onto a transparent background instead of snapshotting a rectangle around the tab, improving drag appearance - Allow tabs to be dragged partially off screen and keep their position instead of snapping back fully onto the screen - Improve behaviour when dragging tabs out of and back into tab bars, or into new windows, resizing the tabs in the target tab bar to improve display and no longer intermittently showing close buttons while dragging - Pull windows to the front as tabs are dragged onto their tab bars - Abstract Custom Query Editor text snippet code, adding a delegate method so code could be moved to the SP window manager. Sequel Pro tab styling improvements: - Improve and clean up tab drawing code - Draw background tabs with shadows as appropriate - Improve logic for how background tab edges are drawn, handling edges cases better (active tab in overflow menu etc) and vastly improving drawing when a tab is being dragged (respect placeholder position when stacking tabs, draw edges on either side) Sequel Pro tab behaviour improvements: - Improve show/hide tab bar interaction - Improve window positioning after creating new windows via a drag - Alter tab dragging out of the tab bar to use an image based on the full window appearance - looks better, and fixes issues like the tab bar background not being drawn while dragging
* Add option to toggle the tab bar visibility.avenjamin2010-06-301-1/+18
| | | | | - Only applies when one tab is present. - Saves last used state to preferences.
* • made SP more robust against fast closing of tabs and windowsBibiko2010-06-291-2/+2
| | | | • setHideForSingleTab:YES after opening spfs session
* • Open Session fileBibiko2010-06-291-0/+4
| | | | | | - 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
* • initial support for open a spfs session file (works rudimentary - ↵Bibiko2010-06-241-0/+13
| | | | | | fine-tuning comes soon) • added constant "SPBundleFileExtension"
* • replaced @"sql" and @"spf" by their SPConstant definitionsBibiko2010-06-241-0/+6
| | | | | | | • further Save Session progress - store "saved as session accessory view data" globally to support "Save Session" - delete global "saved as session accessory view data" if last SP window will be closed - added to info.plist which tab is currently selected
* • simplified and unified tab tooltipsBibiko2010-06-181-27/+4
| | | | • added tooltips for tab's overflow menu
* - Further improve appearance of Sequel Pro tab style (still hidden): fixed ↵rowanbeentje2010-06-171-3/+3
| | | | | | | drawing glitches, improved spacing, improved edge drawing - Enable tab switch commands even when documents are working
* • added Window menu item "Move Tab to New Window"Bibiko2010-06-161-13/+82
| | | | - it moves the SPDatabaseDocument of the currently selected tab to a new window
* Initial stage of re styling the tab bar to actually look half decent.avenjamin2010-06-141-1/+1
| | | | | - Change line 373 of PSMTabBarControl to "SequelPro" to see new tabs. - The drawing of the tab edges needs to be redone on the very edge of each tab instead of being inset by a number pixels to resolve a few issues.
* • reverted to previous approach to display tooltips for unselected tab ↵Bibiko2010-06-141-2/+29
| | | | | | view items, since it doesn't work - added the MySQL version to these tooltips if enabled in the prefs
* - Fix a crash when dragging/closing tabs after tab drags, caused by not ↵rowanbeentje2010-06-141-1/+2
| | | | updating the document's parent window controller after drags from window to window
* • simplified tooltips for tabsBibiko2010-06-141-23/+6
| | | | | • preparations for "Move Tab to New Window" action menu action • display Select Next/Previous Tab menu items also under Main Menu > Window to be consistent
* • if tab view item is dragged out of a tab bar set the correct window titleBibiko2010-06-141-0/+3
|
* Improvements to tab dragging and switching:rowanbeentje2010-06-131-5/+71
| | | | | | | | | - Attempt to preserve toolbar visibility settings - Fix dragging on previously background tabs - When dragging a tab, show the tab bar in all windows to that windows containing a single tab can be added to - Fix window sizing when creating new windows via a tab drag - Improve window representation when dragging a tab off a window, and fix placement when creating a new window following mouse release
* - Add support for tearing tabs off a window, into a new window containing ↵rowanbeentje2010-06-131-3/+55
| | | | | | | the dragged tab - Fix SPWindowController memory leak
* - Fix a regression in r2308 causing problems when dragging a tab from one ↵rowanbeentje2010-06-121-2/+1
| | | | window to another
* - Fix menu validation by forwarding SPWindowController requests to the ↵rowanbeentje2010-06-121-24/+31
| | | | | | | frontmost document - Track the frontmost document in a window to simplify code