make weight.h forward declaration
diagram_viewer qt version is finally done