Commit Graph

2960 Commits

Author SHA1 Message Date
Allan Odgaard
24bd3eee1d Let ProjectLayoutView setup height of file browser header 2014-09-29 13:03:45 +02:00
Allan Odgaard
b9ed2ac8ee Let ProjectLayoutView know about the file browser header view 2014-09-29 13:02:15 +02:00
Allan Odgaard
3052a2764b Don’t allow tab bar view to expand beyond its intrinsic height
This makes it easier to constrain other views to the height of the tab bar view, without the tab bar view growing to the height of the other view.
2014-09-29 13:02:15 +02:00
Allan Odgaard
6262e17159 Make file browser’s header view a public property
This allows users of the file browser to setup constraints involving the file browser header or change its (background) styling.
2014-09-29 13:02:15 +02:00
Allan Odgaard
d12e0976d6 Remove OakGradientView 2014-09-29 13:02:15 +02:00
Allan Odgaard
72837ca7ac Use OakBackgroundFillView instead of OakGradientView 2014-09-29 13:02:15 +02:00
Allan Odgaard
eb20fd8746 Add NSGradient support to OakBackgroundFillView 2014-09-29 13:02:15 +02:00
Allan Odgaard
65cfacd054 Fix issue with our tag property override and the 10.10 SDK
Until the 10.10 SDK we could use the compiler’s synthesized getter for our ‘tag’ property, but NSView.h in the 10.10 SDK declares ‘tag’ via the @property syntax and it is effectively unsupported to redeclare a readonly property as readwrite in a subclass (clang will not synthesize getter/setter methods in the subclass).
2014-09-28 14:31:42 +02:00
Allan Odgaard
05bd76ad0b Make “Restore Session” default for session restore dialog
Since disabling session restore will discard user data, it should not be default.
2014-09-27 13:06:31 +02:00
Allan Odgaard
244509586b Closing the overflow tab (via mouse) caused suboptimal relayout
When we close a tab with the mouse we “freeze” the layout rectangle of the tabs before the one closed, however, if this group contains non-visible tabs during close (as is mostly the case when showing the overflow button) then one of those would be made visible (since we closed a tab that took up space) and this new tab would be squeezed into the saved layout rectangle.
2014-09-27 13:02:46 +02:00
Allan Odgaard
94b7114a10 Remove old tab close button images (for non-modified tabs) 2014-09-27 12:04:56 +02:00
Allan Odgaard
6a7c42b775 Revert "Add “create tab” images from MMTabBarView"
This reverts commit 6a81bad1e4.
2014-09-27 12:04:56 +02:00
Allan Odgaard
923ee59534 Use NSImageNameAddTemplate image for “create new tab” button 2014-09-27 12:04:56 +02:00
Allan Odgaard
96c43146dc Remove redundant code 2014-09-27 12:04:05 +02:00
Allan Odgaard
bf73951ec9 Checkin release notes v2.0-alpha.9567 2014-09-26 23:18:48 +02:00
Allan Odgaard
e7bfe7b238 Fix reappearing regular expression error popover
If it was shown and dismissed, then it would show again the next time the text field content was changed (and the content was not a valid expression).
2014-09-26 23:10:24 +02:00
Allan Odgaard
e064491261 By default we no longer show the tab bar for a single document
Once we have two documents (in same window) we show the tab bar and never hides it again (to avoid content from jumping.
2014-09-26 23:10:24 +02:00
Allan Odgaard
5eb7ede829 Don’t ignore case changes on case-insensitive file systems 2014-09-26 23:10:24 +02:00
Allan Odgaard
89d2450c88 Reload tabs before changing selected tab index
This worked previously because selected tab was stored using an index and we were only changing it (before reload) when closing tabs, so the new index would be valid both before and after reload.

With the new OakTabBarView the index of selected tab is instantly converted into a reference to a tab item.
2014-09-26 23:10:24 +02:00
Allan Odgaard
cb463534b8 Make window key in actions that show file browser field editor
It is possible to bring up menus for inactive windows and e.g. select Rename or Duplicate.
2014-09-26 23:10:24 +02:00
Allan Odgaard
a983643fb8 Workaround for weak pointers to NSWindow crashing on 10.7 2014-09-26 23:10:24 +02:00
Ronald Wampler
a627991ac3 HOBrowserView: Avoid calling super on key events
This workaround is to avoid a couple of undesired behaviors in the `HTMLOutputWindow` when the web page implements keyboard commands such as Git → Browse Annotated File (Blame). Namely, when using the keyboard commands, we would always receive an NSBeep. Also, fixed an issue when these key commands may conflict with menu keys. See comment in the commit for details.
2014-09-26 23:10:24 +02:00
Allan Odgaard
13a3ac49ba Update OakTabBarView class to use an NSView per tab item 2014-09-26 23:10:24 +02:00
Allan Odgaard
baff543c47 Add OakTabItemView to be used in upcoming OakTabBarView 2014-09-26 23:10:23 +02:00
Allan Odgaard
6a81bad1e4 Add “create tab” images from MMTabBarView 2014-09-25 22:48:13 +02:00
Allan Odgaard
cba03ff594 Add tab images from Safari 2014-09-25 22:48:13 +02:00
Allan Odgaard
b7088bac3d Add OakRolloverButton 2014-09-25 22:48:13 +02:00
Allan Odgaard
7ebd14876c Introduce OakBackgroundFillView which replaces NSBox for dividers
This view has an active/inactive color or image. The latter is drawn as a pattern color (tiled image).
2014-09-25 19:33:17 +02:00
Allan Odgaard
e54a170eae NSBox is an implementation detail so use NSView instead 2014-09-25 19:33:17 +02:00
Allan Odgaard
1f06ac9ff4 Add identifier to OakTabBarViewDataSource 2014-09-25 19:33:16 +02:00
Allan Odgaard
cf3b830610 Make the ‘expanded’ property of OakTabBarView private 2014-09-20 13:47:30 +02:00
Allan Odgaard
bff8094976 Decrease minimum required width of document status bar 2014-09-19 11:40:29 +02:00
Allan Odgaard
da669a482c Update documentation reference in comment 2014-09-19 07:37:15 +02:00
Allan Odgaard
6f4afd97fa Checkin release notes v2.0-alpha.9565 2014-09-17 11:41:40 +02:00
Allan Odgaard
c2ef79c10c Update dialog plug-in 2014-09-17 11:12:56 +02:00
Allan Odgaard
ec81a045af Force a layout before opening window (from tests)
This appears to be a requirement (to do it manually). Running 10.9.4.
2014-09-17 10:35:25 +02:00
Allan Odgaard
ed29cf9374 Ensure a capture begin/end rule does not leak its scope
Previously if a capture contained a begin/end rule with an unsatisfied end match then its scope would be applied beyond the end of the capture.
2014-09-16 20:38:09 +02:00
Allan Odgaard
651138d660 Update debug output 2014-09-16 14:54:11 +02:00
Allan Odgaard
b265927501 Perform cache invalidation for value_for_setting cache 2014-09-16 14:22:54 +02:00
Allan Odgaard
1d3ccb157a Use a std::string instead of scope_t as cache key
Since we do a lot of lookups the faster operator< of std::string improves performance slightly.
2014-09-16 14:13:06 +02:00
Allan Odgaard
de6724aad5 Minor scope_t implementation improvements
We let std::string do comparisons and we shortcut the equivalence test for scope_t when the node pointers are identical.
2014-09-16 13:57:52 +02:00
Allan Odgaard
d9dfeff56b Introduce a cache for value_for_setting
Currently no cache invalidation is done.
2014-09-16 13:13:12 +02:00
Allan Odgaard
b6c77d1960 Change behavior and implementation of to_s overload for scopes
For a scope context with identical left/right scopes we now return the scope without “decoration” and when the left/right scopes differ, we return them separated by the unit separator character.

The change is motivated by the need to use the result of to_s as a cache key where speed is important.
2014-09-16 12:54:48 +02:00
Allan Odgaard
356999392d Remove crash report info gathering from buffer type
This was affecting performance when performing actions that go through the entire buffer. Also, none of the functions are involved in any crash reports.
2014-09-15 20:41:51 +02:00
Allan Odgaard
8a87ee16e2 Only allow a single history window per clipboard type 2014-09-15 17:41:54 +02:00
Allan Odgaard
3dcd9ba89b Make OakPasteboard’s name property public 2014-09-15 17:37:20 +02:00
Allan Odgaard
ee3f90366d Remember Filter Through Command output choice in user defaults 2014-09-15 17:08:22 +02:00
Allan Odgaard
8224994f5d Convert dragged indexes to items when starting a drag operation
The indexes are not always valid when the drag ends because rows can have been expanded or (when dragging to another file browser) removed.
2014-09-15 12:42:02 +02:00
Allan Odgaard
ab83cc6e50 Strip diacritics and combining marks when asciifying
Previously we would transliterate æ → ae and å → a (via iconv) but something like é became 'e.

Related to issue textmate/latex.tmbundle#87.
2014-09-15 11:02:25 +02:00
Allan Odgaard
279fdbbd3f Add new folder search options to action/options menu 2014-09-14 19:12:19 +02:00