mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
In SelectableTableView::selectCellAtLocation, we call 'tableViewDidChangeSelection'
before scrolling. Therefore, the cell with updated with the right selected subview
is not the one drawn... To solve this issue, we keep the selectedSubview ('model')
in the HistoryController instead of in the limited-lifespan view.
19 lines
617 B
C++
19 lines
617 B
C++
#ifndef CALCULATION_SELECTABLE_TABLE_VIEW_H
|
|
#define CALCULATION_SELECTABLE_TABLE_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "history_view_cell.h"
|
|
namespace Calculation {
|
|
|
|
class CalculationSelectableTableView : public ::SelectableTableView {
|
|
public:
|
|
CalculationSelectableTableView(Responder * parentResponder, TableViewDataSource * dataSource,
|
|
SelectableTableViewDataSource * selectionDataSource, SelectableTableViewDelegate * delegate = nullptr);
|
|
void scrollToCell(int i, int j) override;
|
|
void scrollToSubviewOfTypeOfCellAtLocation(HistoryViewCellDataSource::SubviewType subviewType, int i, int j);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|