[escher] Clean the ScrollView, TableView and SelectableTableView constructors

This commit is contained in:
Romain Goyet
2018-04-13 12:00:03 +02:00
committed by EmilieNumworks
parent c934eab947
commit 84561a929f
39 changed files with 205 additions and 148 deletions

View File

@@ -304,7 +304,15 @@ double ValuesController::evaluationOfAbscissaAtColumn(double abscissa, int colum
}
View * ValuesController::loadView() {
SelectableTableView * tableView = new SelectableTableView(this, this, 0, 0, k_topMargin, k_rightMargin, k_bottomMargin, k_leftMargin, this, nullptr, true, true, Palette::WallScreenDark, 13, Palette::GreyDark, Palette::GreyMiddle);
SelectableTableView * tableView = new SelectableTableView(this);
tableView->setVerticalCellOverlap(0);
tableView->setTopMargin(k_topMargin);
tableView->setRightMargin(k_rightMargin);
tableView->setBottomMargin(k_bottomMargin);
tableView->setLeftMargin(k_leftMargin);
tableView->setBackgroundColor(Palette::WallScreenDark);
tableView->setIndicatorThickness(13);
m_abscissaTitleCell = new EvenOddMessageTextCell(KDText::FontSize::Small);
for (int i = 0; i < k_maxNumberOfAbscissaCells; i++) {
m_abscissaCells[i] = new EvenOddEditableTextCell(tableView, this, m_draftTextBuffer, KDText::FontSize::Small);