I haven't thoroughly tested the "rewrite" code as I don't understand the typcial workflow, but purely looking at the code, there doesn't seem to be any reason why rewrite_form, left_graph, and right_graph should be owned by MainWindow rather than by the only functions in which they're used.
I haven't thoroughly tested the "rewrite" code as I don't understand the typcial workflow, but purely looking at the code, there doesn't seem to be any reason why
rewrite_form
,left_graph
, andright_graph
should be owned byMainWindow
rather than by the only functions in which they're used.