Addintional MVC-Model model_Info
The rattleCAD GUI needs a view to share values that does not belong to the geometry model. These non-geometry values are e.g. information about the current project.
- Project Name
- last update …
Therefore a new model-namespace is created and will be updated by the MVC-control.
A Middle-Man procedure found
see a definition here: https://sourcemaking.com/refactoring/smells/middle-man
In this case the procedure get_projectDICT will be removed and its call of
will be transfered to updateModel.
Introduce a Debug-Option for later comparison
Target of the current refactoring steps is to get a situation to change between the current geometry-Model
bikeGeometry ... referenced by myGUI::modelAdapter::AdapterBikeGeometry
and the future model
bikeFacade ... referenced by myGUI::modelAdapter::AdapterBikeFacade
In this case I implement a feature in the GUI to export the content of the project dictionary (projectDICT). This will help me to compare a future Refactoring-Version of rattleCAD with this one. This feature will be removed from rattleCAD when the refactoring process is closed.
This representation of the project dictionary can be found:
Menu Bar: Info -> Info - Project
Extend the interface dictionary
The rattleCAD GUI requires information about the size of the bicycle frame to be displayed. Therefore a new key is introduced in the dictionary.
BoundingBox Summary ...
Found a central procedure for the model-namespaces
There was a procedure
called by sub-namespaces of
Therefore this procedure was moved to
and all references to the previous procedure are referenced to the new on now.