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

Rethink MVVM architecture #942

Open
rdbende opened this issue Jul 14, 2024 · 1 comment
Open

Rethink MVVM architecture #942

rdbende opened this issue Jul 14, 2024 · 1 comment

Comments

@rdbende
Copy link
Collaborator

rdbende commented Jul 14, 2024

Cozy uses the model-view-viewmodel architecture which is probably the best one for this kind of application. However, the implementation basically duplicates the "view" part of it as there is the actual Blueprint file, and also a Python class for it.

My intention is to change this by dropping the view classes, as well as the architecture for it (the EventSender and the Observer classes), and use GObject property bindings and signals throughout the application. This way the view model can be bound directly from the UI definition, and there's no need for an intermediary layer.

@rdbende
Copy link
Collaborator Author

rdbende commented Jul 14, 2024

Related to #844

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

No branches or pull requests

1 participant