mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[apps/graph] Handle navigation on hidden cells
This commit is contained in:
@@ -29,6 +29,7 @@ ValuesController::ValuesController(Responder * parentResponder, InputEventHandle
|
||||
m_functionTitleCells[i].setFont(KDFont::SmallFont);
|
||||
}
|
||||
setupAbscissaCellsAndTitleCells(inputEventHandlerDelegate);
|
||||
m_selectableTableView.setDelegate(this);
|
||||
}
|
||||
|
||||
void ValuesController::willDisplayCellAtLocation(HighlightCell * cell, int i, int j) {
|
||||
@@ -101,6 +102,15 @@ I18n::Message ValuesController::emptyMessage() {
|
||||
return I18n::Message::NoActivatedFunction;
|
||||
}
|
||||
|
||||
void ValuesController::tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY, bool withinTemporarySelection) {
|
||||
const int i = selectedColumn();
|
||||
const int j = selectedRow();
|
||||
const int numberOfElementsInCol = numberOfElementsInColumn(i);
|
||||
if (j > 1 + numberOfElementsInCol) {
|
||||
selectCellAtLocation(i, 1 + numberOfElementsInCol);
|
||||
}
|
||||
}
|
||||
|
||||
Ion::Storage::Record ValuesController::recordAtColumn(int i) {
|
||||
bool isDerivative = false;
|
||||
return recordAtColumn(i, &isDerivative);
|
||||
|
||||
Reference in New Issue
Block a user