JonOfScience / etym_tree_python

A python project designed to allow input, display, and tracking of the vocabulary of a constructed language.
0 stars 0 forks source link

REF: Split controller logic in project_ui.py (View) into a separate Controller. #117

Open JonOfScience opened 1 year ago

JonOfScience commented 1 year ago

Possibly ongoing forever...

project_ui.py is intended to be a View component but contains both View and Controller logic as such is tightly coupled to Lexicon (and even Word) level logic in a way that was never intended.

The ProjectUIController (static) class already exists.

For each point of coupling: Step 1: Copy controller level logic into separate method within ProjectWindow Step 2: Redirect original code to new method Step 3: Remove controller level logic from original location Step 4: Copy separated method into ProjectUIController Step 5: Redirect method call to target ProjectUIController method Step 6: Remove separated method

Tasks: