Set SCT Aggregation Summary Functions -- "RiverWare Default" Phil Weinstein, CADSWES, edit 5-11-2011 The initial default setting (which can be set by clicking the "Restore RiverWare Default" button) is defined in code, in this module: ------------------------------ QtSCT/SctSumFuncAssignSpec.cpp ------------------------------ // The intial default case, applied to Slots not matching any of the Unit // Type or Slot Name (Part) filters in the sequence of filter rows. // static const SctSumFunc DEFAULT_SUMFUNC (SCT_SUMFUNC_LAST); In method: // static const SctSumFuncAssignSpec& SctSumFuncAssignSpec::factoryValueRef() { // Returns a const reference to a static SctSumFuncAssignSpec // instance having the "Factory" default settings. ... ... ... Item lastItem (true); // last item lastItem.setSumFuncSpec (SctSumFuncSpec (DEFAULT_SUMFUNC)); QList itemList; itemList << Item (FLOW, SCT_SUMFUNC_SUM) // 1 << Item (VOLUME, SCT_SUMFUNC_AVE) // 2 << lastItem; // 3 ... ... ... } --------------------- SctSumFuncSpec Values --------------------- The Summary Functions are defined file: SctSumFuncSpec.hpp. Ordinal ("Nth") values are constructed with two paremeters: SctSumFuncSpec (SCT_SUMFUNC_NTH, n); ... where 'n' is an int. typedef enum { SCT_SUMFUNC_UND = 0, SCT_SUMFUNC_FIRST, SCT_SUMFUNC_NTH, SCT_SUMFUNC_LAST, SCT_SUMFUNC_SUM, SCT_SUMFUNC_AVE, // mean SCT_SUMFUNC_MED, // median SCT_SUMFUNC_MIN, SCT_SUMFUNC_MAX } SctSumFunc; //---