Commit Graph

1091 Commits

Author SHA1 Message Date
Allan Odgaard
032cb19320 Use proper cursor image for output view right of text
Fixes #763.
2013-02-05 20:59:53 +01:00
Allan Odgaard
1fb7d8a6d3 Fix infinite loop for documents outside project folder
Fixes issue #557 (part two).
2013-02-05 15:26:31 +01:00
Allan Odgaard
759e4d9720 Introduce path::is_child(child, parent)
This also returns true when ‘child == parent’ so perhaps a better name should be chosen for this function.
2013-02-05 15:25:45 +01:00
Allan Odgaard
b2ae4196c3 Update database of contributor email hashes 2013-02-05 15:05:26 +01:00
Allan Odgaard
c182d08c5d Only access SCM info when available
Fixes #756.
v2.0-alpha.9365
2013-02-05 09:45:11 +01:00
Allan Odgaard
3ec573931d Checkin release notes v2.0-alpha.9363 2013-02-05 09:02:04 +01:00
Allan Odgaard
674b171a90 Only check for bundle updates every 4th hour
This should decrease my AWS bill with $4-5/month :)
2013-02-05 08:51:59 +01:00
Allan Odgaard
20641c50c3 Disable SCM badges for non-local paths
Also disable it for user’s home folder and root of file system — having to monitor these folders is too expensive.
2013-02-05 08:51:59 +01:00
Michael Sheets
a6f0b75d4c Use correct syntax for including local headers 2013-02-05 08:36:04 +01:00
Allan Odgaard
ae5a7738f6 Retain shared info during async SCM update
Fixes #752.
2013-02-05 08:36:04 +01:00
Joachim Mårtensson
8de62bbc85 Don't mutate shared themes 2013-02-04 20:44:21 +01:00
Allan Odgaard
606a0e484e Checkin release notes v2.0-alpha.9361 2013-02-04 19:38:32 +01:00
Allan Odgaard
f99ca2408d Show non-existing paths with SCM status
This means deleted files which haven’t yet been committed show up in the file browser.
2013-02-04 19:38:32 +01:00
Allan Odgaard
6f076e0895 Remove public initializer
This is only to ensure everyone goes through the class method, which is easier to search for (constructing an FSItem from a URL is a little expensive so we wish to get rid of it where possible).
2013-02-04 19:38:32 +01:00
Allan Odgaard
e42d84fa4c Missing files still get SCM badge 2013-02-04 19:38:32 +01:00
Allan Odgaard
748558c5d3 SCM API: Update OakFileIconImage
Since the created image is a “dumb” object that can’t provoke redrawing itself, we require that SCM info is already cached for the repository containing the file for which we are creating an image. If not, there will be no SCM badge, so most users of this API should setup their own SCM info and recreate the image when SCM status changes.
2013-02-04 19:38:32 +01:00
Allan Odgaard
6d022be813 Rework file browser directory source
We now use the new SCM callback and in general things are much simpler, cleaner, and probably faster.
2013-02-04 19:38:31 +01:00
Allan Odgaard
a7a4699643 Improve caching of SCM shared info
When requesting SCM info for a path, we now always return the cached info for the first parent of the path, but if the first parent of the path is not the direct parent, we do a more thorough search (which involve disk access) in a background thread.

