RPL Disp Settings in Model File: Preparation: Encapsulating RplDisplaySettings Bug Number: n/a Release notes (y/n): no (not this detail) For Release Nums: 7.1 Task: "Move the RPL display settings from the user-account configuration (registry) into the model file". (This is one part of USACE-SWD 14). Some project reference images and data files: http://cadswes2.colorado.edu/~philw/2017/CoeSwd14/Ref/RplDisplaySettings.png http://cadswes2.colorado.edu/~philw/2017/CoeSwd14/Ref/RplLayoutDlg-Registry-reg.txt http://cadswes2.colorado.edu/~philw/2017/CoeSwd14/Ref/ExportRplDisplaySettings.txt This commit is preparation for this change. There are no functional changes. The relevant configuration data had been spread between the RplDlgMgr (font and color) and RplDisplaySettingsDlg (a dialog class! -- LineBreak objects). The latter was quite something -- we won't want the Sim library reaching up into an actual dialog class for that data. [I did discuss these issues with Patrick]. This commit adds this new POD class: QtRpl/RplDisplaySettings. (I decided against putting it in the Rpl library because it depends on VisualToken). This takes over the management of the LineBreak objects, as well as the RPL "Text" colors and RPL Font. The header comment is copied below. Also changed: The Rpl ColorType enumerated type was moved from RplDisplaySettingsDlg to the Rpl namespace (defined in Rpl/RplTypes). //------------------------------------------------------------------------ // $Id: QtRpl/RplDisplaySettings.hpp 2017/04/13 14:31:34 philw $ // RPL Display Settings Data: Font / LineBreaks / RPL Text Colors [RW 7.1] //------------------------------------------------------------------------ // // class RplDisplaySettings // // This class encapsulates the following three sorts of configurable // global RPL settings: // // (1) RPL Frame User Font // (2) RPL "Text Colors" (but not just text colors) // (3) RPL LineBreak objects. // // A single instance of this class lives in QtRpl/RplDlgMgr. // // This class provides the following capabilities: // (1) Applying Factory Default LineBreaks and Colors. // (2) User Account Based Persistence (registry) // (3) Old (non-XML) Legacy File Export/Import (doesn't include colors). // (4) New (XML) Serialization (used for model-based persistence // and New File Export/Import. [TO DO -- Phil, 4-13-2017]. //---