Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added initial support for projects #2685

Merged
merged 7 commits into from
Dec 4, 2019
Merged

Added initial support for projects #2685

merged 7 commits into from
Dec 4, 2019

Conversation

bjorn
Copy link
Member

@bjorn bjorn commented Nov 27, 2019

The initial project is simply a list of folders. Each folder is scanned recursively for files that seem to be one of the supported formats (based on their file extension).

Since there's no automatic refresh at the moment, the Project menu contains an action to trigger the refresh manually.

The last open project is automatically loaded on startup.

There's no way yet to remove folders from a project. Need to edit the file by hand for now.

Issue #1665.

image

bjorn added 3 commits December 4, 2019 11:37
The initial project is simply a list of folders. Each folder is scanned
recursively for files that seem to be one of the supported formats
(based on their file extension).

Since there's no automatic refresh at the moment, the Project menu
contains an action to trigger the refresh manually.

The last open project is automatically loaded on startup.

There's no way yet to remove folders from a project. Need to edit the
file by hand for now.

Issue #1665
* Added Recent Projects menu
* Added action to remove a folder from the project
* Added small tool bar at bottom of Project view
* Don't reset project model when adding/removing folders
* Improved suggested file name and location for first project

Issue #1665
It looks a little messy and adds no new functionality.

Also prevented global project actions from being visible in the context
menu for subdirectories and files.
@bjorn bjorn force-pushed the wip/tiled-projects branch from e8e83d6 to 109a224 Compare December 4, 2019 10:54
bjorn added 4 commits December 4, 2019 12:59
Files can now be dragged onto Tiled to open them, and tilesets can be
dragged into the Tileset view to add them to the current map.

With this the Project view essentially fully replaces the Maps view.
It is obsoleted by the Project view.
The model seems a better fit for the scanning, especially taking into
account future asynchronous scanning.

Also, the model now keeps track of the name filter and updates it as
appropriate when file formats get added or removed. With a timer, to
prevent excessive scanning on startup and after reloading of scripts.
This way it does not block the UI, which is needed since the scanning
can take a bit for large directories.
@bjorn bjorn force-pushed the wip/tiled-projects branch from e7ab8b3 to 4e26ce2 Compare December 4, 2019 20:36
@bjorn bjorn merged commit bbf0975 into master Dec 4, 2019
@bjorn bjorn deleted the wip/tiled-projects branch December 4, 2019 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant