View * CalculationController::loadView() {
  SelectableTableView * tableView = new SelectableTableView(this, this, this, this);
  tableView->setVerticalCellOverlap(0);
  tableView->setBackgroundColor(Palette::WallScreenDark);
  tableView->setMargins(k_margin, k_scrollBarMargin, k_scrollBarMargin, k_margin);
  m_r2TitleCell = new EvenOddExpressionCell(1.0f, 0.5f);
  m_r2TitleCell->setRightMargin(k_r2CellMargin);
  for (int i = 0; i < Store::k_numberOfSeries; i++) {
    m_columnTitleCells[i] = new ColumnTitleCell(tableView);
  }
  for (int i = 0; i < k_maxNumberOfDisplayableRows; i++) {
    m_titleCells[i] = new MarginEvenOddMessageTextCell(KDText::FontSize::Small);
  }
  for (int i = 0; i < k_numberOfDoubleCalculationCells; i++) {
    m_doubleCalculationCells[i] = new EvenOddDoubleBufferTextCellWithSeparator();
    m_doubleCalculationCells[i]->setTextColor(Palette::GreyDark);
    m_doubleCalculationCells[i]->setParentResponder(tableView);
  }
  for (int i = 0; i < k_numberOfCalculationCells;i++) {
    m_calculationCells[i] = new SeparatorEvenOddBufferTextCell(KDText::FontSize::Small);
    m_calculationCells[i]->setTextColor(Palette::GreyDark);
  }
  m_hideableCell = new HideableEvenOddCell();
  m_hideableCell->setHide(true);
  return tableView;
}
View * ValuesController::loadView() {
  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);
  }
  return tableView;
}
View * TabTableController::loadView() {
  SelectableTableView * selectableTableView = new SelectableTableView(this, m_dataSource, this);
  selectableTableView->setBackgroundColor(Palette::WallScreenDark);
  selectableTableView->setVerticalCellOverlap(0);
  return selectableTableView;
}