The latter is required because we may have nested repositories. E.g. asking for SCM info for /path/to/project/submodule/file will initially return the root project’s cached SCM info (if the submodule info hasn’t yet been added to the cache) but will then later invoke the callback with the submodule’s SCM info.
2013-02-04 19:38:31 +01:00
Allan Odgaard
dae91b7159 Move instance data to implementation 2013-02-04 19:38:31 +01:00
Allan Odgaard
4712515e8b Allow passing a window to OakSetupApplicationWithView
Should rename the function to reflect this new flexibility.
2013-02-04 19:38:31 +01:00
Allan Odgaard
8265a469d8 Improve locating Find framework resources
The FFWindowController class is an implementation detail where the Find class is the public class, so depending on the latter should make the code safe against potential rewrites.
2013-02-04 19:38:31 +01:00
Allan Odgaard
cef6a74df2 Make code safe against ‘nil’ clipboard entries
Should never happen in practice though.
2013-02-04 19:38:30 +01:00
Allan Odgaard
f57b06fa2c Move instance variables to implementation 2013-02-04 19:38:00 +01:00
Allan Odgaard
b6ba88cda5 Rework about window
We now perform the content hash (to see if release notes have changed) on a background thread.
2013-02-03 10:48:46 +01:00
Allan Odgaard
af67a1a6f6 Check version of installed mate in background 2013-02-03 10:48:45 +01:00
Allan Odgaard
216bcb61ac mate: don’t disable untitled document when called w/o files 2013-02-03 10:48:44 +01:00
Allan Odgaard
84587dccc9 mate: disable untitled document via user defaults
This is instead of setting an environment variable. Since there already is a user defaults setting for whether or not we want an untitled document created at startup, it seems nicer to have mate set that, instead of effectively introducing an alias for the setting.
2013-02-03 10:48:43 +01:00
Allan Odgaard
d5b3b07f32 Disable SCM status when app is inactive 2013-02-03 10:48:41 +01:00
Allan Odgaard
2bfe82fae4 Remove the AppStartup delegate
This temporary delegate was primarily used to ensure no message “slipped through” back when a license key was mandatory to run the alpha.
2013-02-03 10:48:40 +01:00
Allan Odgaard
0fdd04b6d3 Add SCM API for disabling updates
This is to be used when the application is in the background. Rather than completely disable updates, it might perhaps be better simply to increase the delay used to throttle updates.
2013-02-03 10:48:39 +01:00
Allan Odgaard
e599bb7379 Introduce scm::ng::root_for_path
Also change SCM implementation so that it doesn’t use objects with automatic storage, as the objects may be accessed from threads, which may run after objects with automatic storage has been destroyed.
2013-02-03 10:48:38 +01:00
Allan Odgaard
ef8e1a7597 Only set TM_SCM_BRANCH when there is a branch 2013-02-03 10:48:37 +01:00
Allan Odgaard
521dd59f14 Don’t use automatic storage in threaded code 2013-02-03 10:48:35 +01:00
Allan Odgaard
151c800239 File icon images now default to ‘existing’ 2013-02-03 10:48:34 +01:00
Allan Odgaard
044cd72c10 Use system icons for Open With menu
Previously we used our own icon image class which support SCM status, custom images for known file types, and more. This is however is unnecessary, as we know the Open With menu contains only applications, and each should use their standard icon.

This should also fix issue #510, although the issue was never diagnosed beyond git stalling while trying to get SCM status for the application icons in this menu.
2013-02-03 10:48:33 +01:00
Allan Odgaard
638e0bc601 Show source in file chooser title 2013-02-03 10:48:32 +01:00
Allan Odgaard
eaf5f78681 Closing file chooser disposes its documents
Previously it would hold onto the documents shown, which is not only wasteful, but could mean that it would retain a no longer used untitled document (and thus occupying an untitled document counter).
2013-02-03 10:48:31 +01:00
Allan Odgaard
bfa3db1d79 Disallow selecting group cells in file browser
Group cells are presently only used for the SCM status data source.
2013-02-03 10:48:29 +01:00
Allan Odgaard
7e527bd861 When a file is selected, save folder defaults to its parent
This is only when saving untitled documents.

Closes #748.
2013-02-03 10:48:28 +01:00
Allan Odgaard
837bdf537b Reset mouse hover state when leaving view
The close buttons in the file browser could be stuck on their “hover” state if quickly moving mouse outside the bounds of the outline view.
2013-02-03 10:48:27 +01:00
Allan Odgaard
b51ed151d6 Auto-enable Back / Forward menu items 2013-02-03 10:48:26 +01:00
Allan Odgaard
78c5114ac6 Remove hardcoded shortcuts from keyDown:
These keys are also in the menu so no need to special-case them (unlike the other keys handled).
2013-02-03 10:47:24 +01:00
Allan Odgaard
8c43974265 Add (async) scope attribute collecting to DocumentController
This is for attr.project.XXX and attr.scm.XXX, although the latter is also provided by scm::info_t.

With this commit, the file::path_attributes function no longer collect this information.
2013-02-02 11:14:35 +01:00
Allan Odgaard
0d187e6694 Remove SCM variables from file::variables 2013-02-02 11:14:35 +01:00
Allan Odgaard
540bf5daf1 Remove SCM variables from document_t 2013-02-02 11:14:35 +01:00
Allan Odgaard
c4d6c624e8 Limit disk access done by DocumentController 2013-02-02 11:14:34 +01:00
Allan Odgaard
d29337a754 SCM API: Update SCM data source 2013-02-02 10:51:59 +01:00
Allan Odgaard
a470ee8ba8 SCM API: Update file chooser 2013-02-02 10:51:59 +01:00
Allan Odgaard
f1ff38f929 Add new SCM API
This won’t perform any disk access on main thread. The previous API would check for the SCM-metadata directories on the main thread and also obtain the initial status and branch during creation.
2013-02-02 10:51:59 +01:00
Allan Odgaard
4138c2a3d5 Use data source’s root item’s title in file browser header
This is instead of simply asking for the root URL’s display name, as the data source can provide a more specialized display name.
2013-02-02 10:34:23 +01:00