Files
Upsilon/apps/statistics/store_controller.cpp
Émilie Feral b78aaf08d7 [apps/graph/values] Adjust display mode in values page according to
preferences

Change-Id: I79e8bee7f35904cd54c74dce9cd456d921103e1d
2017-02-02 10:29:07 +01:00

34 lines
960 B
C++

#include "store_controller.h"
#include "app.h"
#include "../apps_container.h"
#include "../constant.h"
#include <assert.h>
namespace Statistics {
StoreController::StoreController(Responder * parentResponder, Store * store, HeaderViewController * header) :
::StoreController(parentResponder, store, header),
m_titleCells{EvenOddPointerTextCell(KDText::FontSize::Small), EvenOddPointerTextCell(KDText::FontSize::Small)}
{
}
void StoreController::willDisplayCellAtLocation(TableViewCell * cell, int i, int j) {
::StoreController::willDisplayCellAtLocation(cell, i, j);
if (cellAtLocationIsEditable(i, j)) {
return;
}
EvenOddPointerTextCell * mytitleCell = (EvenOddPointerTextCell *)cell;
if (i == 0) {
mytitleCell->setText("Valeurs");
return;
}
mytitleCell->setText("Effectifs");
}
TableViewCell * StoreController::titleCells(int index) {
assert(index >= 0 && index < k_numberOfTitleCells);
return &m_titleCells[index];
}
}