Skip to content

Removed dependencies in certain document-related classes#2073

Open
Lehonti wants to merge 5 commits intoPintaProject:masterfrom
Lehonti:improvement1
Open

Removed dependencies in certain document-related classes#2073
Lehonti wants to merge 5 commits intoPintaProject:masterfrom
Lehonti:improvement1

Conversation

@Lehonti
Copy link
Copy Markdown
Contributor

@Lehonti Lehonti commented Mar 24, 2026

Now the removed dependencies are passed as arguments to methods.

This comes at the cost of introducing references to PintaCore in several places, which does not re-introduce them where they were before (which would trash our previous work): the dependencies are being obtained and coordinated at a more 'outer' layer of the code.

Notice that some of the places where the PintaCore references were introduced are tools (as in TextTool, PencilTool, ...). I can envision that being refactored so that the tools use services instead of PintaCore references.

The original goal was removing all dependencies (other than Document) from DocumentWorkspace, but it got quite large.

@cameronwhite
Copy link
Copy Markdown
Member

There are likely going to be some merge conflicts from the DocumentWorkspace changes in #2046 so I'll wait to review this PR until that one lands

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.

2 participants