10 HistogramParameterController::HistogramParameterController(
Responder * parentResponder,
Store * store) :
22 return 1+k_numberOfCells;
30 I18n::Message labels[k_numberOfCells] = {I18n::Message::RectangleWidth, I18n::Message::BarStart};
32 FloatParameterController::willDisplayCellForIndex(cell, index);
35 double HistogramParameterController::parameterAtIndex(
int index) {
36 assert(index >= 0 && index < k_numberOfCells);
43 bool HistogramParameterController::setParameterAtIndex(
int parameterIndex,
double f) {
44 assert(parameterIndex >= 0 && parameterIndex < k_numberOfCells);
45 if (parameterIndex == 0) {
63 HighlightCell * HistogramParameterController::reusableParameterCell(
int index,
int type) {
64 assert(index >= 0 && index < k_numberOfCells);
65 return m_cells[index];
68 int HistogramParameterController::reusableParameterCellCount(
int type) {
69 return k_numberOfCells;
72 View * HistogramParameterController::loadView() {
74 for (
int i = 0; i < k_numberOfCells; i++) {
80 void HistogramParameterController::unloadView(
View * view) {
81 for (
int i = 0; i < k_numberOfCells; i++) {
85 FloatParameterController::unloadView(
view);
void setFirstDrawnBarAbscissa(double firstDrawnBarAbscissa)
double firstDrawnBarAbscissa()
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
void displayWarning(I18n::Message warningMessage)
void setBarWidth(double barWidth)
static constexpr double k_maxNumberOfBars
void willDisplayCellForIndex(HighlightCell *cell, int index) override
void setMessage(I18n::Message message)
const char * title() override
int numberOfRows() override