bkloppenborg / simtoi

The SImulation and Modeling Tool for Optical Interferometry
GNU General Public License v3.0
7 stars 6 forks source link

Size and scale fields in GUI #99

Open therob762 opened 9 years ago

therob762 commented 9 years ago

The size and scale fields in the GUI do not update with values set in the loaded .json file.

bkloppenborg commented 9 years ago

This should be fairly straightforward to fix. You would need modify the gui_main::on_mdiArea_subWindowActivated() function to query the active widget for its size and scale then update the boxes in the GUI (this->spinModelSize and this->spinModelScale) with the new values.

I should note that in my gui_overhaul branch the window size and scale fields will no longer be displayed on the main window as I haven't found them that useful in my work. I could add this information back in somewhere, but I presently have no intention of doing so unless someone makes a really compelling argument as to how often they use this information.

bkloppenborg commented 9 years ago

Size and scale boxes were removed in b3128c022d4d2e3dab9d8e81f6c8737e30e7de69 thus the proposed fix above is no longer applicable. I think we could modify the CGLWidget to be a stand-alone GUI element which also includes this information below the model region.