|
From: | John W. Eaton |
Subject: | model/view design question |
Date: | Fri, 28 Jun 2019 18:37:46 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 |
Given that there could be multiple view objects that use the same model, maybe they should not be owned by the same parent object? But if not, then who should own the model data (or at least the model objects that can access the data from the interpreter)?
Maybe these model classes should be stored in the gui application object or the QObject adapter class that manages the Octave interpreter? Then any number of views could (in theory, anyway) be attached to them and the would be independent of any one particular view.
OTOH, if we know that we will only ever have one view of these models, then it might be simpler to package them together?
Either way, it seems like it would be good to fix things so that we are doing things consistently for all these model/view classes.
Comments and suggestions welcome. jwe
[Prev in Thread] | Current Thread | [Next in Thread] |