SPF-OST / pytrnsys_gui

Graphical user interface for pytrnsys
https://pytrnsys.readthedocs.io
GNU General Public License v3.0
3 stars 4 forks source link

Improve implementation of dropEvent for adding objects to the diagram #386

Open ahobeost opened 1 year ago

ahobeost commented 1 year ago

trnsysGUI/diagram/view.py

Firstly, the naming or structure of this directory needs to be improved (diagram), as the svg library from which we select components is also in this directory, Next, the name of this file and its class isn't optimal, as it mainly deals with events occurring within the diagram.

The main focus of this issue is the implementation of the dropEvent method. This could be simplified to maybe a factory pattern (more investigation required).