projects
/
harbour-pedalo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new graphs
[harbour-pedalo.git]
/
src
/
harbour-pedalo.cpp
diff --git
a/src/harbour-pedalo.cpp
b/src/harbour-pedalo.cpp
index
35fc77f
..
f19a8fc
100644
(file)
--- a/
src/harbour-pedalo.cpp
+++ b/
src/harbour-pedalo.cpp
@@
-13,7
+13,9
@@
#include "imageprovider.h"
#include "graph.h"
#include "statsweekdayave.h"
#include "imageprovider.h"
#include "graph.h"
#include "statsweekdayave.h"
+#include "statshourjourneys.h"
#include "statsweekdaycongestion.h"
#include "statsweekdaycongestion.h"
+#include "statshourcongestion.h"
#include "harbour-pedalo.h"
#include "harbour-pedalo.h"
@@
-51,9
+53,15
@@
int main(int argc, char *argv[])
StatsWeekdayAve statsweekdayave(&journeys);
statsmodel.addStats(statsweekdayave);
StatsWeekdayAve statsweekdayave(&journeys);
statsmodel.addStats(statsweekdayave);
+ StatsHourJourneys statshourjourneys(&journeys);
+ statsmodel.addStats(statshourjourneys);
+
StatsWeekdayCongestion statsweekdaycongestion(&journeys);
statsmodel.addStats(statsweekdaycongestion);
StatsWeekdayCongestion statsweekdaycongestion(&journeys);
statsmodel.addStats(statsweekdaycongestion);
+ StatsHourCongestion statshourcongestion(&journeys);
+ statsmodel.addStats(statshourcongestion);
+
QFile file;
file.setFileName(Settings::getConfigDir() + "/journeys.csv");
journeys.importFromFile(file);
QFile file;
file.setFileName(Settings::getConfigDir() + "/journeys.csv");
journeys.importFromFile(file);