Truckee 1.7: Muliple Run Histories in Model Info dialog [1] Bug Number: n/a Release notes (y/n): no For Release Nums: 7.1 See image: http://cadswes2.colorado.edu/~philw/2017/Truckee1p7/2017-02-01/ModelInfoDlg1.png Changes to the Model Info dialog: (1) "Save History" list changed to single line, as only information about the last "save" had been presented. (2) Addition of "Run History" list, with the ability to limit the number of records to be saved in the model file, and a "Clear Run History" operation supporting the deletion of ALL run history records or only those for failed runs. (3) Simplification of the Comment editor. The edit is now immediately applied; there are no longer OK/Apply/Reset/Cancel buttons. In their place is a "Close" button. -------- Model Info Dialog class: Q3GUI/FileInfoDlg.cpp Q3GUI/FileInfoDlg.hpp Q3GUI/FileInfoWidgets.ui Sim/SimWS data model: // model run session report info int _maxModelRunHistoryRecs; QList _modelRunHistoryRecList; RunHistoryRecord _activeModelRunHistoryRec; int maxModelRunHistoryRecs() const { return _maxModelRunHistoryRecs; } void setMaxModelRunHistoryRecs (int cnt); void startModelRunHistoryRec(); void completeModelRunHistoryRec (RunState doneState)* void appendModelRunHistoryRec (const RunHistoryRecord&); void clearModelRunHistoryRecs (bool onlyUnsuccessful=false); QList getModelRunHistoryRecs_forward (int maxRecs) const; QList getModelRunHistoryRecs_reverse (int maxRecs) const; *Generates new callback: WS_RUN_HISTORY_REC_COMPLETED See also revised RunHistoryRecord definition in Sim/ModelInfo and support in Sim/RunInfo. -------- Sample model file serialization (Tcl). $ws.Model.RunHistoryParam MaxModelRunHistoryRecs 10 $ws.Model.RunHistoryRecord 1 0 {RiverWare 7.1} {philw} \ {Simulation} {02-01-2017 20:16:05} {02-01-2017 20:16:06} {Finished} $ws.Model.RunHistoryRecord 1 1 {RiverWare 7.1} {philw} \ {Simulation} {02-01-2017 20:16:08} {02-01-2017 20:16:09} {Finished} $ws.Model.RunHistoryRecord 1 2 {RiverWare 7.1} {philw} \ {Simulation} {02-01-2017 20:17:27} {02-01-2017 20:17:29} {Aborted} --------