Commit Graph

3004 Commits

Author SHA1 Message Date
Allan Odgaard
312d14b619 Checkin release notes v2.0-alpha.9571 2014-10-02 22:15:52 +02:00
Allan Odgaard
9a2e905097 Ensure we create signature before uploading file
This is so that we do not upload anything if signature creation fails.
2014-10-02 21:21:19 +02:00
Allan Odgaard
d9dfa98018 Do not prevent empty lines from being a fold start/stop marker
This is compatible with how TextMate 1.x works. We identify empty lines because we want to ignore them when finding the last line in an indented block, though this commit should not break that, unless the language in question have one of the folding patterns match empty lines and have also enabled indent based foldings.
2014-10-02 21:14:58 +02:00
Allan Odgaard
097a1a0bd2 Set MATEOPT to ‘--no-recent’ for TextMate commands
This way commands that open files via TM_MATE will not fill up the Open Recent menu.
2014-10-02 21:12:57 +02:00
Allan Odgaard
dc2ce04b86 Read mate options from the MATEOPT environment variable
This is useful for users who want to permanently set things like --[no-]recent and --[no-]escapes.
2014-10-02 21:10:52 +02:00
Allan Odgaard
e44425e0cd Use thin close button images on 10.10 2014-10-02 20:23:56 +02:00
Allan Odgaard
83e3225826 Add “thin” close button from iTerm2 2014-10-02 20:23:34 +02:00
Allan Odgaard
243d1c8808 Add contentFrame property to OakTabItemView
This should return the content excluding borders and is used to create an image when dragging tabs. Long-term we probably should create a special drag image rather than ask the tab to draw itself.
2014-10-02 19:57:26 +02:00
Allan Odgaard
444df54849 Use different tab background/divider images on 10.10 2014-10-02 19:17:29 +02:00
Allan Odgaard
1a3d76880c Refactor 2014-10-02 19:15:50 +02:00
Allan Odgaard
93624253ce Add left/right padding properties to OakTabBarStyle 2014-10-02 18:56:20 +02:00
Allan Odgaard
9a85ff2d57 Simplify constraints used to layout document window
We now do the core layout with priorities that allow optional elements to insert themselves between existing elements.
2014-10-02 17:49:40 +02:00
Adam Strzelecki
b137014777 Tabs above document file browser header in tab bar
Integrate visually file manager header in tab bar when tabs above document
option in on. If tabs above document are off then use default gradient L&F.

Bottom divider for file browser header view is not integrated in header for
easier control if it is shown or not.
2014-10-02 11:03:41 +02:00
Allan Odgaard
1c3b5c170a Use template image for tab bar overflow button 2014-10-02 11:03:41 +02:00
Allan Odgaard
929d7ed80e Set button background as raised when using a template image 2014-10-02 11:03:41 +02:00
Allan Odgaard
7c05b6c611 Require mouse to be moved 2.5 points before dragging a tab 2014-10-02 11:03:41 +02:00
Allan Odgaard
8c44780616 Update dialog plug-ins (font sizes) 2014-10-02 11:03:41 +02:00
Allan Odgaard
a40efd3971 Support OakBundleManagerDisambiguateMenuFontSize
This was supported by TextMate 1.x and are also used by the menus brought up by the dialog plug-ins.
2014-10-02 11:03:40 +02:00
Allan Odgaard
197222f93e Disable find action buttons when there is no find string 2014-10-02 11:03:40 +02:00
Allan Odgaard
c080a5d5d3 Use NSNegateBooleanTransformerName constant instead of string 2014-10-02 11:03:40 +02:00
Allan Odgaard
639f1d282f Remove OakCreateSmallLabel helper since it’s only used once 2014-09-30 17:08:01 +02:00
Allan Odgaard
bb87e6fabe Do not relayout tabs to the left of clicked close button
Previously we would still perform layout on the tabs to the left since with tabs having equal width, the layout should result in the same. Now that we compress tabs, the layout can change.

