mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/statistics] Clean HistogramParameterController
This commit is contained in:
@@ -18,10 +18,6 @@ const char * HistogramParameterController::title() {
|
||||
return I18n::translate(I18n::Message::HistogramSet);
|
||||
}
|
||||
|
||||
int HistogramParameterController::numberOfRows() {
|
||||
return 1+k_numberOfCells;
|
||||
}
|
||||
|
||||
void HistogramParameterController::willDisplayCellForIndex(HighlightCell * cell, int index) {
|
||||
if (index == numberOfRows()-1) {
|
||||
return;
|
||||
@@ -34,10 +30,7 @@ void HistogramParameterController::willDisplayCellForIndex(HighlightCell * cell,
|
||||
|
||||
double HistogramParameterController::parameterAtIndex(int index) {
|
||||
assert(index >= 0 && index < k_numberOfCells);
|
||||
if (index == 0) {
|
||||
return m_store->barWidth();
|
||||
}
|
||||
return m_store->firstDrawnBarAbscissa();
|
||||
return index == 0 ? m_store->barWidth() : m_store->firstDrawnBarAbscissa();
|
||||
}
|
||||
|
||||
bool HistogramParameterController::setParameterAtIndex(int parameterIndex, double f) {
|
||||
@@ -109,10 +102,6 @@ HighlightCell * HistogramParameterController::reusableParameterCell(int index, i
|
||||
return m_cells[index];
|
||||
}
|
||||
|
||||
int HistogramParameterController::reusableParameterCellCount(int type) {
|
||||
return k_numberOfCells;
|
||||
}
|
||||
|
||||
View * HistogramParameterController::loadView() {
|
||||
SelectableTableView * tableView = (SelectableTableView *)FloatParameterController::loadView();
|
||||
for (int i = 0; i < k_numberOfCells; i++) {
|
||||
|
||||
Reference in New Issue
Block a user