mattdoiron / idfplus

IDF+ is an enhanced, cross-platform editor for EnergyPlus input files.
GNU General Public License v3.0
14 stars 1 forks source link

Selections do not update correctly after CRUD action undo/redo #55

Closed mattdoiron closed 4 years ago

mattdoiron commented 4 years ago

Selection does not correctly re-highlight items or ranges the way it would be expected to. This has to do with the way the CRUD commands store info about the selections when they are created.

mattdoiron commented 4 years ago

Good progress re #11. Need to test more and get it working when view is transposed.

→ <<cset 4a82c712c777>>

mattdoiron commented 4 years ago

Partially addresses #11. Works on transposed or non-transposed modes, but not when mode is changed in between redo/undo.

→ <<cset b511035c7435>>

mattdoiron commented 4 years ago

Partially addresses #11. Seems to work well when changing obj classes, transposing etc! Selection is not always right when transposing. Should now preserve selection across transpose action. Need to test other CRUD actions.

→ <<cset a3266dbb4715>>

mattdoiron commented 4 years ago

This along with 4a82c71, b511035 and a3266db fixes #11. Works for all cases I could test! Also split refView updater into its own function.

→ <<cset 5f2da4a3f8f8>>