In theory the user could close a tab, have the mouse remain inside the tab bar, and then perform an action that changes the underlying tabs, which would then leave us with tab item views that need layout.
2014-09-30 17:05:54 +02:00
Allan Odgaard
5de3b2558a Redistribute tab whitespace to minimize title compression 2014-09-30 17:05:53 +02:00
Allan Odgaard
894314592f Enable tab overflow button before doing layout
This is so that we can use fittingSize during layout (i.e. have it include the width of the overflow button when the tab item view shows it).
2014-09-30 17:05:53 +02:00
Allan Odgaard
62e197a310 Close button for modified tab items was initially hidden 2014-09-30 17:05:53 +02:00
Allan Odgaard
c50ec2da34 Doing tab layout with no selected tab would lose overflow menu 2014-09-30 17:05:53 +02:00
Allan Odgaard
63dcc93ab4 Introduce table cell view subclass to avoid expensive reload 2014-09-30 17:05:53 +02:00
Allan Odgaard
9369777aee Hardcode small system font size as 11
This is because the small system font size is actually the tool tip font size which the user may increase (via the NSToolTipsFontSize defaults).
2014-09-30 17:05:53 +02:00
Allan Odgaard
568017fffc Use message font as the control font 2014-09-30 17:05:53 +02:00
Allan Odgaard
42e1b5fdf0 Use label font for color chooser in file browser context menu
This seems appropriate given that label font is used below toolbar icons and the tick marks on a slider. Here we use it below the available colors.

We also use it for OakCreateSmallLabel() which is only used for status messages in the registration window.
2014-09-30 17:05:53 +02:00
Allan Odgaard
106ac62bcf Use OakStatusBarFont() for find window’s status text 2014-09-30 16:58:12 +02:00
Allan Odgaard
7cb2330aae Log error if curl_easy_init() or accept() fails 2014-09-30 14:15:11 +02:00
Allan Odgaard
6748c28109 Send performCloseTab:/OtherTabs: directly to tab view delegate
When our application is active but another window is key, trying to send to our tab view’s window (via tryToPerform:with:) goes to the key window.
2014-09-30 14:15:11 +02:00
Allan Odgaard
040a53c3df Change text view status bar layout constraints
We now center most things and baseline align text controls. Previously we would stretch all controls to full height which wouldn’t guarantee that e.g. pop-up buttons would properly align with the text fields.
2014-09-30 14:15:11 +02:00
Allan Odgaard
6e5adcdc31 Remove unused code 2014-09-30 14:15:11 +02:00
Allan Odgaard
11de15ac54 Update fonts used for find in folder results
We now use the control content font as this seems to be meant for content shown in tables. We use the standard size (of 12 points) for the headings and set the result rows to use 11 point.

The number of matches is shown with the label font as that is semantically a small font used for placing labels next to things.
2014-09-29 22:41:54 +02:00
Allan Odgaard
2462bf8037 Use minimum tab size as tab bar’s intrinsic width
This way we can setup compression resistance to the required priority and thereby ensure that the tab bar fits at least one tab.
2014-09-29 18:23:34 +02:00
Allan Odgaard
d9e8a0fc5e Do not setup Y-centering constraint on tab overflow image
This image already has a fixed position so the centering is redundant and could even lead to ambiguous layout.
2014-09-29 18:23:33 +02:00
Allan Odgaard
1266129f0e Don’t layout any tabs when smaller than minimum tab item width 2014-09-29 18:23:33 +02:00
Allan Odgaard
c88b3e3611 Set “center tab labels” constraint below “fitting size” priority
This way when asking for a fitting size we get back the minimum size with all but the centering constraint met (and minimized).

In theory the compression resistance for the text field only need to be NSLayoutPriorityFittingSizeCompression+1 but for reasons I do not yet understand, we need to set it higher than NSLayoutPriorityDefaultLow, otherwise the fitting width will occasionally be 64.
2014-09-29 18:23:33 +02:00
Allan Odgaard
f079f8a917 Avoid redeclaration of “all views” dictionary 2014-09-29 16:21:05 +02:00
Allan Odgaard
d1dd666fbd Remove remains from cell-based find results outline view 2014-09-29 15:12:23 +02:00
Allan Odgaard
10e370319d Use system’s tool tip font for our custom tool tips 2014-09-29 13:47:32 +02:00
Allan Odgaard
a90acdcbe6 Use convenience methods to setup header/status bar backgrounds 2014-09-29 13:24:52 +02:00
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