------------------------------------------ Display Strings for Method Execution Times RiverWare 5.3 Development -- 2-18-2010 In source file: Sim/Method.cpp ... ------------------------------------------ // static public QString Method::executionTimeDisplayStr (ExecTime et, bool forToolTip /*=false*/) { // NOTE: These strings should NOT be used for model file serialization. // We may want to change these strings, and that shouldn't break the // loading of previously saved model files. switch (et) { case STD_DISPATCH: { static const QString st0 ("Default Execution Time"); return (st0); // No distinction for tooltip. //--------->> } case OLAM_NEVER: { static const QString st1 ("Never"); static const QString st1t ("Do not ever execute the method."); return (forToolTip ? st1t : st1); //----------------------------->> } case OLAM_BEG_BLOCK_AND_EXEC: { static const QString st2 ("Each timestep after simulation"); static const QString st2t ("Execute the method after each " "timestep's simulation is complete and as dependencies change."); return (forToolTip ? st2t : st2); //----------------------------->> } case OLAM_BEG_RUN: { static const QString st3 ("Beg. of run, once per timestep"); static const QString st3t ( "Execute the method once per timestep at the beginning of the run."); return (forToolTip ? st3t : st3); //----------------------------->> } case OLAM_PRE_BLOCK: { static const QString st4 ("Beg. of timestep, once per timestep"); static const QString st4t ( "Execute the method once before each timestep's simulation."); return (forToolTip ? st4t : st4); //----------------------------->> } case OLAM_PRE_BLOCK_AND_EXEC: { static const QString st5 ("Beg. of timestep"); static const QString st5t ( "Execute the method before each timestep's simulation and as " "dependencies change."); return (forToolTip ? st5t : st5); //----------------------------->> } } const QString stX = QString ("EXEC_TIME_??? %1") .arg ((int) et); return (stX); } //--- (end) ---