11-22-2017 Slot Viewer: (a) Select Slots when added to Viewer; (b) Fixes to Sel Stats Bug Number: n/a Release notes (y/n): no, mostly new development fixes. For Release Nums: 7.2 This commit changes in these to areas: (A) Indicated Slots added to Slot Viewer by selecting those Slots . (B) Fixes to Selection Statistics: (1) Slot Count and (2) Update when navigating with arrow keys. (A) Indicated Slots added to Slot Viewer by selecting those Slots (display columns). This was a desirable feature identified yesterday in a feature review meeting. See notes here: http://cadswes2.colorado.edu/~philw/2017/ObjSlotViewerRev/ObjSlotViewerRevisions-Analysis.html The desirable behavior had been coded, but the effect of selecting the slots being added was being wiped out by subsequent selection operations. The desirable behavior was restored by eliminating these subsequent selection operations, including some that were redundantly setting the QTableView's "current cell". Note: If slots being added to the Slot Viewer are already shown in that dialog, those slots remain in their display column, but the dialog is scrolled to those slots, and those slots become selected. Note: This slot selection behavior does not occur the first time the Slot Viewer is shown (i.e. when first showing a slot of a type which does get shown in the Slot Viewer). (B) Fixes to Selection Statistics (B1) Slot Count defect. The number of slots represented in the slot/ timestep cell selection was not being computed properly. One consequence of this was that when cells from two slots were selected, the name of the FIRST slot was presented INSTEAD OF showing the NUMBER OF selected slots, as intended. (B2) Update when navigating with arrow keys. When pressing any of the arrow keys, the adjacent cell (adjacent to the single "current" cell) becomes selected. However, when doing so, the selection statistics lines became blank. This is now appropriately updated with the current cell's value. This has more meaning than it had, with the recent introduction of the Time-Integrated Sum for rate unit type values (e.g. Flow or Power). ---