Files
Upsilon/apps/shared/values_function_parameter_controller.h
Émilie Feral 3f98061a4c [escher] Extrude the model in selectable table view controller to its
delegate

Change-Id: I4d49e0098d501e1419f7b216e828b13efbf74f81
2017-05-03 10:22:01 +02:00

36 lines
979 B
C++

#ifndef SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
#define SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
#include <escher.h>
#include "function.h"
#include "../i18n.h"
namespace Shared {
class ValuesFunctionParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDelegate {
public:
ValuesFunctionParameterController(char symbol);
View * view() override;
const char * title() override;
void didBecomeFirstResponder() override;
virtual int numberOfRows() override;
KDCoordinate cellHeight() override;
virtual HighlightCell * reusableCell(int index) override;
virtual int reusableCellCount() override;
virtual void setFunction(Function * function);
protected:
MessageTableCellWithChevron m_copyColumn;
SelectableTableView m_selectableTableView;
private:
constexpr static int k_maxNumberOfCharsInTitle = 16;
char m_pageTitle[k_maxNumberOfCharsInTitle];
Function * m_function;
char m_symbol;
};
}
#endif