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

Component refactor #587

Closed
wants to merge 21 commits into from
Closed

Component refactor #587

wants to merge 21 commits into from

Conversation

mbfraga
Copy link
Collaborator

@mbfraga mbfraga commented May 17, 2021

Summary / How this PR fixes the problem?

Large refactor meant to separate view / model.

An architecture for a model was built up.

Some details:

  1. Goo.Canvas items are composed to the model items.
  2. Components are meant to be largely immutable. When values are changed, the component should be replaced. This guarantess that the history of an item is kept.
  3. I'll think of more...

Steps to Test

When disabled, make sure everything in Akira works correctly. Then enable the new components.

To enable: set Window.vala 's use_new_component to true and rebuild.

Known Issues / Things To Do

WIP, a lot of things to do.

mbfraga added 5 commits May 15, 2021 01:38
Components are relatively fast now, while still retaining some level
of ease of mutation.
This required some core changes to goo.canvasitems (wrapping).
@mbfraga mbfraga force-pushed the wip/component_refactor branch from f236fc6 to e14f3d3 Compare May 17, 2021 01:45
@mbfraga mbfraga force-pushed the wip/component_refactor branch from 562b9b1 to 0779b34 Compare May 21, 2021 03:00
@mbfraga mbfraga force-pushed the wip/component_refactor branch from 0779b34 to 6656d50 Compare May 21, 2021 03:00
@mbfraga mbfraga force-pushed the wip/component_refactor branch from 20145ca to bbffc15 Compare June 26, 2021 08:39
mbfraga added 5 commits June 27, 2021 22:44
Copy now uses a Model that enables easy recursion.

Make marking dirty a bit less manual, and add more events to the
model instead of items.
Also implemented group rotation (with multi-selection as well.
@mbfraga
Copy link
Collaborator Author

mbfraga commented Jul 29, 2021

No longer relevant.

@mbfraga mbfraga closed this Jul 29, 2021
@Alecaddd Alecaddd deleted the wip/component_refactor branch July 31, 2021 19:16
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