Files
Upsilon/apps/variable_box_controller.h
Émilie Feral 41f8d0c75c [apps] enable node navigation controller to use different cell types
(implemented by its subclasses)

Change-Id: I44ef187c0142f049c710a4515c3dc0edf5573927
2016-11-14 17:06:55 +01:00

21 lines
702 B
C++

#ifndef APPS_VARIABLE_BOX_CONTROLLER_H
#define APPS_VARIABLE_BOX_CONTROLLER_H
#include <escher.h>
#include "node_navigation_controller.h"
class VariableBoxController : public NodeNavigationController {
public:
const char * title() const override;
TableViewCell * leafCellAtIndex(int index) override;
TableViewCell * nodeCellAtIndex(int index) override;
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
private:
MenuListCell m_leafCells[NodeListViewController::k_maxNumberOfDisplayedRows];
ChevronMenuListCell m_nodeCells[NodeListViewController::k_maxNumberOfDisplayedRows];
Node * nodeModel() override;
bool selectLeaf(Node * selectedNode) override;
};
#endif