cozy icon indicating copy to clipboard operation
cozy copied to clipboard

Rethink MVVM architecture

Open rdbende opened this issue 1 year ago • 1 comments

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 avatar Jul 14 '24 18:07 rdbende

Related to #844

rdbende avatar Jul 14 '24 18:07 rdbende