[apps] Reorganize Shared::StoreController

This commit is contained in:
Léa Saviot
2018-05-22 10:17:25 +02:00
parent 614b74eff9
commit 4a2963381d
2 changed files with 19 additions and 10 deletions

View File

@@ -11,8 +11,11 @@ namespace Shared {
class StoreController : public EditableCellTableViewController, public ButtonRowDelegate {
public:
StoreController(Responder * parentResponder, FloatPairStore * store, ButtonRowController * header);
// TextFieldDelegate
bool textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) override;
const char * title() override;
// TableViewDataSource
int numberOfColumns() override;
KDCoordinate columnWidth(int i) override;
KDCoordinate cumulatedWidthFromIndex(int i) override;
@@ -21,8 +24,14 @@ public:
int reusableCellCount(int type) override;
int typeAtLocation(int i, int j) override;
void willDisplayCellAtLocation(HighlightCell * cell, int i, int j) override;
// ViewController
const char * title() override;
// Responder
bool handleEvent(Ion::Events::Event event) override;
void didBecomeFirstResponder() override;
protected:
static constexpr KDCoordinate k_cellWidth = 80; //TODO
constexpr static int k_numberOfColumnsPerSeries = 2;