Add Group By ALL to LTM

.. can see the total / average or bests for the date range selected

NOTE: Data Table mode is currently a bit broken .. need to revisit it
      and fix it up, not just for ALL mode but also for Estimates
This commit is contained in:
Mark Liversedge
2014-06-19 10:40:48 +01:00
parent 9f59a8f816
commit dec191eb75
4 changed files with 18 additions and 4 deletions

View File

@@ -127,7 +127,8 @@ LTMWindow::LTMWindow(Context *context) :
<< tr("Weeks")
<< tr("Months")
<< tr("Years")
<< tr("Time Of Day");
<< tr("Time Of Day")
<< tr("All");
rGroupBy->setStrings(strings);
rGroupBy->setValue(0);
@@ -925,6 +926,9 @@ LTMWindow::refreshDataTable()
case LTM_TOD :
summary += tr("time of day");
break;
case LTM_ALL :
summary += tr("All");
break;
}
summary += "</h3><p>";
@@ -1072,8 +1076,10 @@ LTMWindow::refreshDataTable()
// fill in the remainder if data doesn't extend to
// the period we are summarising
for (int n=0; n < aggregates[0].x.count(); n++) {
aggregates[0].x[n] = n;
if (settings.groupBy != LTM_ALL) {
for (int n=0; n < aggregates[0].x.count(); n++) {
aggregates[0].x[n] = n;
}
}
// formatting ...