OutCanv in WS: OutputCanvasConfig software engineering revisions [Phil] Bug Number: n/a Release notes (y/n): no For Release Nums: 7.1 The following modifications were makde to the Sim/OutputCanvasConfig class: (1) The OutputCanvasNode now fully encapsulates the following. This was made possible with the addition of a copy constructor. (a) Maintenance of _instanceNum fields. This field is now 'const'. (b) Copying of the three workspace coordinate fields (three QPointF members). (2) Changed OutputCanvasConfig "copy workspace coordinates" from a two-parameter static method, to a single-parameter mutator method. OLD: static void copyWorkspaceCoordinates(OutputCanvasConfig*, OutputCanvasConfig*); NEW: void copyWorkspaceCoordinatesFrom (const OutputCanvasConfig*); (3) Added 'const' to several accessor methods. (4) Resolved the few compilation warnings in this module. (5) Recoded the following two methods to avoid the need to build a unified base-class OutputCanvasNode list. Each of these now makes use of a templated local helper function (respectively defined above each of these two methods). (a) void OutputCanvasConfig::copyWorkspaceCoordinatesFrom ( const OutputCanvasConfig* fromConfig); (b) OutputCanvasNode* OutputCanvasConfig::findNodeByInstance( int instanceNum) const; ... these are the helper function declarations: // local function template static void copyWorkspaceCoordinatesToNodeList ( const OutputCanvasConfig* fromConfig, const QList& toNodeList); // local function template static OutputCanvasNode* findNodeByInstanceInNodeList ( const int instanceNum, const QList& nodeList); ---