Open Slot Dialogs Initialization Settings: Sel States / Notes / Description [6] Bug Number: n/a Release notes (y/n): no (not this commit, but close). For Release Nums: 6.8 Squash merge of early development. This feature is actually provisionally completed, but needs a full code review and more testing. See screenshots: http://cadswes2.colorado.edu/~philw/2015/SlotDlg/Defaults/Im1/SlotDlg2.png http://cadswes2.colorado.edu/~philw/2015/SlotDlg/Defaults/Im1/SlotDlgView.png http://cadswes2.colorado.edu/~philw/2015/SlotDlg/Defaults/Im1/WsSlotsMenu.png http://cadswes2.colorado.edu/~philw/2015/SlotDlg/Defaults/Im1/DfltsDlg.png Previously, these Slot Dialog settings had effectively been cleared each time the Slot Dialog was re-shown (closed and re-opened): (1) The Selection Statistic Panel was hidden. (2) The "Notes" column was hidden. (3) The Description Panel was hidden. With this enhancement, there is a global setting, saved with the RiverWare Model, which provides defaults applied each time a slot dialog is re-created. The "Notes" and Description Panel settings have an option to show the feature only if the Slot contains notes or a description. Also, for initial Description Panel visibility, there are separate settings for Slots on Data Objects and Other Slots. Note that, currently, Selection Statistics are not supported (at all) on Table Slots (including Table Series Slots). Also, Notes are supported only on Series Slots. The new configuration dialog is currently accessible from (only) the Workspace's Workspace >> Slots submenu. The main purpose of that dialog is to set the global initialization settings. But it also provides a push button to immediately apply those settings to all currently-open Slot dialogs. Q3GUI/SlotDlgDefaultsDlg.hpp Q3GUI/SlotDlgDefaultsDlg.cpp Q3GUI/SlotDialogDefaultsWidgets.ui The SimWorkspace maintains a single instance of the following new configuration data structure: Sim/SlotDlgDefaults.hpp Sim/SlotDlgDefaults.cpp enum ShowState : char { Show_Off = '0', // off (zero) Show_On = '1', // on (one) Show_Present = 'P' // show if relevant values present }; ShowState _showSelStats; // Show Selection Statistics (on or off) ShowState _showNotes; // Show Notes ShowState _showDescrip_DataObj; // Show Description (Data Objects) ShowState _showDescrip_SimObj; // Show Description (Other Objects) Serialization example (XML): ---