Files
Upsilon/apps/shared/tab_table_controller.cpp
Émilie Feral b1fb4f5393 [escher] Correct commit : Enable to draw the outline of cells in table
view

Change-Id: If2eadc0b9987678c0ccc56401bd46835d861a436
2017-03-16 17:35:43 +01:00

34 lines
1.0 KiB
C++

#include "tab_table_controller.h"
namespace Shared {
TabTableController::TabTableController(Responder * parentResponder, TableViewDataSource * dataSource, KDCoordinate topMargin,
KDCoordinate rightMargin, KDCoordinate bottomMargin, KDCoordinate leftMargin, SelectableTableViewDelegate * delegate, bool showIndicators) :
ViewController(parentResponder),
m_selectableTableView(SelectableTableView(this, dataSource, 0, 0, topMargin, rightMargin, bottomMargin, leftMargin,
delegate, showIndicators, true, Palette::WallScreenDark))
{
}
View * TabTableController::view() {
return &m_selectableTableView;
}
void TabTableController::didBecomeFirstResponder() {
app()->setFirstResponder(&m_selectableTableView);
}
void TabTableController::viewWillAppear() {
m_selectableTableView.reloadData();
}
void TabTableController::willExitResponderChain(Responder * nextFirstResponder) {
if (nextFirstResponder == tabController()) {
m_selectableTableView.deselectTable();
m_selectableTableView.scrollToCell(0,0);
}
}
}