Fix: Plot Pages created in OutputManager not saved in the model file [5902] Bug Number: 5902 Release notes (y/n): Yes For Release Nums: 7.0.3 Gnats 5902: Plot Pages created in the Output Manager are not saved in the model file. Original Title (Greg Mueller, TVA): Cannot Copy or Add new Plots to existing NonPower model. With the change, in RiverWare 7.0, of the editing of PlotPages -- now using an 'editor' variant of the PlotDialog instead of the old (and very limited) Plot Page configuration dialog -- the internal 'device state' of PlotPages created from the Output Manager dialog prevented them from being saved in model files. Unlike the editor dialog of other output devices, the new PlotPage editor dialog is not a subclass of OutputConfigDlg -- a dialog base class which maintains an output device edit state, in part to cause "edit" icons to appear with the device items in the Output Manager dialog. The dialog now used as the "configuration dialog" for PlotPages ... i.e. the Plot Editor ... has other, unrelated mechanisms for maintaining the edit state. The problem was addressed at two levels: (1) In the Output Manager dialog (Q3GUI/OutputManager), when creating a new PlotPage instance, its initial device state is set to 'IS_ACCEPTED' rather than 'IS_BEING_CONFIGURED'. (2) In cwOutputDevice (the base class for Sim/PlotPageInfo), as a SAFETY, in method cwOutputDevice::setState(const DeviceState, bool sendCB), if the device is a PlotPage (DeviceTypeID CW_OD_PLOTPAGE) and the new DeviceState is 'IS_BEING_CONFIGURED', the 'IS_ACCEPTED' DeviceState value is instead set on the PlotPage. These changes result in proper behavior of method cwOutputDeviceMgr::dump (cwostream&). This image illustrates the OutputManager's primary use of the cwOutputDevice::DeviceState value (and it's NON-USE for PlotPages) -- i.e controlling the appearance of the edit ICON in the output device list: http://cadswes2.colorado.edu/~philw/2017/bugs/5902/DevStateIcon.png ---